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
- Update to latest version of vscode extension
- Reload window if required
- Open a repo with inlang setup
- Observe mentionned errors
- Downgrade to 1.29.0
- Reload window if required
- 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)
@felixhaeberle Yes I can confirm the error first happens on
v1.29.1all the way up to latest. Sorry for creating confusion by mentioningv1.29.4, for some reason I though I had observed a different error on prior versions.Sure thing!
@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/sdkin v1.29.1 – see CHANGELOGI 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?