Closed Mitsunee closed 4 months ago
I presume the extension may want to pull from the Workspace's node_modules instead of the IDE installation to match version with the runtime of the Astro dev server? This may point to this being a different bug and the way I found it to just be a coincidence
We support both, you can change the TypeScript version being used using the command palette (much like you can for TypeScript itself). Supporting both is the best thing to do because the workspace might not have a TypeScript version (ex: an untitled workspace)
I'll look into the issue, wonder where they moved it, ha.
Same problem using fedora 39 codium installed by
https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/
using the repository standard: dnf install codium
[Error - 17:21:18] Astro Language Server client: couldn't create connection to server. Message: Request initialize failed with message: Can't find typescript.js or tsserverlibrary.js in /usr/share/codium/resources/app/extensions/node_modules/typescript/lib Code: -32603
I try using lunarvim too but get this error
best regards, Leonardo
Seems like it's a bug on VS Codium side https://github.com/VSCodium/vscodium/issues/1809 that has been fixed
Just checked and it seems the vscodium update with the fix for this issue is available on flathub now. Launched into a project with astro, no errors, the node_modules
directory seems to be back where it belongs. Thanks for looking into it 👍🏻
Describe the Bug
The language server tries to access a directory that does no longer exist in VSCodium 1.86.x (flathub)
I have tried downgrading VSCodium until I found a version that works again and the directory does seem to exist in version 1.85.2:
Last known good version of VSCodium:
Steps to Reproduce
Further Notes
/var/lib/flatpak/app/com.vscodium.codium/current/active/files/share/codium/
which is equal to/app/share/codium
within the flatpak filesystem sandbox.v2.7.5
of the extensionTemporary Workarounds (Flatpak)
Rolling back to 1.85.2 does the trick just fine, here's how to do it with flatpak:
Commands do need sudo unless when using
--user
for a user-installation of the codium flatpak. You can checkflatpak remote-info flathub com.vscodium.codium
to see what the latest version available on flathub is, the version with the fix is1.86.2.24054
(which should be available soon)