Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overlapping ranges are not allowed when using extension in VS code #1019

Open
swaraj-cheguri-celigo opened this issue Sep 21, 2023 · 8 comments
Labels
bug Something isn't working

Comments

@swaraj-cheguri-celigo
Copy link

Describe the bug
When trying to extract the strings using extension i am facing following error

Error: Overlapping ranges are not allowed!
    at P.m (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:105:55287)
    at Object.edit (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:105:53239)
    at extractHardStrings (/Users/abd/.vscode/extensions/lokalise.i18n-ally-2.11.1/dist/extension.js:311549:18)
    at BatchHardStringExtraction (/Users/abd/.vscode/extensions/lokalise.i18n-ally-2.11.1/dist/extension.js:309255:13)
    at r.h (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:107:82736)

Extension Version
2.11.1

Framework/i18n package you are using
"react-i18next": "^13.2.0",
"i18next": "^23.4.5",

To Reproduce
Steps to reproduce the behavior:
Trying to bulk extract strings from the React JS code using extension is causing this issue

Device Infomation
Version: 1.82.2 (Universal)
Commit: abd2f3db4bdb28f9e95536dfa84d8479f1eb312d
Date: 2023-09-14T05:59:47.790Z (6 days ago)
Electron: 25.8.1
ElectronBuildId: 23779380
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Darwin arm64 22.6.0

Extension Log
Go to View -> Output -> i18n Ally, and paste the content below. You should mask any sensitive information

Error: Overlapping ranges are not allowed!
    at P.m (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:105:55287)
    at Object.edit (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:105:53239)
    at extractHardStrings (/Users/abd/.vscode/extensions/lokalise.i18n-ally-2.11.1/dist/extension.js:311549:18)
    at BatchHardStringExtraction (/Users/abd/.vscode/extensions/lokalise.i18n-ally-2.11.1/dist/extension.js:309255:13)
    at r.h (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:107:82736)

Screenshots

@swaraj-cheguri-celigo swaraj-cheguri-celigo added the bug Something isn't working label Sep 21, 2023
@swaraj-cheguri-celigo
Copy link
Author

Any update here team ?

@younesgitsit
Copy link

I have the same problem and I can't figure it out. Does anyone know?

@younesgitsit
Copy link

The bulk extract only works on versions: 2.9.1 and earlier. For the more recent versions of the extension, it throws the "overlapping ranges error"

@CaiWenlie
Copy link

same problem v2.12.0. seems it extracted twice times

@Dylan-Cairns
Copy link

Same problem here also in v2.12.0

@joaolfern
Copy link

Extraction continues to not work on v2.13.0

i18n-next: 23.16.5
react-i18next: 15.1.1

Vscode Insiders 1.96

@Dmaziyo
Copy link

Dmaziyo commented Dec 18, 2024

maybe you can refer to the configuration examples in the example/ folder #1251
image

@joaolfern
Copy link

joaolfern commented Dec 18, 2024

Defining enabledFrameworks does indeed resolve the "Overlapping ranges are not allowed when using extension in VS code" error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

6 participants