Skip to content
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

Entering a command in windows does nothing (no echo, no newline, no output) #7

Open
pckujawa opened this issue Apr 2, 2013 · 9 comments
Labels

Comments

@pckujawa
Copy link

pckujawa commented Apr 2, 2013

I'm guessing this is the same as wuub/SublimeREPL#88. I'm on Windows 7 32-bit ST2.

@jarhart
Copy link
Owner

jarhart commented Apr 3, 2013

Ok, I've confirmed this an issue also on ST3. :( Submitting commands via the menu doesn't work either. What's weird is pressing enter to interrupt continuous compiling/testing works.

I'll see what I can figure out. Something tells me this isn't going to be an easy fix. :)

Thanks!

@pckujawa
Copy link
Author

pckujawa commented Apr 3, 2013

Let me know if there is anything specific I can do to help test/debug.
Thanks,
Pat

On Tue, Apr 2, 2013 at 8:31 PM, Jason Arhart - [email protected] <
github.pck.374cd93cd6.notifications#[email protected]> wrote:

Ok, I've confirmed this an issue also on ST3. :( Submitting commands via
the menu doesn't work either. What's weird is pressing enter to interrupt
continuous compiling/testing works.

I'll see what I can figure out. Something tells me this isn't going to be
an easy fix. :)

Thanks!


Reply to this email directly or view it on GitHubhttps://github.com//issues/7#issuecomment-15814443
.

@AlecTaylor
Copy link

Getting the same problem here.

@jarhart
Copy link
Owner

jarhart commented Aug 15, 2013

Eureka! I figured out the problem!

JLine on Windows messes up using STDIN. Fortunately, JLine has a handy system property to let itself be disabled, and sbt runners typically use the environment variable SBT_OPTS for passing extra stuff, like flags to set system properties.

So, on Windows, SublimeSBT now adds SBT_OPTS to the environment when running SBT, with -Djline.terminal=jline.UnsupportedTerminal to disable JLine.

If you wrote your own batch file to run SBT instead of using the installer you'll have to make sure it includes the SBT_OPTS environment variable in the command line.

@jarhart jarhart closed this as completed Aug 15, 2013
@pckujawa
Copy link
Author

Nice job! Thanks.

@AlecTaylor
Copy link

So it's still not working under latested Sublime Text + latest version of this plugin…

@jarhart jarhart reopened this Oct 13, 2013
@jarhart
Copy link
Owner

jarhart commented Oct 13, 2013

This is a broken again with the latest version of SBT because it uses a different version of JLine. Fixing it for SBT 0.13.x will probably break it again for SBT 0.12.x

@beefyhalo
Copy link

As a user, I am interested in getting this bug fixed. Any suggestions?

@jake-rigby
Copy link

Is there a workaround?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants