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

[coc.nvim] Error on active extension coc-ember: Error: process.chdir() is not allowed in extension sandbox #2

Closed
ezpuzz opened this issue Aug 15, 2019 · 11 comments

Comments

@ezpuzz
Copy link
Contributor

ezpuzz commented Aug 15, 2019

[coc.nvim] Error on active extension coc-ember: Error: process.chdir() is not allowed in extension sandbox

on Windows 10

I get this when opening a handlebars template.

@ezpuzz
Copy link
Contributor Author

ezpuzz commented Aug 15, 2019

I think this is related: sindresorhus/execa#357

@ezpuzz
Copy link
Contributor Author

ezpuzz commented Aug 15, 2019

workaround is to go in to coc-ember folder manually and run yarn then go in to node_modules\@emberwatch\ember-language-server and run yarn followed by yarn compile

there are errors because of windows compat (rm does not exist for ember-language-server`

@ezpuzz
Copy link
Contributor Author

ezpuzz commented Aug 15, 2019

the doesFileExist call is failing because execa can't run test on windows

@ezpuzz
Copy link
Contributor Author

ezpuzz commented Aug 15, 2019

confirmed that when I delete the call and ensure things are installed correctly I get some completion from the ember-language-server

I had to use the vim-plug method of installation and run both yarn commands manually.

@NullVoxPopuli
Copy link
Owner

is this still an issue?

@ezpuzz
Copy link
Contributor Author

ezpuzz commented Sep 11, 2019

@NullVoxPopuli yes, windows is not supported using CocInstall and when installed using other methods requires running yarn commands manually to get working.

@NullVoxPopuli
Copy link
Owner

I wonder if vim-plug line with a do would work?
or is it just coc-ember that isn't supported on windows? do other coc-things work?

@ezpuzz
Copy link
Contributor Author

ezpuzz commented Sep 12, 2019

@NullVoxPopuli https://github.com/NullVoxPopuli/coc-ember/blob/master/src/index.ts#L141 this line is the problem, test executable doesn't exist on windows.

@NullVoxPopuli
Copy link
Owner

Ah! That makes sense. @ezpuzz, do you want to do a PR with a Windows version of that?

@ezpuzz
Copy link
Contributor Author

ezpuzz commented Sep 28, 2019

@NullVoxPopuli see #3

@NullVoxPopuli
Copy link
Owner

I think this is resolved?

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

No branches or pull requests

2 participants