question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Provide a build target that disables localization

See original GitHub issue

Issue Type: Bug

Behaviour

Failed to load message bundle. See console for details. instead of the normal options for the debugging tool (among other things)

Steps to reproduce:

  1. Load the extension v2022.8.0
  2. Look a the output tabs for the Python-related ones
  3. Try to debug a file
  4. All options have that title

Diagnostic data

  • Python version (& distribution if applicable, e.g. Anaconda): 3.9.9
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Pyenv
  • Value of the python.languageServer setting: Default
Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

I hope it’s the right tab

Telemetry level is off
Experiments are disabled, only manually opted experiments are active.
LSP Notebooks experiment is disabled -- not using Pylance
> conda info --json
Failed to load message bundle. See console for details.
> ~/.pyenv/versions/3.6.15/bin/python ~/.vscode-oss/extensions/ms-python.python-2022.8.0/pythonFiles/get_output_via_markers.py ~/.vscode-oss/extensions/ms-python.python-2022.8.0/pythonFiles/interpreterInfo.py
> ~/.pyenv/versions/3.9.9/bin/python ~/.vscode-oss/extensions/ms-python.python-2022.8.0/pythonFiles/get_output_via_markers.py ~/.vscode-oss/extensions/ms-python.python-2022.8.0/pythonFiles/interpreterInfo.py
> ~/.pyenv/versions/3.7.12/bin/python ~/.vscode-oss/extensions/ms-python.python-2022.8.0/pythonFiles/get_output_via_markers.py ~/.vscode-oss/extensions/ms-python.python-2022.8.0/pythonFiles/interpreterInfo.py
> ~/.pyenv/versions/3.8.11/bin/python ~/.vscode-oss/extensions/ms-python.python-2022.8.0/pythonFiles/get_output_via_markers.py ~/.vscode-oss/extensions/ms-python.python-2022.8.0/pythonFiles/interpreterInfo.py
> ~/.pyenv/versions/3.8.12/bin/python ~/.vscode-oss/extensions/ms-python.python-2022.8.0/pythonFiles/get_output_via_markers.py ~/.vscode-oss/extensions/ms-python.python-2022.8.0/pythonFiles/interpreterInfo.py
> /bin/python ~/.vscode-oss/extensions/ms-python.python-2022.8.0/pythonFiles/get_output_via_markers.py ~/.vscode-oss/extensions/ms-python.python-2022.8.0/pythonFiles/interpreterInfo.py
> /sbin/python ~/.vscode-oss/extensions/ms-python.python-2022.8.0/pythonFiles/get_output_via_markers.py ~/.vscode-oss/extensions/ms-python.python-2022.8.0/pythonFiles/interpreterInfo.py
> /usr/bin/python ~/.vscode-oss/extensions/ms-python.python-2022.8.0/pythonFiles/get_output_via_markers.py ~/.vscode-oss/extensions/ms-python.python-2022.8.0/pythonFiles/interpreterInfo.py
> /usr/sbin/python ~/.vscode-oss/extensions/ms-python.python-2022.8.0/pythonFiles/get_output_via_markers.py ~/.vscode-oss/extensions/ms-python.python-2022.8.0/pythonFiles/interpreterInfo.py
Failed to load message bundle. See console for details.
> ~/.pyenv/versions/3.9.9/bin/python -m black --diff --quiet ./graph_logic/logic_input.py.07bda48b6f6cf8e436fb49d4da29add4.tmp
Failed to load message bundle. See console for details. .

User Settings


languageServer: "Jedi"

linting
• enabled: false

formatting
• provider: "black"

Extension version: 2022.8.0 VS Code version: VSCodium 1.68.0 (4af164ea3a06f701fe3e89a2bcbb421d2026b68f, 2022-06-09T22:51:30.652Z) OS version: Linux x64 5.18.2-1-MANJARO Restricted Mode: No

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:4
  • Comments:19 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
TylerLeonhardtcommented, Jun 16, 2022

Hi all 👋 I own the translations pipeline for vscode extensions that the vscode team owns.

Feel free to get an issue going in Microsoft/vscode about having translations of OSS extensions to be open sourced. I’m not against it, it was just easier for me to combine all of the extensions we own in one place and since there are some closed sourced extensions I had to keep it closed but I have a couple ideas on how to open the ones that are open.

1reaction
jeanp413commented, Jun 16, 2022

Can you build the extension as well? Or are you only able to download a binary and are not able to set up e.g. GitHub Actions to do a build yourself?

Yeah that’s what we do currently, if there’s a GitHub release with the VSIX file we use that otherwise we build it from sources. In the particular case of the Python extension the problem is that translations are not part of the repo and as you said it’s handled by an internal process so in the end we have an “incomplete” build, at the same time the VSIX published to the MS marketplace with the translations is released under MIT license but we can’t download it from there because of its terms of use, that’s why I was asking to also publish it to GitHub releases.

In the meantime I’ll create the issue in the vscode repo as Tyler suggested 🤞 and build the vsix with traslations disabled 🥲

Read more comments on GitHub >

github_iconTop Results From Across the Web

Disable Target Localization in Xcode - ios - Stack Overflow
In our project we have multiple build targets which each use an English, French and Base (English) localization files.
Read more >
Unable to build project for localization string extraction
If you'd like to disable a specific target from exporting localizations, you can disable the "Localization Export Supported" build setting.
Read more >
Localized Builds — Firefox Source Docs documentation
You should find a re-packaged build at OBJDIR/dist/ , and a runnable binary in OBJDIR/dist/l10n-stage/ . The installers target runs quite a few...
Read more >
[Solved]-Disable Target Localization in Xcode - appsloveworld
Coding example for the question Disable Target Localization in Xcode.
Read more >
Android Player settings - Unity - Manual
Disabled, Doesn't apply resolution scaling and the application renders to the ... Use this to optimize performance and battery life or target a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found