-
Notifications
You must be signed in to change notification settings - Fork 1
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
Atom Error: Unable to start the Bash language server in Windows #4
Comments
A couple of alternatives to existing Node spawn on windows: |
Has anyone tried?? (function() {
var childProcess = require("child_process");
var oldSpawn = childProcess.spawn;
function mySpawn() {
console.log('spawn called');
console.log(arguments);
var result = oldSpawn.apply(this, arguments);
return result;
}
childProcess.spawn = mySpawn;
})(); As recommended in: https://stackoverflow.com/questions/27688804/how-do-i-debug-error-spawn-enoent-on-node-js If so, what were the results? |
Switching to using cross-spawn seems like the best options to me. |
I've got the same issue and I found a solution on Windows. In the following directory: C:\Users<user>.atom\packages\ide-bash\src you can find a main.js file. I changed the following line: (Before this I tried papesch suggestions with windows-build-tools and superspawn from this page bash-lsp/bash-language-server#41 ) |
Same issue here.
This should be a PR! I created one: #9 |
I get these errors when starting Atom (on Windows 10), or reloading the ide-bash plugin
Set up everything correctly AFAICT ,and I have just installed the latest release of Atom (1.27.2 x64)
( this issue is forked from comments in #2 )
( could be mitigated by #1 )
( seems quite similar to bash-lsp/bash-language-server#41 )
I think it's happening here in main.js. Maybe "spawn" isn't smart enough to find the npm package in windows
https://github.com/mads-hartmann/ide-bash/blob/ff7acfe95a37915ed8e1effe75df88e2b073c5e0/src/main.js#L29-L31
I found a couple of things to look into
The text was updated successfully, but these errors were encountered: