Michito

Results 56 comments of Michito

FYI, I just did a quick test to let you reproduce the problem. I cloned https://github.com/indico/indico and used `pew` to create a `virtualenv`. I selected the proper python version in...

> @mic4ael, sorry for the long delay. What happens when you run the following command (from the "Python" output panel) in your shell? > > `~/.virtualenvs/indico/bin/flake8 --max-line-length=120 --format=%(row)d,%(col)d,%(code).1s,%(code)s:%(text)s ~/dev/others/indico/indico/modules/events/editing/fields.py` Hey...

@ericsnowcurrently my workspace settings ```json { "python.pythonPath": "~/.virtualenvs/indico/bin/python", "python.linting.flake8Path": "~/.virtualenvs/indico/bin/flake8" } ```

@ericsnowcurrently nothing has changed ``` User belongs to experiment group 'ShowPlayIcon - start' User belongs to experiment group 'DebugAdapterFactory - experiment' User belongs to experiment group 'PtvsdWheels37 - experiment' User...

As to the `Linting Output` - nope there is nothing after that. And running the command by hand from the `cwd` doesn't show any errors at all.

This is an example: ```json { "resource": "/Users/mic4ael/dev/others/indico/indico/modules/events/editing/fields.py", "owner": "_generated_diagnostic_collection_name_#1", "code": "unresolved-import", "severity": 4, "message": "unresolved import 'fnmatch'", "source": "Python", "startLineNumber": 10, "startColumn": 8, "endLineNumber": 10, "endColumn": 15 } ```

I found what actually makes the errors appear: ```json "python.languageServer": "Microsoft" ``` It works fine, If I change the value of this setting to `Jedi`.

Hey @ericsnowcurrently, no, this snippet is what I get after right clicking on the problem and selecting "copy".

> What text do you see in the "Problems" window "unresolved import 'fnmatch' Python(unresolved-import)" Yeah, maybe I made it a bit confusing - since I initially thought that the problem...

Sorry, I forgot to answer to the following: > Do you still see the reported "problem" if you add "python.languageServer": "None' (or "python.jediEnabled": true) to your workspace settings.json? In case...