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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃悰 BUG: cannot find Astro installation with yarn berry
#659
Comments
That's not intellisense not working, that's it not finding the Astro installation. I don't think this is yarn berry specific, it tries to find it from the root of your workspace (through a simple require.resolve) |
I think this is similar with #655, I also experience Intellisense not working. But only when I'm using |
yarn berry
yarn berry
Hmm, I get a different error when running steps 1-3:
Looks like it does find it, but not sure why it complains about a volar language server. Installing |
Describe the Bug
Intellisense doesn't seem to get along with
yarn berry
.I've installed the sdk, and configured the
ls-path
option accordinglyThis is how it looks:
As you can see in the image above, the
Astro
variable is being recognized as a global variable, but it is coming as if it were of typeany
, and since its type isany
, intellisense dies right there:There's not errors or warnings in the output logs.
I'm testing this on win11, I'll try it on macos and ubuntu next week when I get back from vacation
Steps to Reproduce
yarn create astro
yarn add @astrojs/language-server
- this is to let yarn know it has to install the astro sdkyarn dlx @yarnpkg/sdks vscode
- yarn will detect astro and install the sdkastro.language-server.ls-path
topath/to/repo/astro/.yarn/sdks/@astrojs/language-server/bin/nodeServer.js
The text was updated successfully, but these errors were encountered: