monorepo: [bug] Vscode extension `v1.29.4` failing to load project

Problem

Inlang – i18n supercharged v1.29.4 can’t seem to load a project that worked fine with major version release (v1.29.0). I am getting the following error:

Failed to load project "/[redacted]/[repo]/project.inlang": TypeError: Invalid host defined options

…and inlang commands do not work anymore, and instead log:

Command 'inlang.[command]' not found

Expected behavior

Work as it did before.

Reproduction

  1. Update to latest version of vscode extension
  2. Reload window if required
  3. Open a repo with inlang setup
  4. Observe mentionned errors
  5. Downgrade to 1.29.0
  6. Reload window if required
  7. Observe things working fine

Other information

  • Vscode 1.85.2
  • Apple M2
  • Sonoma 14.3

About this issue

  • Original URL
  • State: closed
  • Created 5 months ago
  • Comments: 24 (17 by maintainers)

Most upvoted comments

@felixhaeberle Yes I can confirm the error first happens on v1.29.1 all the way up to latest. Sorry for creating confusion by mentioning v1.29.4, for some reason I though I had observed a different error on prior versions.

Sure thing!

notificationsAlerts.ts:42 Failed to load project "/Users/emmanuel/[redacted]/[repo]/project.inlang": TypeError: Invalid host defined options

ERR [Extension Host] TypeError: Cannot read properties of undefined (reading 'sourceLanguageTag')
    at lee (/Users/emmanuel/.vscode/extensions/inlang.vs-code-extension-1.30.0/dist/main.cjs:789:3520)
    at gwt (/Users/emmanuel/.vscode/extensions/inlang.vs-code-extension-1.30.0/dist/main.cjs:1007:1492)
    at TPr (/Users/emmanuel/.vscode/extensions/inlang.vs-code-extension-1.30.0/dist/main.cjs:1007:995)
    at c.n (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:140:6256)
    at c.m (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:140:6219)
    at c.l (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:140:5676)

@utkubakir & @iolyd Can you verify that the issue first happened on v1.29.1 ?


@janfjohannes @jldec The IDE extension got a version bump from both @lix-js/client & @inlang/sdk in v1.29.1 – see CHANGELOG

I can only see the issue in the SDK, because nothing has changed from the IDE extension in regards to loadProject.

See https://github.com/opral/monorepo/blob/e765a65a42d489d8a07a78579942da05c4beb6a2/inlang/source-code/sdk/src/loadProject.ts#L104-L105 & https://github.com/opral/monorepo/blob/e765a65a42d489d8a07a78579942da05c4beb6a2/inlang/source-code/sdk/src/loadProject.ts#L363 for potential error causes.

@jldec Can you take over?