-
Notifications
You must be signed in to change notification settings - Fork 21
[UI/autocomplete] tab-completion in scala REPL inserts TAB character on Mac OS X 10.6 #3990
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Imported From: https://issues.scala-lang.org/browse/SI-3990?orig=1 |
@paulp said: |
Livin Stephen Sharma (lss) said: [[BR]] mv ~/.bashrc ~/.bashrc.bak
sudo mv /etc/bashrc /etc/bashrc.bak [[BR]] Thanks for taking a look! |
@paulp said:
Sure. If you pinpoint the cause it'd be helpful if you noted it in a comment here for future problem havers. |
Livin Stephen Sharma (lss) said:
In my .bashrc, I was setting a shell-variable "EMACS" to point to one of my emacs installations.. From EMACS If bash finds this variable in the environment when the shell starts with value "t", it assumes that the shell is running in
an emacs shell buffer and disables line editing. Simply using a less Powerful (!!) name for this variable 'fixes' the issue, and scala-completion works again. |
Aaron (redsymbol) said (edited on Apr 5, 2016 2:54:15 AM UTC): I also experienced this lack of autocomplete on OS X 10.11.4, using Scala 2.11.7. I did not have EMACS set in my environment, but did have EDITOR exported to the value "vim". After exiting the scala REPL; running I did not investigate whether setting to other values of $EDITOR made a difference, but it's interesting that my scala's autocompletion was hindered by an env variable that had nothing to do with emacs, either by name or value. |
== Setup ==
Snow Leopard (10.6.4), !MacBookPro :
Scala version
"2.8.0.final"
== Problem Description ==
[[BR]]
It simply inserts a TAB-character.
This behaviour is the same in both xterm (X11) and Terminal.app
[[BR]]
I do not know whether this is a "core" Scala issue or a JLine problem.
[[BR]]
[[BR]]
FWIW,
[[BR]]
in Terminal.app, Scala does not play well with
readLine
either: I have to use therlwrap
workaround.[[BR]]
[[BR]]
Especially in situations where it is required (per the repl's own guidelines!)
In contrast,
[[BR]]
this works fine on a Linux host: hitting TAB offered me method-name completions as expected.
[[BR]]
== Examples ==
a. my !MacBookPro,
[[BR]]
b. a linux M/C - scala built from trunk
This was one of my initial-impressions that I was seeking community feedback from on the
scala-users
mailing-list: have already received very useful feedback on the other issues[[BR]][http://scala-programming-language.1934581.n4.nabble.com/Extremely-high-CPU-usage-no-Autocomplete-with-scala-2-8-0-final-Core2Duo-2-26GHz-2GB-MacBookPro-Mac--td3030894.html]
The text was updated successfully, but these errors were encountered: