language-tools
language-tools copied to clipboard
`@prisma/language-server` versions overlap for versions that are for Insider vs. stable version
During the release process of the VSCode extension for Prisma CLI 3.0.1 workflow 3 unexpectedly crashed. Turned out there is an overlap in the versioning scheme now we start with lower minor versions again:
- Prisma (stable)
3.0.1(for Prisma CLI3.0.1) =>@prisma/[email protected] - Prisma Insider
3.0.1(for Prisma CLI2.3.1-dev.1) =>@prisma/[email protected](from a looong time ago)
This leads to a crash in "3. Unit tests for LSP and publish" as the npm publish does not work.
(The overlapping version numbers "make sense" as the @prisma/language-server version is tightly coupled with the version string of the VSCode extension. We did not anticipate any problem back when we make the decision to just take both versions, both the one of the Insiders and the stable extension, and apply it to the Npm package. That was a mistake in hindsight)
Workaround
- Manually increase the version of
packages/language-server/package.json(andpackage-lock.json) (e.g. +100 on the patch to make it3.0.101) - Disable workflow "6. Build Extension"
- Trigger "3. Unit tests for LSP and publish" again with new version
3.0.101 - Workflow 5 can not trigger Workflow 6 and fails
- Reenable workflow 6
- Trigger workflow 6 manually with the original version number (
3.0.1) to finish the build and publish.
Added some tests in https://github.com/prisma/language-tools/pull/895
Overlap happened with Prisma latest 3.0.1 & 3.1.1
Because calculated npm version is published for @prisma/language-server package see:
https://www.npmjs.com/package/@prisma/language-server?activeTab=versions
Tests here show it will be the last overlap happening for 3.x
This will repeat with 4.0 and 4.1, 5.0 and 5.1 until version 31 if nothing is done about it. https://github.com/prisma/language-tools/issues/868