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

use latest typescript version in lsp server #3500

Merged
merged 2 commits into from
Jan 13, 2024
Merged

Conversation

acao
Copy link
Member

@acao acao commented Jan 13, 2024

make sure to use the latest version of typescript. i get confused with the autocomplete and copilot, oops!

Copy link

changeset-bot bot commented Jan 13, 2024

🦋 Changeset detected

Latest commit: 50555bc

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
graphql-language-service-server Patch
vscode-graphql Patch
graphql-language-service-cli Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@acao acao merged commit 34d0a97 into main Jan 13, 2024
2 of 3 checks passed
@acao acao deleted the typescript-dependency branch January 13, 2024 07:36
@acao acao mentioned this pull request Jan 13, 2024
Copy link
Contributor

The latest changes of this PR are available as canary in npm (based on the declared changesets):

graphql-language-service-cli@3.3.31-canary-d1f52525.0
graphql-language-service-server@2.11.9-canary-d1f52525.0

@samchungy
Copy link

samchungy commented Jan 13, 2024

Hey @acao my vscode has been alerting me that this plugin is crashing non stop since the latest 2 PRs.

0.8.22 seems to be fine

Error: Cannot find module 'typescript'
Require stack:
- /Users/samc/.vscode/extensions/graphql.vscode-graphql-0.8.24/out/server/index.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1129:15)
    at Module._load (node:internal/modules/cjs/loader:974:27)
    at f._load (node:electron/js2c/asar_bundle:2:13377)
    at Module.require (node:internal/modules/cjs/loader:1195:19)
    at require (node:internal/modules/cjs/helpers:110:18)
    at /Users/samc/.vscode/extensions/graphql.vscode-graphql-0.8.24/out/server/index.js:4355:5291
    at /Users/samc/.vscode/extensions/graphql.vscode-graphql-0.8.24/out/server/index.js:1:264
    at /Users/samc/.vscode/extensions/graphql.vscode-graphql-0.8.24/out/server/index.js:4441:2810
    at /Users/samc/.vscode/extensions/graphql.vscode-graphql-0.8.24/out/server/index.js:1:264
    at /Users/samc/.vscode/extensions/graphql.vscode-graphql-0.8.24/out/server/index.js:4441:4643 {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/Users/samc/.vscode/extensions/graphql.vscode-graphql-0.8.24/out/server/index.js'
  ]
}

It looks like typescript should be an explicit dependency for vscode-graphql?

@samchungy
Copy link

Ah it looks like this might be the cause? ^

@acao
Copy link
Member Author

acao commented Jan 13, 2024

perhaps, let's try without that. I can't re-create the issue locally, because the runner doesn't expose this issue. i will upload an VSIX here

@acao
Copy link
Member Author

acao commented Jan 13, 2024

@samchungy can you try this version to verify that disabling the external rule works?

https://drive.google.com/file/d/15v-tdLbu_z69O0qWpysfQfMI69Hk1SpO/view?usp=sharing

We're no longer allowed to upload vsix files to github comments it appears, understandably so

@acao
Copy link
Member Author

acao commented Jan 13, 2024

no, that does not work either. we have to revert this svelte PR it looks like

@acao
Copy link
Member Author

acao commented Jan 13, 2024

@samchungy 0.8.25 should be the fix version, it will be released in a few minutes. I manually tested it. It degrades svelte parsing significantly until we figure out a better solution.

@samchungy
Copy link

Much appreciated 🙇. It's pretty late where I am so I'll give it a spin tomorrow :)

@samchungy
Copy link

@acao 0.8.25 seems to work fine! Thanks for the speedy fix once again! 😄

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

Successfully merging this pull request may close these issues.

2 participants