microsoft / python-language-server

Microsoft Language Server for Python
Apache License 2.0
912 stars 133 forks source link

opencv-python not autocompleting macos Big Sur using Anaconda, python 3.8.5 #2167

Closed KeygenLLC closed 2 years ago

KeygenLLC commented 2 years ago

Environment data

Python interpreter path: /opt/anaconda3/envs/MASTER/bin/python I have set "python.defaultInterpreterPath": "/opt/anaconda3/envs/MASTER/bin/python3.8" in settings.json.

I also tried:

"python.autoComplete.extraPaths": [
        "/opt/anaconda3/envs/MASTER/lib/python3.8/site-packages/cv2/cv2.cpython-38-darwin.so",
        "/opt/anaconda3/envs/MASTER/lib/python3.8/site-packages/cv2"
    ],

There is no line that says "Microsoft Python Language Server version X "

Experiment 'pythonaa' is active
Experiment 'pythonTensorboardExperiment' is active
Experiment 'PythonPyTorchProfiler' is active
Experiment 'pythonDeprecatePythonPath' is active
Experiment 'pythonRunFailedTestsButtonDisplayed' is active
Experiment 'pythonRefreshTestsButtonDisplayed' is active
Experiment 'pythonRememberDebugConfig' is active

Expected behaviour

I type cv2. and menu should show what is available.

Actual behaviour

It shows nothing in the autocomplete menu that relates to opencv. It only recognizes cv2.

Logs

"python.analysis.logLevel": "Trace" is not working. The Python Test Log is empty and the setting is grayed out in settings.json

Code Snippet / Additional lnformation

this code had no autocomplete:

img = cv2.imread(tiff, cv2.IMREAD_UNCHANGED)
img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
Screen Shot 2021-12-04 at 5 14 14 PM Screen Shot 2021-12-04 at 5 26 04 PM
gramster commented 2 years ago

Are you using VS Code? This is the repo for the language server in Visual Studio prior to VS 2022. If you are having issues with VS Code you should report issues at https://github.com/microsoft/pylance-release

judej commented 2 years ago

Thank you for the report. This project is no longer active. If you are using the Python language server in VSCode, the language server you are using is Pylance and please the http://github.com/microsoft/pylance-release to report issues.

If you are using Visual Studio, then, please use http://github.com/microsoft/PTVS to report issues.

thank you