-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Issue with bundling undici
in esbuild
on upgrade to vscode 1.66
#2269
Comments
+1 here |
I hope to take a look this weekend Update: some terrible things went down over the weekend and it will be a few weeks before I can look |
Still getting this on v0.3.53. Any updates? |
I tried this weekend and could not recreate this bug 🤷🏻♀️ |
You mean the schema loaded as expected or something else went wrong? |
yes, the schema loaded and the extension worked fine |
As a data point I also have this issue, and the exact same setup used to work. Perhaps something to do with the VSCode version? The 1.66 has been quite unstable for me in other places. |
0.4.0 was just released from the monorepo! We removed op execution for now, we will reccomend another extension for op exec soon this version works for me. You can also test in this repo with these instructions:
|
Upgrading to 0.4.0 made no difference for me |
Having the same issue. Loading from a |
Same issue here :/ |
Same error here... it was working fine before updating to VSCode 1.66.0. |
hey @orta - we published your rewrite of the extension, and it seems users are having issues. Do you know what could be the issue? |
I have now reproduced the bug finally, but the last time I ran this extension in the repository it worked (this weekend). Terribly sorry for this, I will see what I can figure out. it appears to be a bug coming from the underlying |
well that's interesting! it appears that disabling the esbuild step entirely fixes the problem for now? I just published 0.4.1 which should contain this as a fix, though the extension will be gigantic until i figure out a better bundling strategy with esbuild I would prefer to use pre-releases, but in order to use |
Confirmed to work back again for me in 0.4.1 in vscode 1.66.0! Extension size does not really annoy me as long as everything seems to be in working order, I won't say no to optimizations though :) Even the extension's activation time didn't really change (22ms -> 29ms, which I don't consider major and falls under hardware variations at this point) Thanks for looking into this! |
Works for me too again... thank you! |
Works for me too, thank you :D |
so happy that it's fixed for everyone! still considering this unresolved, as the workaround cannot be permanent for obvious reasons, the extension is now 8-12x larger than it needs to be! we had been using it seems a lot of users here have noticed this error ocurred when upgrading to socket[kParser].timeoutType !== TIMEOUT_IDLE with Either way, I can't seem to find a way to a working esbuild bundle for the extension, but will keep testing locally until I find one also, to be clear, this had nothing to do with @orta's changes, and was an oversight possibly caused by my not testing the extension when making dependency changes. Once I finish the migration, and fix this bundling bug, we can write a proper test suite for this extension! |
undici
in esbuild
on upgrade to vscode 1.66
Ok so, the working resolution appears to involve rolling back esbuild by a minor version. The same version of undici has no problem being bundled with this version of esbuild, in the latest vscode version |
- fix esbuild bundling issues with vscode-graphql [#2269](#2269) by fixing esbuild version - remove `graphql-language-service` dependency on `graphql-config`, which is only for types - remove direct `vscode-graphql` dependency on `graphql-config`, which previously existed for op exec client - resolve `graphql-config` to `4.3.0` in `graphql-language-server`
- fix esbuild bundling issues with vscode-graphql [#2269](#2269) by fixing esbuild version - remove `graphql-language-service` dependency on `graphql-config`, which is only for types - remove direct `vscode-graphql` dependency on `graphql-config`, which previously existed for op exec client - resolve `graphql-config` to `4.3.0` in `graphql-language-server`
Actual Behavior
The server crashes when using an API endpoint to specify the schema.
Expected Behavior
The extension fetches the API schema from the endpoint via introspection
Steps to Reproduce the Problem Or Description
create a graphql.config.yml with the following content:
The endpoint itself works fine as you can see here: https://huddle.hsg.fs.tum.de/api
Specifications
Logs Of TS Server || GraphQL Language Service
The text was updated successfully, but these errors were encountered: