How to change Python extension locale in VSCode? - python

I can't figure out how to install the Python extension in VSCode in another language, specifically - I want it to be in English, but instead it is being installed in the language of my operating system, which is Russian.
How can I install the Python extension in another language, or change the language to English?
The VSCode installation is in English. My OS is Windows 7.
I've tried googling it, no luck.
~~~
My "locale.json" config:
"locale":"en" // Changes will not take effect until VS Code has been

Ok, solved it.
Apparently the solution was to delete the "en" from "locale.json", type it back in.. restart VSCode.. And now the Python extension is in English.
"Truly" great design, Microsoft.
In detail the whole procedure is:
1 - Open VSCode
2 - press Ctrl+Shift+P
3 - type Configure Display Language -> hit Enter
4 - Delete the current locale("en" in my case), type the desired locale in
5 - Save the file
6 - Exit and re-open VSCode
7 - Enjoy the fixed language of the extension.

Following your instructions, below value worked for me in my "locale.json" config :
"locale":"en-US" // Changes will not take effect until VS Code has been restarted.

Related

Visual Studio Code - removing pylint

Simple question - but any steps on how to remove pylint from a Windows 10 machine with Python 3.5.2 installed.
I got an old version of pylint installed that's spellchecking on old Python 2 semantics and it's bugging the heck out of me when the squigglies show up in Visual Studio Code.
Open the workspace settings file (select File > Preferences > Settings, then locate Python configuration) and edit this line like this:
"python.linting.pylintEnabled": false
then save the file.
If you just want to disable pylint then the updated VSCode makes it much more easier.
Just hit CTRL + SHIFT + P > Select linter > Disabled Linter.
Hope this helps future readers.
The question was how to remove python linter, not how to disable it.
In order to remove pylint open Powershell/cmd and type:
pip uninstall pylint
If you still see the problem like "Missing class docstring Pylint(missing-class-docstring" after you tried the ways suggested in this page, it may because your VS Code installed the extension Pylint, you can hit CTRL + SHIFT + X to open your installed extension list, and disable it.
i had this problem but it was fixed with this solution CTRL + SHIFT + P > Selecionar linter > Linter desabilitado.
I have followed all instructions here, but even though pylint was disabled in the settings and in settings.json, window reloaded and everything, it still showed pylint errors instead of flake8, which I had selected and configured. It turned out I had an extension installed called "Linter" created by Nando Vieira which somehow started to overwrite the linting behaviour of Microsoft's "Python" extension. Disabling the "Linter" extension and reloading the window finally solved the problem.

emacs 24.5 python-mode (stock version Vs 6.2.1)

I have discovered an issue with python-mode in emacs. I generally c++ develop and seldom do python.
I have recently discovered this issue:
I emacs –Q
I open a python file
It contains:
import re as myre
Var = [
%
The % represents the cursor location. Then, at that location I try to tab and get this error:
Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
python-indent-context()
python-indent--calculate-indentation()
python-indent-calculate-indentation(nil)
python-indent-line(nil)
python-indent-line-function()
indent-for-tab-command(nil)
call-interactively(indent-for-tab-command nil nil)
command-execute(indent-for-tab-command)
I have not developed in python for a month or so but I cannot remember this being an issue.
I am using emacs 24.5.1 windows 7 64, python 2.7.3 and – of course - -Q so no configuration.
Now, I try to apply python-mode 6.2.1 by running this
Emacs –Q
In scratch
(setq load-path (append load-path (list "~/.emacs.d/python-mode.el-6.2.1")))
(require 'python-mode)
I open up a python file (the same as above) then I CAN indent. This is all well and good, so if I load python-mode 6.2.1 el file in my NORMAL configuration this solve the issue, BUT now with the new 6.2.1 I do not get the same theme coloring as before (it is now bland and variable are just the same colour as other text, rather than standing out. Also which-function-mode seems to be broke (again) and developing in python is sluggish (when you open a large file) - I remember python-mode and which-function-mode not being friendly with each other in 24.3, but it was solved with STOCK el 24.5
For me, unfortunately, 6.2.1 solves one issue but creates others - INCLUDING regressions.
If, instead, I can just have the patch that solves the indentation issue, that would be great.
Thank you.
python-mode.el's py-variable-name-face inherits default face. Use M-x customize-face RET ...
Please file bugs reports at
https://gitlab.com/python-mode-devs/python-mode/issues
or
https://bugs.launchpad.net/python-mode

Theano + Windows + CUDA, work well using CMD, but encoutered error in eclipse (warning C4819)

I am working with `
Windows + CUDA 6.5 + VS2010 + Python2.7 + Theano.
My Python scripts works well when using command line, say:
python DDI_convnet.py
and I get results as:
However, when I run the same Python scripts in Eclipse, I get a lot of errors:
I think this is probably due to the difference of character Map of Eclipse and CMD, because the warning C4819 implies that a lot of .h files are not parsed correctly. How to fix it?
I find the answer myself. This is because, I installed Microsoft C++ for Python first, and then installed VS2010. The environment variable of Eclipse can only be updated after restarting windows.
However, after I restart windows, the problem changes, not warning C4819 any more, it began to report errors like "unresolved external ...", which is mainly due to some DLLs or libs are not included correctly by Eclipse.
Finally, I decide to change my IDE to PyCharm. Everything goes well so far.
I guess your system setting of 'system locale' is Chinese. Change it to English could possibly fix this problem.
https://stackoverflow.com/a/37871883/3148107

Set up Brew installed Python 2.7.X as sdk for Intellij / Pycharm

I am trying to import the brew installed version of python by emulating the Global Libraries structure existing for the (mostly) working mac os built-in 2.7.2. However IJ is unable to infer the types or to create the library properly.
Update this is a large existing project. Creating a new project just to get a different version of python is not an option.
Here are the steps:
Try to create new Global Library: Fail : no python .
OK, so I use Copy to clone the built-in SDK:
Now - let us try to emulate the paths included in the original built-in but with the brew base dir: here is a starting point:
And here is one of the exact entries from the builtin library:
So let us clikc on the + to add it:
So .. IJ is unable to handle it properly. I also tried a half dozen others - all with same shrug result from IJ.
So then what is the correct process?
Update Here is the project SDK dialog (thanks to scribbles).
And trying to add: **but the "OK" button is not enabled! So then IJ is not able to load it..
New Project -> Select SDK.
See this video if you still have any questions.
EDIT: Is this more along the lines of what you're looking for (link)?
This is old, but but I ran into the same problem with the current Python 2 install from homebrew in High Sierra. Instead of choosing a directory like it needed in the previous setup, I just setup the Python SDK pointing to the python executable link in /usr/local/opt/python/libexec/bin (which is the directory I added to my path for Python 2. It seems to be working just fine now.
Hopefully this will help someone.

Sublime Text 3 plugin Anaconda can't do multiple-line lint

I am using Sublime Text 3 (build 3047) using package control and the newest Anaconda plugin for python development. However I am facing a rather odd issue.
Using the default linter included in anaconda (not pylint), the plugin only displays the very first error it encounters.
So, if for example I am having errors in line 3, 5 and 10, only line number 3 will be highlighted. PEP8 is also currently disabled.
Is there any way to work around this problem and show all errors in a file at once?
Thank you.
There is no reason that you don't get any more errors linted in the buffer. The only thing that come to my mind is a possible incompatibility with any other ST3 plugin that you have installed as well.
You can do several things to try to figure out what can be wrong:
1) Take a look at the Sublime Text console to see if there are errors raised by Anaconda or other plugin
2) Take a look at your Anaconda JsonServer logs, you can fin them on: $HOME/Library/Caches/Jedi on Mac OS X, $HOME/.cache/jedi on GNU/Linux or %APP_DATA%\Jedi\Jedi on Windows.
You can get some support as well just joining the Anaconda mailing list at https://groups.google.com/forum/#!forum/anaconda-st3-plugin or just opening a new ticket in the project GitHub site: https://github.com/DamnWidget/anaconda/issues

Categories