-
Notifications
You must be signed in to change notification settings - Fork 467
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
VSCode commands not found: extension not loading correctly? #690
Comments
The published extension is invalid. tl;dr the compiled files are missing. I saw the following in the Developer Tools:
Looking into the corresponding extension folder I saw that there is no lib folder. Checking with the downloadable .vsix file confirmed this. You can get a working version from the source if you build the extension yourself with the |
Oh bummer. Is there a place to download an older version of the .vscx?
…On Mon, Nov 12, 2018, 6:00 PM Vincent Schoettke ***@***.***> wrote:
The published extension is invalid. tl;dr the compiled files are missing.
I saw the following in the Developer Tools:
[Extension Host] Here is the error stack: Error: Cannot find module '/Users/vincent/.vscode/extensions/apollographql.vscode-apollo-1.1.9/lib/extension'
at Function.Module._resolveFilename (module.js:543:15)
at Function.Module._load (module.js:473:25)
Looking into the corresponding extension folder I saw that there is no lib
folder. Checking with the downloadable .vsix file confirmed this.
You can get a working version from the source if you build the extension
yourself with the npm install && npm run package-extension (the result
vscode-apollo-1.1.9.vsix file lands in the vscode-apollo folder. For
whatever reason I also had to copy the node_modules/apollo-tools inside
the extension to ***@***.***/apollo-tools.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#690 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAW-uGAjfUm5yknJUogBHF5xXGqvit9Nks5uuf2HgaJpZM4YahxU>
.
|
Apologies! Looks like I published a bad build earlier today. This should be fixed now with 1.1.10. Thank you for submitting the issue and suggesting workarounds in the mean time 👍 |
:( still having the same issue in 1.4.0 |
@MrCroft is this still happening for you in |
Also having issues, and I just followed @trevor-scheer advice to delete the extension folder and reinstall the extension. here is my apollo.config.js file at the root of the angular project alongside package.json
When I have the apollo.config.js file open in the editor and click the apollographql button on the bar at the bottom of VS Code, like this. The console outputs:
However when I do the same having any other file open than apollo.config.js The console outputs:
|
@furier thanks for that info! A couple things to try:
Is it possible for you to share this project with me to reproduce locally? Or provide a minimum reproduction? |
I have the exact same problems as @furier. Same Apollo GraphQL version. One of the other oddities is that when I switch to the OUTPUT tab, in the pulldown of services, I see Apollo GraphQL listed twice. One has no output, but the other has the output like in @furier screenshot. I think the service only loads one when VSCode starts up (the one with no output), but if you click the ApolloGraphQL in the status bar, the second one appears in the list and contains the output. Not sure if that's a problem, but wanted to mention it because that seems weird. Unlike the OP, two of the three Apollo commands work for me (only Apollo:Show Status fails). I also wanted to mention that there is another issue that mentions that folks can get Apollo GraphQL to work with Engine, but not with remote or local schema (#902 ), and so I wanted to mention that here in case theres some connection. |
@furier, I got it working. It was a problem in the includes config. I made the change from |
I'm pretty sure that the problem lies in the line of code linked below, and it's based on the way |
Or it could be the way minimatch() treats |
@warmbowski thanks for looking around, this is great information. Would you mind opening a new issue for this specifically? We'd love a PR that fixes this if anyone is interested in solving the issue 😄 |
@trevor-scheer thanks it works now with the path changes. :) |
I have same issue with v1.6.4 also it was with v.1.5.2 it works with v 1.5.0
for v 1.6.4:
for v 1.5.0:
|
Had this happen on Windows recently with the latest version. Uninstalling the extension, restarting VS Code, and reinstalling fixed the problem. |
This resolves the issue for me, after an hour of frustration. Thanks, man! |
I still have the issue, re-installing does temporarily solve the issue, but after a while it crashes again. (version v1.19.6) In case that matters, it's a test server running locally, and I can still ping the server for its schema manually so it's not a server problem. Restarting vscode also seems to work. |
In VSCode, I just upgraded to the Apollo extension version 1.1.9. Trying to invoke both contributed commands shows a VSCode "command not found" error.
How do I view logs for the extension? I'm not sure how to diagnose this issue.
The text was updated successfully, but these errors were encountered: