Skip to content
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

Recent change has broken Autocomplete for Autodesk's adsk module. #2261

Closed
1 task done
Zxynine opened this issue Jan 15, 2022 · 4 comments
Closed
1 task done

Recent change has broken Autocomplete for Autodesk's adsk module. #2261

Zxynine opened this issue Jan 15, 2022 · 4 comments
Assignees
Labels
fixed in next version (main) A fix has been implemented and will appear in an upcoming version

Comments

@Zxynine
Copy link

Zxynine commented Jan 15, 2022

VS Code version

1.63.2

Extension version

For working:v2021.12.1559732655 | For not working:v2021.12.1559732655

OS type

Windows

OS version

Windows_NT x64 10.0.19041 (windows 10)

Python distribution

Other

Python version

3.7.6

Language server

Default

Expected behaviour

I have a window ive left open for about a month now, so its settings have not synced. In a file from that window, if i start typing the name of a variable which is nested in a few modules under audtodesks adsk module, it gets suggested as per expected. See image:
Working

Actual behaviour

Within any new window, the autocomplete no longer shows for anything within the adsk module. It will still show if I access it with adsk.core.matr... but just starting to type matr will not show an option for adsk.core.matrix3D. See image:
Failing

Steps to reproduce

I will be honest, I have no idea what I've done to cause this. I hope it was just an issue with a recent update, but it could be a problem from some extension I've installed or some changes made to the settings. Since nothing changed on my old windows that are open, I would not have seen the problem until I opened a new window.

Logs

LOG FOR WORKING~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Experiment 'pythonaa' is active
Experiment 'pythonTensorboardExperiment' is active
Experiment 'PythonPyTorchProfiler' is active
Experiment 'pythonDeprecatePythonPath' is active
> conda info --json
> "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\python.exe" ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> D:\Tools\Python\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> ~\.anaconda\Scripts\conda.exe info --json
> ~\.conda\Scripts\conda.exe info --json
> ~\.condarc\Scripts\conda.exe info --json
> conda --version
> ~\AppData\Local\Autodesk\webdeploy\production\4c84784f9b312b4c6ccb78d46529ebb70d7a5a09\Python\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
Python interpreter path: ~\AppData\Local\Autodesk\webdeploy\production\4c84784f9b312b4c6ccb78d46529ebb70d7a5a09\Python\python.exe
Starting Pylance language server.
[ERROR 2022-0-8 22:3:51.884]: Active interpreter type is detected as Unknown {"sysPrefix":"C:\\Users\\<User>\\AppData\\Local\\Autodesk\\webdeploy\\production\\4c84784f9b312b4c6ccb78d46529ebb70d7a5a09\\Python","envType":"Unknown","envName":"","envPath":"","path":"C:/Users/<User>/AppData/Local/Autodesk/webdeploy/production/4c84784f9b312b4c6ccb78d46529ebb70d7a5a09/Python/python.exe","architecture":3,"sysVersion":"3.7.6 (tags/v3.7.6:43364a7ae0, Dec 19 2019, 00:42:30) [MSC v.1916 64 bit (AMD64)]","version":{"raw":"3.7.6","major":3,"minor":7,"patch":6,"build":[],"prerelease":["final","0"]},"displayName":"Python 3.7.6 64-bit"}

LOG FOR NOT WORKING~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Experiment 'pythonaa' is active
Experiment 'pythonTensorboardExperiment' is active
Experiment 'PythonPyTorchProfiler' is active
Experiment 'pythonDeprecatePythonPath' is active
> conda info --json
> "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\python.exe" ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> D:\Tools\Python\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> ~\AppData\Local\Autodesk\webdeploy\production\4c84784f9b312b4c6ccb78d46529ebb70d7a5a09\Python\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
Python interpreter path: ~\AppData\Local\Autodesk\webdeploy\production\4c84784f9b312b4c6ccb78d46529ebb70d7a5a09\Python\python.exe
> ~\.anaconda\Scripts\conda.exe info --json
> ~\.conda\Scripts\conda.exe info --json
> ~\.condarc\Scripts\conda.exe info --json
> conda --version
Starting Pylance language server.
[ERROR 2022-0-15 13:19:20.581]: Active interpreter type is detected as Unknown {"sysPrefix":"C:\\Users\\<User>\\AppData\\Local\\Autodesk\\webdeploy\\production\\4c84784f9b312b4c6ccb78d46529ebb70d7a5a09\\Python","envType":"Unknown","envName":"","envPath":"","path":"C:/Users/<User>/AppData/Local/Autodesk/webdeploy/production/4c84784f9b312b4c6ccb78d46529ebb70d7a5a09/Python/python.exe","architecture":3,"sysVersion":"3.7.6 (tags/v3.7.6:43364a7ae0, Dec 19 2019, 00:42:30) [MSC v.1916 64 bit (AMD64)]","version":{"raw":"3.7.6","major":3,"minor":7,"patch":6,"build":[],"prerelease":["final","0"]},"displayName":"Python 3.7.6 64-bit"}

Code of Conduct

  • I agree to follow this project's Code of Conduct
@karthiknadig karthiknadig transferred this issue from microsoft/vscode-python Jan 18, 2022
@judej judej added the needs investigation Could be an issue - needs investigation label Jan 18, 2022
@github-actions github-actions bot removed the triage label Jan 18, 2022
@heejaechang
Copy link
Contributor

the first window probably suggests the type since the type has been used somewhere else while vscode is running. but the second vscode didn't with indexing off.

it is happening since we currently only support the first level modules for third party libraries in indexing (hidden option)

but, now, "python.analysis.indexing" became a real option. set "python.analysis.indexing": true to enable indexing which will improve auto-import experience.

Also, new hidden option "python.analysis.packageIndexDepths" is added which can be used as below to control how much get indexed.

"python.analysis.packageIndexDepths": [['sklearn', 2],['matplotlib', 2]],

By default, only the first level module of third party libraries will be indexed, but now, you can use ["package name", module levels to be scanned] to control that.

If you put "" (empty string) to package name, then it will affect all packages.

For your example, ["adsk", 3] will make up to 3 level sub modules to be picked up.

Thank you

fix will be in the next release 2022.1.2

@heejaechang heejaechang added fixed in next version (main) A fix has been implemented and will appear in an upcoming version and removed needs investigation Could be an issue - needs investigation labels Jan 18, 2022
@heejaechang heejaechang self-assigned this Jan 19, 2022
@Zxynine
Copy link
Author

Zxynine commented Jan 19, 2022

but, now, "python.analysis.indexing" became a real option. set "python.analysis.indexing": true to enable indexing which will improve auto-import experience.

So, i searched in settings for it and did not see anything, so I attempted to directly add the option to my settings.json and it is saying "Unknown Configuration Setting". Everything should be up to date. Did I misunderstand what you were saying and that the option would be available in the next patch or something?

The same is true for ""python.analysis.packageIndexDepths": ".

How often do you guys release updates? I saw one was maybe like 5 days ago so depending on the frequency I may be waiting a bit.

@bschnurr
Copy link
Member

release day is every wednesday, so should be in today.

@bschnurr
Copy link
Member

This issue has been fixed in version 2022.1.3, which we've just released. You can find the changelog here: CHANGELOG.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed in next version (main) A fix has been implemented and will appear in an upcoming version
Projects
None yet
Development

No branches or pull requests

4 participants