glint icon indicating copy to clipboard operation
glint copied to clipboard

Publishing prerelease version of VSCode extension?

Open davidtaylorhq opened this issue 1 year ago • 2 comments

We're using the 'unstable' release of glint, and it works much better for us than the 'stable' version. However, to get things working in VSCode, we have to manually build & install the glint VSCode extension.

Would it be possible to publish a 'pre-release' version of the VSCode plugin, to make it easier for people to start experimenting with the Volar-based implementation?

Happy to help with getting the automation set up, but I'd need help from someone with the necessary VSCode-marketplace credentials.

davidtaylorhq avatar Oct 29 '24 17:10 davidtaylorhq

@davidtaylorhq I'm not opposed to this, but could you share what issues you're running into using the stable VSCode Plugin with the unstable Glint LS? I've been using this configuration and there are few things like "Organize Imports" that don't work, but are there other showstoppers I'm unaware of?

machty avatar Nov 14 '24 02:11 machty

Unfortunately I wasn't able to consistently reproduce it, but this is the kind of error we were seeing:

Glint encountered an error computing diagnostics for this file. This is likely a bug in Glint; please file an issue, including any code and/or steps to follow to reproduce the error.

Error: Debug Failure. False expression: Script kind should match provided ScriptKind:1 and sourceFile.scriptKind: 3, !entry: false
    at getDocumentRegistryEntry (/Users/david/discourse/discourse/node_modules/.pnpm/[email protected]/node_modules/typescript/lib/typescript.js:140976:11)
    at Object.releaseDocumentWithKey (/Users/david/discourse/discourse/node_modules/.pnpm/[email protected]/node_modules/typescript/lib/typescript.js:141070:19)
    at Object.getOrCreateSourceFileByPath [as getSourceFileByPath] (/Users/david/discourse/discourse/node_modules/.pnpm/[email protected]/node_modules/typescript/lib/typescript.js:149935:30)
    at tryReuseStructureFromOldProgram (/Users/david/discourse/discourse/node_modules/.pnpm/[email protected]/node_modules/typescript/lib/typescript.js:125467:59)
    at createProgram (/Users/david/discourse/discourse/node_modules/.pnpm/[email protected]/node_modules/typescript/lib/typescript.js:124867:23)
    at synchronizeHostDataWorker (/Users/david/discourse/discourse/node_modules/.pnpm/[email protected]/node_modules/typescript/lib/typescript.js:149871:15)

One this happened, a full restart of the VSCode extension host was required. ('restart glint server' wasn't enough)

We've since managed to get the stable version of Glint working on our codebase, so that's solved the immediate problem.

davidtaylorhq avatar Nov 14 '24 11:11 davidtaylorhq

FYI we've been pushing pre-release Glint VSCode extension for quite a while now and will continue to do so as we near v2 release (next week-ish).

machty avatar Sep 26 '25 21:09 machty