misfo / Shell-Turtlestein

Plugin for running arbitrary shell commands in Sublime Text
https://sublime.wbond.net/packages/Shell%20Turtlestein
MIT License
245 stars 34 forks source link

Microsoft BashOnWindows not working #75

Open laggingreflex opened 8 years ago

laggingreflex commented 8 years ago

I want to use Microsoft/BashOnWindows but it's not working. I'm using this setting:

"surround_cmd": ["bash -lic '", "'"],

and it gives the error:

E[NULL]r[NULL]r[NULL]o[NULL]r: 0[NULL]x[NULL]8[NULL]0[NULL]0[NULL]7[NULL]0[NULL]0[NULL]5[NULL]7
[Finished in 0.2s with exit code 4294967295]

(It's very similar to the error I'm getting with GitSavvy also when trying to use the same bash for its git The root cause is definitely something common here but I can't pin point exactly what.)

Could this be related to sublime text's build system? This gives the same error:

self.window.run_command("exec", {'cmd': 'bash'})

I know there's probably nothing wrong with bash.exe or its path because this works:

import subprocess; subprocess.call('bash')

Any ideas what might be the issue? Has anyone been able to get BashOnWindows to work with Shell-Turtlestein or any other similar sublime plugin?

misfo commented 8 years ago

The plugin uses Sublime's build system under the hood, so if you're seeing the same issue with the build system it's probably best to report it as an issue in Sublime. On Wed, Aug 31, 2016 at 8:44 AM laggingreflex notifications@github.com wrote:

I want to use Microsoft/BashOnWindows https://github.com/Microsoft/BashOnWindows but it's not working. I'm using this setting:

"surround_cmd": ["bash -lic '", "'"],

and it gives the error:

E[NULL]r[NULL]r[NULL]o[NULL]r: 0[NULL]x[NULL]8[NULL]0[NULL]0[NULL]7[NULL]0[NULL]0[NULL]5[NULL]7 [Finished in 0.2s with exit code 4294967295]

(It's very similar to the error I'm getting with GitSavvy also when trying to use the same bash for its git https://github.com/divmain/GitSavvy/issues/493 The root cause is definitely something common here but I can't pin point exactly what.)

Could this be related to sublime text's build system? This gives the same error:

self.window.run_command("exec", {'cmd': 'bash'})

I know there's probably nothing wrong with bash.exe or its path because this works:

import subprocess; subprocess.call('bash')

Any ideas what might be the issue? Has anyone been able to get BashOnWindows to work with Shell-Turtlestein or any other similar sublime plugin?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/misfo/Shell-Turtlestein/issues/75, or mute the thread https://github.com/notifications/unsubscribe-auth/AACfVzP16c3ccu9V74afqUzuQ1XQSvRQks5qlYVKgaJpZM4JxoJR .