-
Notifications
You must be signed in to change notification settings - Fork 8
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
Question: How to configure VSCode properly? #12
Comments
@NicolasGoeddel I'm also still searching for an 'optimal' configuration, or at least a config where the autocomplete/intellisense functions properly. I still have quite a few python2.7 projects to support and I noticed that especially there, the indexing/analysing of python source files can 'hang' for a long time. If you search for this online you can find a lot of older reports (1-2 years) about this, and sometimes people say the slow downs went away with using jedi, and others prefer the vs code intellisense (python language server). And I'm not sure myself if pylint is causing the trouble or the intellisense features. From what I understand, intellisense, linting and formatting are three different processes. I didn't spot 'autocomplete-use-omelette' until I saw this Issue. In the code comments it seems to add the omelette paths to the jedi configuration specifically? My biggest challenge with this recipe so far has been that it tries to parse the already existing settings.json generated by VS Code and does that in json strict mode. If you have one comma too much or don't use "true" for boolean values the recipe will fail. |
@NicolasGoeddel I think the answer might be in this PR - #13
Can you test it? Just install this buildout and see if you can find any imported code. |
I just tested it and it works great. My steps are:
That's it. |
@NicolasGoeddel great. hopefully there is a solution to step 4 in #14 . |
I didn't know about |
@NicolasGoeddel you don't want automatic vscode support for all your buildouts without effort? |
Hi,
I need more information about configuring VSCode after installed this recipe. This is the relevant part of my
develop.cfg
:Within VSCode I connect to my Linux server using the Remote Explorer and cd into
~/plone/zeocluster/parts/omelette/
where I find all the eggs and also my own addons. I then change the Python interpreter to~/plone/zeocluster/bin/zopepy
and enable linting usingpylint
. It seems to work somehow but it is very slow. Pressing F12 on an import lasts up to a minute until it opens a new tab with the module I am looking for. Any idea to speed this up? Can I do something better here or did I something wrong?The text was updated successfully, but these errors were encountered: