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

Error reading settings: TypeError: Cannot read properties of undefined (reading 'variableTypes') #7105

Closed
excubo-jg opened this issue Jul 31, 2022 · 0 comments · Fixed by #7121
Assignees
Labels
needs investigation Could be an issue - needs investigation

Comments

@excubo-jg
Copy link

Describe the bug
Opening Python solutions always causes an "Error reading settings" message in Output - Pylance :

example 1:
Info: (8544) Pylance language server 2022.6.30 (pyright 212d1465) starting
Info: (8544) Server root directory: c:\program files\microsoft visual studio\2022\preview\common7\ide\extensions\microsoft\python\core\pylance\dist
Log: Notebook support: Legacy
Info: Un-registering request handler for 8c3f2d06-5686-4bba-ab86-f15d5b113397 failed.
Error: (8544) Error reading settings: TypeError: Cannot read properties of undefined (reading 'variableTypes')
Info: (8544) No configuration file found.
Info: (8544) No pyproject.toml file found.

example 2:
Info: (22412) Pylance language server 2022.6.30 (pyright 212d1465) starting
Info: (22412) Server root directory: c:\program files\microsoft visual studio\2022\preview\common7\ide\extensions\microsoft\python\core\pylance\dist
Log: Notebook support: Legacy
Info: Un-registering request handler for bdc160b4-e86d-464f-8b44-b6c4d81c6f68 failed.
Info: (22412) No pyproject.toml file found.
Warning: (22412) stubPath typings is not a valid directory.
Info: (22412) Assuming Python platform Windows
Info: (22412) Searching for source files
Info: (22412) No source files found.
Info: (22412) Background analysis(1) root directory: c:\program files\microsoft visual studio\2022\preview\common7\ide\extensions\microsoft\python\core\pylance\dist
Info: (22412) Background analysis(1) started
Info: (22412) Background analysis(2) root directory: c:\program files\microsoft visual studio\2022\preview\common7\ide\extensions\microsoft\python\core\pylance\dist
Info: (22412) Background analysis(2) started
Error: (22412) Error reading settings: TypeError: Cannot read properties of undefined (reading 'variableTypes')
Info: (22412) No configuration file found.
Info: (22412) No pyproject.toml file found.

Setting the log level to trace does not give further information

Other users' logs contain the same or a very similar error message:
#7018 (comment)
#7068
#7092
#6697

Expected behavior
No error message

Configuration information (If you are providing a diagnostics file (see below), skip this section)
VS Version: Version 17.3.0 Preview 5.0
PTVS version: 17.0.22179.3
Python version: 3.10.4

@heejaechang heejaechang added the needs investigation Could be an issue - needs investigation label Aug 1, 2022
@StellaHuang95 StellaHuang95 self-assigned this Aug 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs investigation Could be an issue - needs investigation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants