opral / inlang-sherlock

Issue tracker for Sherlock
https://marketplace.visualstudio.com/items?itemName=inlang.vs-code-extension
2 stars 0 forks source link

VS Code Extension not starting - missing enabledApiProposal? #47

Closed kellergoech closed 2 weeks ago

kellergoech commented 1 month ago

Hello I just installed the sherlock VS Code Extension on the actual OSS Code Version and got following Error:

Extension 'inlang.vs-code-extension' CANNOT use API proposal: extensionRuntime. Its package.json#enabledApiProposals-property declares: [] but NOT extensionRuntime. The missing proposal MUST be added and you must start in extension development mode or use the following command line switch: --enable-proposed-api inlang.vs-code-extension

from reasearching I found out that this means it uses an Api which is from older Version or one which is not release for productive use in OSS?

image

samuelstroschein commented 1 month ago

@felix.haeberle is on vacation this week. a reply/fix will follow next week

felixhaeberle commented 1 month ago

@kellergoech does it work after you restart vscode?

felixhaeberle commented 1 month ago

closing because of stale & can't reproduce.

kellergoech commented 1 month ago

Sure I tried to restart several times, and also reinstalled the Plugin. I use Version 1.89.1 of Vscode

Version: 1.89.1 Commit: dc96b837cf6bb4af9cd736aa3af08cf8279f7685 Date: 2024-05-16T09:26:03.059Z Electron: 28.3.3 ElectronBuildId: undefined Chromium: 120.0.6099.291 Node.js: 18.18.2 V8: 12.0.267.19-electron.0 OS: Linux x64 6.6.32-1-MANJARO

Other Plugins (Dokcer, Continue, Svelte ) all work.

felixhaeberle commented 1 month ago

@kellergoech Can you share your project.inlang/settings.json?

felixhaeberle commented 1 month ago

@kellergoech ping:) I still can't reproduce this at my side, so we need a bit more input from your side.

Can you share your project.inlang/settings.json?
Are your running the project in a Docker container?
Is there any error from Sherlock side except from this error?

If there is no further answer we conclude this bug to be not present any longer.

KraXen72 commented 2 weeks ago

i'm having the same issue. on 1.46.1 (latest at the time) fedora 40 kde plasma 6.1 i am not running it in a docker container there are no errors in sherlock, just infinite loading it works for me on versions 1.44.16, 1.45.0 1.45.1, 1.45.2, 1.46.0 has the modules/cache error mentioned in discord

{
  "$schema": "https://inlang.com/schema/project-settings",
  "sourceLanguageTag": "en",
  "languageTags": [
    "en",
    "sk"
  ],
  "modules": [
    "https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-empty-pattern@latest/dist/index.js",
    "https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-without-source@latest/dist/index.js",
    "https://cdn.jsdelivr.net/gh/KraXen72/inlang-t-function-jsx-hybrid-matcher/dist/index.js",
    "https://cdn.jsdelivr.net/npm/@inlang/plugin-json@latest/dist/index.js"
  ],
  "plugin.inlang.json": {
    "pathPattern": "./src/i18n_messages/{languageTag}.json",
    "variableReferencePattern": [
      "%{",
      "}"
    ]
  },
  "plugin.minibits.inlangmatcher": {
    "preferredTfuncName": "translate",
    "recognizedTfuncNames": [
      "translate"
    ]
  }
}
0-don commented 2 weeks ago

same issue here aswell

{
  "$schema": "https://inlang.com/schema/project-settings",
  "sourceLanguageTag": "de",
  "languageTags": ["de", "en"],
  "modules": [
    "https://cdn.jsdelivr.net/npm/@inlang/plugin-next-intl@latest/dist/index.js",
    "https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-empty-pattern@latest/dist/index.js",
    "https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-missing-translation@latest/dist/index.js",
    "https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-without-source@latest/dist/index.js"
  ],
  "plugin.inlang.nextIntl": {
    "pathPattern": "./public/locales/{languageTag}.json"
  }
}
felixhaeberle commented 2 weeks ago

hey, I will investigate this issue tomorrow. @0-don are you also using windows?

0-don commented 2 weeks ago

@felixhaeberle No, I am using Arch Linux. I tried running git init or creating a fresh project, but it didn't work there as well.

felixhaeberle commented 2 weeks ago

@0-don Alright, does previous versions work, so can you potentially test with for example 1.45.2 ? You can install another version of the extension by right clicking the list item in the marketplace search.

Just to make sure: Which VSCode version are you using?

0-don commented 2 weeks ago

@felixhaeberle older versions throw this

Failed to load project "/home/don/row/project.inlang": Error: ENOENT: no such file or directory, mkdir '/home/don/row/project.inlang/cache/modules
0-don commented 2 weeks ago

@felixhaeberle this is the broken version 1.45.1 , version 1.45.0 works fine

image

felixhaeberle commented 2 weeks ago

hey, fix (for both issues) is underway! 🎉
https://github.com/opral/monorepo/pull/2961

[!TIP] If you encounter this issue rn, please use v1.45.0. -> right click the entry on the marketplace listing and select "install another version"

felixhaeberle commented 2 weeks ago

Hey there, the fix is released – please update the extension to 1.47.0 (latest) to see this fixed.