microsoft / pylance-release

Documentation and issues for Pylance
Creative Commons Attribution 4.0 International
1.7k stars 767 forks source link

Quick fix "Add import" not working when file or path (directory) is excluded in pyrightconfig.json #6535

Open tmeckel opened 1 week ago

tmeckel commented 1 week ago

Type: Bug

Behaviour

At least the "Add Import" code quick fix action is not working if the current file is loacted in a directory excluded in the Pyright pyrightconfig.json configuration file of the current project. I suspect that NONE of the Intellisense functions are working with files excluded using pyrightconfig.json.

Steps to reproduce:

  1. Add Python file to excluded/intellisense_test.py
  2. Add "excluded" directory to "ignore" setting of pyrightconfig.json
  3. Open excluded/intellisense_test.py and type "os.path". There will be a red squiggle under os.
  4. Press CTRL+. to show the Quick fix dialog. There will be no "Add 'import os'"
  5. Remove "excluded" directory from "ignore" setting of pyrightconfig.json
  6. Switch back to excluded/intellisense_test.py and press CTRL+. (sometimes CTRL+. must be pressed multiple times) at the red squiggle and select "Add 'import os'"

Extension version: 2024.16.0 VS Code version: Code 1.94.0 (d78a74bcdfad14d5d3b1b782f87255d802b57511, 2024-10-02T13:08:12.626Z) OS version: Windows_NT x64 10.0.22631 Modes: Remote OS version: Linux x64 5.15.0-122-generic

User Settings

``` languageServer: "Pylance" testing • pytestArgs: "" • pytestEnabled: true ```

Installed Extensions |Extension Name|Extension Id|Version| |---|---|---| |ANSI Colors|iliazeus.vscode-ansi|1.1.7| |Ansible|redhat.ansible|24.10.0| |Azure Account|ms-vscode.azure-account|0.12.0| |Azure Pipelines|ms-azure-devops.azure-pipelines|1.237.0| |Azure Resources|ms-azuretools.vscode-azureresourcegroups|0.9.6| |Better Align|chouzz.vscode-better-align|1.4.2| |Better Jinja|samuelcolvin.jinjahtml|0.20.0| |Diff|fabiospampinato.vscode-diff|2.1.2| |Encode Decode|mitchdenny.ecdc|1.8.0| |Even Better TOML|tamasfe.even-better-toml|0.19.2| |Git Blame|waderyan.gitblame|11.1.0| |Git Graph|mhutchie.git-graph|1.30.0| |Git History|donjayamanne.githistory|0.6.20| |GitHub Actions|github.vscode-github-actions|0.27.0| |GitHub Pull Requests|GitHub.vscode-pull-request-github|0.98.0| |Go|golang.go|0.42.1| |GPG Indicator|wdhongtw.gpg-indicator|0.7.2| |GPT Commit|DmytroBaida.gpt-commit|1.0.5| |GraphQL: Syntax Highlighting|GraphQL.vscode-graphql-syntax|1.3.6| |HashiCorp Terraform|hashicorp.terraform|2.32.3| |Insert GUID|heaths.vscode-guid|1.9.0| |JavaScript Debugger|ms-vscode.js-debug|1.94.0| |JSON Tools|eriklynd.json-tools|1.0.2| |Markdown All in One|yzhang.markdown-all-in-one|3.6.2| |Markdown Preview Enhanced|shd101wyy.markdown-preview-enhanced|0.8.14| |Markdown Preview Mermaid Support|bierner.markdown-mermaid|1.25.0| |markdownlint|DavidAnson.vscode-markdownlint|0.56.0| |MDX|unifiedjs.vscode-mdx|1.8.11| |Modelines|chrislajoie.vscode-modelines|2.0.6| |Mustache - Syntax highlighting, snippets, and more|imgildev.vscode-mustache-snippets|2.4.0| |OpenAPI (Swagger) Editor|42Crunch.vscode-openapi|4.29.0| |openapi-lint|mermade.openapi-lint|1.2.0| |Partial Diff|ryu1kn.partial-diff|1.4.3| |Path Intellisense|christian-kohler.path-intellisense|2.9.0| |PowerShell|ms-vscode.powershell|2024.2.2| |Pylance|ms-python.vscode-pylance|2024.9.2| |Python|ms-python.python|2024.16.0| |Python Debugger|ms-python.debugpy|2024.10.0| |Red Hat Commons|redhat.vscode-commons|0.0.6| |Ruff|charliermarsh.ruff|2024.50.0| |ShellCheck|timonwong.shellcheck|0.37.1| |Sort JSON|Thinker.sort-json|19.1.2| |Table Visualizer for JavaScript Profiles|ms-vscode.vscode-js-profile-table|1.0.10| |Thunder Client|rangav.vscode-thunder-client|2.27.6| |XML|redhat.vscode-xml|0.27.1| |YAML|redhat.vscode-yaml|1.15.0|
bschnurr commented 1 week ago

do you sync server enabled by chance? image

i was seeing an error when enabled, but seems to be working when disabled.

tmeckel commented 1 week ago

@bschnurr Nope I haven't image

Not in User,Remote or Workspace settings. Double checked that

bschnurr commented 1 week ago

can you check the "python language server" logs. see https://github.com/microsoft/pylance-release/blob/main/TROUBLESHOOTING.md#filing-an-issue

tmeckel commented 1 week ago

@bschnurr There you go

2024-10-08 11:01:48.018 [info] [Info  - 11:01:48 AM] (18154) Could not import '._patch' in file '/home/vagrant/work/deployment-type-handler/.venv/lib/python3.9/site-packages/azure/mgmt/resource/resources/__init__.py'
2024-10-08 11:01:48.018 [info] [Info  - 11:01:48 AM] (18154)   Attempting to resolve relative import
2024-10-08 11:01:48.018 [info] [Info  - 11:01:48 AM] (18154)   Attempting to resolve using root path 'file:///home/vagrant/work/deployment-type-handler/.venv/lib/python3.9/site-packages/azure/mgmt/resource/resources'
2024-10-08 11:01:53.739 [info] [Info  - 11:01:53 AM] (18154) Could not import 'numpy' in file '/home/vagrant/work/deployment-type-handler/.venv/lib/python3.9/site-packages/_pytest/python_api.py'
2024-10-08 11:01:53.740 [info] [Info  - 11:01:53 AM] (18154)   Looking in stubPath 'file:///home/vagrant/work/deployment-type-handler/typings'
2024-10-08 11:01:53.740 [info] [Info  - 11:01:53 AM] (18154)   Attempting to resolve stub package using root path 'file:///home/vagrant/work/deployment-type-handler/typings'
2024-10-08 11:01:53.740 [info] [Info  - 11:01:53 AM] (18154)   Attempting to resolve using root path 'file:///home/vagrant/work/deployment-type-handler/typings'
2024-10-08 11:01:53.740 [info] [Info  - 11:01:53 AM] (18154)   Looking in root directory of execution environment 'file:///home/vagrant/work/deployment-type-handler'
2024-10-08 11:01:53.741 [info] [Info  - 11:01:53 AM] (18154)   Attempting to resolve stub package using root path 'file:///home/vagrant/work/deployment-type-handler'
2024-10-08 11:01:53.741 [info] [Info  - 11:01:53 AM] (18154)   Attempting to resolve using root path 'file:///home/vagrant/work/deployment-type-handler'
2024-10-08 11:01:53.741 [info] [Info  - 11:01:53 AM] (18154)   Looking in extraPath 'file:///home/vagrant/work/deployment-type-handler/src'
2024-10-08 11:01:53.741 [info] [Info  - 11:01:53 AM] (18154)   Attempting to resolve stub package using root path 'file:///home/vagrant/work/deployment-type-handler/src'
2024-10-08 11:01:53.742 [info] [Info  - 11:01:53 AM] (18154)   Attempting to resolve using root path 'file:///home/vagrant/work/deployment-type-handler/src'
2024-10-08 11:01:53.742 [info] [Info  - 11:01:53 AM] (18154)   Looking for typeshed stdlib path
2024-10-08 11:01:53.742 [info] [Info  - 11:01:53 AM] (18154)   Looking for typeshed stdlib path
2024-10-08 11:01:53.742 [info] [Info  - 11:01:53 AM] (18154)   Attempting to resolve using root path 'file:///home/vagrant/.vscode-server/extensions/ms-python.vscode-pylance-2024.10.1/dist/typeshed-fallback/stdlib'
2024-10-08 11:01:53.743 [info] [Info  - 11:01:53 AM] (18154)   Typeshed path not found
2024-10-08 11:01:53.743 [info] [Info  - 11:01:53 AM] (18154)   Finding python search paths
2024-10-08 11:01:53.744 [info] [Info  - 11:01:53 AM] (18154)   Found path 'file:///home/vagrant/work/deployment-type-handler/.venv/lib'; looking for site-packages
2024-10-08 11:01:53.744 [info] [Info  - 11:01:53 AM] (18154)   Did not find 'file:///home/vagrant/work/deployment-type-handler/.venv/lib/site-packages', so looking for python subdirectory
2024-10-08 11:01:53.809 [info] [Info  - 11:01:53 AM] (18154)   Found path 'file:///home/vagrant/work/deployment-type-handler/.venv/lib/python3.9/site-packages'
2024-10-08 11:01:53.812 [info] [Info  - 11:01:53 AM] (18154)   Found path 'file:///home/vagrant/work/deployment-type-handler/.venv/lib64'; looking for site-packages
2024-10-08 11:01:53.813 [info] [Info  - 11:01:53 AM] (18154)   Did not find 'file:///home/vagrant/work/deployment-type-handler/.venv/lib64/site-packages', so looking for python subdirectory
2024-10-08 11:01:53.813 [info] [Info  - 11:01:53 AM] (18154)   Found path 'file:///home/vagrant/work/deployment-type-handler/.venv/lib64/python3.9/site-packages'
2024-10-08 11:01:53.814 [info] [Info  - 11:01:53 AM] (18154)   Did not find 'file:///home/vagrant/work/deployment-type-handler/.venv/Lib'
2024-10-08 11:01:53.828 [info] [Info  - 11:01:53 AM] (18154)   Found the following 'site-packages' dirs
2024-10-08 11:01:53.828 [info] [Info  - 11:01:53 AM] (18154)     file:///home/vagrant/work/deployment-type-handler/.venv/lib/python3.9/site-packages
2024-10-08 11:01:53.828 [info] [Info  - 11:01:53 AM] (18154)     file:///home/vagrant/work/deployment-type-handler/.venv/lib64/python3.9/site-packages
2024-10-08 11:01:53.828 [info] [Info  - 11:01:53 AM] (18154)   Looking in python search path 'file:///home/vagrant/work/deployment-type-handler/.venv/lib/python3.9/site-packages'
2024-10-08 11:01:53.829 [info] [Info  - 11:01:53 AM] (18154)   Attempting to resolve stub package using root path 'file:///home/vagrant/work/deployment-type-handler/.venv/lib/python3.9/site-packages'
2024-10-08 11:01:53.829 [info] [Info  - 11:01:53 AM] (18154)   Attempting to resolve using root path 'file:///home/vagrant/work/deployment-type-handler/.venv/lib/python3.9/site-packages'
2024-10-08 11:01:53.829 [info] [Info  - 11:01:53 AM] (18154)   Looking in python search path 'file:///home/vagrant/work/deployment-type-handler/.venv/lib64/python3.9/site-packages'
2024-10-08 11:01:53.829 [info] [Info  - 11:01:53 AM] (18154)   Attempting to resolve stub package using root path 'file:///home/vagrant/work/deployment-type-handler/.venv/lib64/python3.9/site-packages'
2024-10-08 11:01:53.829 [info] [Info  - 11:01:53 AM] (18154)   Attempting to resolve using root path 'file:///home/vagrant/work/deployment-type-handler/.venv/lib64/python3.9/site-packages'
2024-10-08 11:01:53.830 [info] [Info  - 11:01:53 AM] (18154)   Looking in bundled stubs path 'file:///home/vagrant/.vscode-server/extensions/ms-python.vscode-pylance-2024.10.1/dist/bundled/stubs'
2024-10-08 11:01:53.830 [info] [Info  - 11:01:53 AM] (18154)   Attempting to resolve stub package using root path 'file:///home/vagrant/.vscode-server/extensions/ms-python.vscode-pylance-2024.10.1/dist/bundled/stubs'
2024-10-08 11:01:53.830 [info] [Info  - 11:01:53 AM] (18154)   Attempting to resolve using root path 'file:///home/vagrant/.vscode-server/extensions/ms-python.vscode-pylance-2024.10.1/dist/bundled/stubs'
2024-10-08 11:01:53.830 [info] [Info  - 11:01:53 AM] (18154)   Looking for typeshed third-party path
2024-10-08 11:01:53.830 [info] [Info  - 11:01:53 AM] (18154)   Looking for typeshed stubs path
2024-10-08 11:01:53.830 [info] [Info  - 11:01:53 AM] (18154)   Typeshed path not found
2024-10-08 11:01:53.830 [info] [Info  - 11:01:53 AM] (18154) Could not import 'numpy' in file '/home/vagrant/work/deployment-type-handler/.venv/lib/python3.9/site-packages/_pytest/python_api.py'
2024-10-08 11:01:53.831 [info] [Info  - 11:01:53 AM] (18154)   Looking in stubPath 'file:///home/vagrant/work/deployment-type-handler/typings'
2024-10-08 11:01:53.831 [info] [Info  - 11:01:53 AM] (18154)   Attempting to resolve stub package using root path 'file:///home/vagrant/work/deployment-type-handler/typings'
2024-10-08 11:01:53.831 [info] [Info  - 11:01:53 AM] (18154)   Attempting to resolve using root path 'file:///home/vagrant/work/deployment-type-handler/typings'
2024-10-08 11:01:53.831 [info] [Info  - 11:01:53 AM] (18154)   Looking in root directory of execution environment 'file:///home/vagrant/work/deployment-type-handler'
2024-10-08 11:01:53.832 [info] [Info  - 11:01:53 AM] (18154)   Attempting to resolve stub package using root path 'file:///home/vagrant/work/deployment-type-handler'
2024-10-08 11:01:53.832 [info] [Info  - 11:01:53 AM] (18154)   Attempting to resolve using root path 'file:///home/vagrant/work/deployment-type-handler'
2024-10-08 11:01:53.832 [info] [Info  - 11:01:53 AM] (18154)   Looking in extraPath 'file:///home/vagrant/work/deployment-type-handler/src'
2024-10-08 11:01:53.832 [info] [Info  - 11:01:53 AM] (18154)   Attempting to resolve stub package using root path 'file:///home/vagrant/work/deployment-type-handler/src'
2024-10-08 11:01:53.832 [info] [Info  - 11:01:53 AM] (18154)   Attempting to resolve using root path 'file:///home/vagrant/work/deployment-type-handler/src'
2024-10-08 11:01:53.832 [info] [Info  - 11:01:53 AM] (18154)   Looking for typeshed stdlib path
2024-10-08 11:01:53.832 [info] [Info  - 11:01:53 AM] (18154)   Looking for typeshed stdlib path
2024-10-08 11:01:53.833 [info] [Info  - 11:01:53 AM] (18154)   Attempting to resolve using root path 'file:///home/vagrant/.vscode-server/extensions/ms-python.vscode-pylance-2024.10.1/dist/typeshed-fallback/stdlib'
2024-10-08 11:01:53.833 [info] [Info  - 11:01:53 AM] (18154)   Typeshed path not found
2024-10-08 11:01:53.833 [info] [Info  - 11:01:53 AM] (18154)   Finding python search paths
2024-10-08 11:01:53.833 [info] [Info  - 11:01:53 AM] (18154)   Found path 'file:///home/vagrant/work/deployment-type-handler/.venv/lib'; looking for site-packages
2024-10-08 11:01:53.833 [info] [Info  - 11:01:53 AM] (18154)   Did not find 'file:///home/vagrant/work/deployment-type-handler/.venv/lib/site-packages', so looking for python subdirectory
2024-10-08 11:01:53.833 [info] [Info  - 11:01:53 AM] (18154)   Found path 'file:///home/vagrant/work/deployment-type-handler/.venv/lib/python3.9/site-packages'
2024-10-08 11:01:53.833 [info] [Info  - 11:01:53 AM] (18154)   Found path 'file:///home/vagrant/work/deployment-type-handler/.venv/lib64'; looking for site-packages
2024-10-08 11:01:53.833 [info] [Info  - 11:01:53 AM] (18154)   Did not find 'file:///home/vagrant/work/deployment-type-handler/.venv/lib64/site-packages', so looking for python subdirectory
2024-10-08 11:01:53.833 [info] [Info  - 11:01:53 AM] (18154)   Found path 'file:///home/vagrant/work/deployment-type-handler/.venv/lib64/python3.9/site-packages'
2024-10-08 11:01:53.833 [info] [Info  - 11:01:53 AM] (18154)   Did not find 'file:///home/vagrant/work/deployment-type-handler/.venv/Lib'
2024-10-08 11:01:53.833 [info] [Info  - 11:01:53 AM] (18154)   Found the following 'site-packages' dirs
2024-10-08 11:01:53.834 [info] [Info  - 11:01:53 AM] (18154)     file:///home/vagrant/work/deployment-type-handler/.venv/lib/python3.9/site-packages
2024-10-08 11:01:53.834 [info] [Info  - 11:01:53 AM] (18154)     file:///home/vagrant/work/deployment-type-handler/.venv/lib64/python3.9/site-packages
2024-10-08 11:01:53.834 [info] [Info  - 11:01:53 AM] (18154)   Looking in python search path 'file:///home/vagrant/work/deployment-type-handler/.venv/lib/python3.9/site-packages'
2024-10-08 11:01:53.834 [info] [Info  - 11:01:53 AM] (18154)   Attempting to resolve stub package using root path 'file:///home/vagrant/work/deployment-type-handler/.venv/lib/python3.9/site-packages'
2024-10-08 11:01:53.834 [info] [Info  - 11:01:53 AM] (18154)   Attempting to resolve using root path 'file:///home/vagrant/work/deployment-type-handler/.venv/lib/python3.9/site-packages'
2024-10-08 11:01:53.834 [info] [Info  - 11:01:53 AM] (18154)   Looking in python search path 'file:///home/vagrant/work/deployment-type-handler/.venv/lib64/python3.9/site-packages'
2024-10-08 11:01:53.834 [info] [Info  - 11:01:53 AM] (18154)   Attempting to resolve stub package using root path 'file:///home/vagrant/work/deployment-type-handler/.venv/lib64/python3.9/site-packages'
2024-10-08 11:01:53.834 [info] [Info  - 11:01:53 AM] (18154)   Attempting to resolve using root path 'file:///home/vagrant/work/deployment-type-handler/.venv/lib64/python3.9/site-packages'
2024-10-08 11:01:53.834 [info] [Info  - 11:01:53 AM] (18154)   Looking in bundled stubs path 'file:///home/vagrant/.vscode-server/extensions/ms-python.vscode-pylance-2024.10.1/dist/bundled/stubs'
2024-10-08 11:01:53.834 [info] [Info  - 11:01:53 AM] (18154)   Attempting to resolve stub package using root path 'file:///home/vagrant/.vscode-server/extensions/ms-python.vscode-pylance-2024.10.1/dist/bundled/stubs'
2024-10-08 11:01:53.834 [info] [Info  - 11:01:53 AM] (18154)   Attempting to resolve using root path 'file:///home/vagrant/.vscode-server/extensions/ms-python.vscode-pylance-2024.10.1/dist/bundled/stubs'
2024-10-08 11:01:53.834 [info] [Info  - 11:01:53 AM] (18154)   Looking for typeshed third-party path
2024-10-08 11:01:53.835 [info] [Info  - 11:01:53 AM] (18154)   Looking for typeshed stubs path
2024-10-08 11:01:53.835 [info] [Info  - 11:01:53 AM] (18154)   Typeshed path not found
2024-10-08 11:01:53.835 [info] [Info  - 11:01:53 AM] (18154) Could not import 'numpy' in file '/home/vagrant/work/deployment-type-handler/.venv/lib/python3.9/site-packages/_pytest/python_api.py'
2024-10-08 11:01:53.835 [info] [Info  - 11:01:53 AM] (18154)   Looking in stubPath 'file:///home/vagrant/work/deployment-type-handler/typings'
2024-10-08 11:01:53.835 [info] [Info  - 11:01:53 AM] (18154)   Attempting to resolve stub package using root path 'file:///home/vagrant/work/deployment-type-handler/typings'
2024-10-08 11:01:53.835 [info] [Info  - 11:01:53 AM] (18154)   Attempting to resolve using root path 'file:///home/vagrant/work/deployment-type-handler/typings'
2024-10-08 11:01:53.835 [info] [Info  - 11:01:53 AM] (18154)   Looking in root directory of execution environment 'file:///home/vagrant/work/deployment-type-handler'
2024-10-08 11:01:53.835 [info] [Info  - 11:01:53 AM] (18154)   Attempting to resolve stub package using root path 'file:///home/vagrant/work/deployment-type-handler'
2024-10-08 11:01:53.837 [info] [Info  - 11:01:53 AM] (18154)   Attempting to resolve using root path 'file:///home/vagrant/work/deployment-type-handler'
2024-10-08 11:01:53.840 [info] [Info  - 11:01:53 AM] (18154)   Looking in extraPath 'file:///home/vagrant/work/deployment-type-handler/src'
2024-10-08 11:01:53.840 [info] [Info  - 11:01:53 AM] (18154)   Attempting to resolve stub package using root path 'file:///home/vagrant/work/deployment-type-handler/src'
2024-10-08 11:01:53.848 [info] [Info  - 11:01:53 AM] (18154)   Attempting to resolve using root path 'file:///home/vagrant/work/deployment-type-handler/src'
2024-10-08 11:01:53.848 [info] [Info  - 11:01:53 AM] (18154)   Looking for typeshed stdlib path
2024-10-08 11:01:53.848 [info] [Info  - 11:01:53 AM] (18154)   Looking for typeshed stdlib path
2024-10-08 11:01:53.848 [info] [Info  - 11:01:53 AM] (18154)   Attempting to resolve using root path 'file:///home/vagrant/.vscode-server/extensions/ms-python.vscode-pylance-2024.10.1/dist/typeshed-fallback/stdlib'
2024-10-08 11:01:53.848 [info] [Info  - 11:01:53 AM] (18154)   Typeshed path not found
2024-10-08 11:01:53.849 [info] [Info  - 11:01:53 AM] (18154)   Finding python search paths
2024-10-08 11:01:53.849 [info] [Info  - 11:01:53 AM] (18154)   Found path 'file:///home/vagrant/work/deployment-type-handler/.venv/lib'; looking for site-packages
2024-10-08 11:01:53.849 [info] [Info  - 11:01:53 AM] (18154)   Did not find 'file:///home/vagrant/work/deployment-type-handler/.venv/lib/site-packages', so looking for python subdirectory
2024-10-08 11:01:53.849 [info] [Info  - 11:01:53 AM] (18154)   Found path 'file:///home/vagrant/work/deployment-type-handler/.venv/lib/python3.9/site-packages'
2024-10-08 11:01:53.849 [info] [Info  - 11:01:53 AM] (18154)   Found path 'file:///home/vagrant/work/deployment-type-handler/.venv/lib64'; looking for site-packages
2024-10-08 11:01:53.849 [info] [Info  - 11:01:53 AM] (18154)   Did not find 'file:///home/vagrant/work/deployment-type-handler/.venv/lib64/site-packages', so looking for python subdirectory
2024-10-08 11:01:53.849 [info] [Info  - 11:01:53 AM] (18154)   Found path 'file:///home/vagrant/work/deployment-type-handler/.venv/lib64/python3.9/site-packages'
2024-10-08 11:01:53.849 [info] [Info  - 11:01:53 AM] (18154)   Did not find 'file:///home/vagrant/work/deployment-type-handler/.venv/Lib'
2024-10-08 11:01:53.849 [info] [Info  - 11:01:53 AM] (18154)   Found the following 'site-packages' dirs
2024-10-08 11:01:53.849 [info] [Info  - 11:01:53 AM] (18154)     file:///home/vagrant/work/deployment-type-handler/.venv/lib/python3.9/site-packages
2024-10-08 11:01:53.850 [info] [Info  - 11:01:53 AM] (18154)     file:///home/vagrant/work/deployment-type-handler/.venv/lib64/python3.9/site-packages
2024-10-08 11:01:53.850 [info] [Info  - 11:01:53 AM] (18154)   Looking in python search path 'file:///home/vagrant/work/deployment-type-handler/.venv/lib/python3.9/site-packages'
2024-10-08 11:01:53.850 [info] [Info  - 11:01:53 AM] (18154)   Attempting to resolve stub package using root path 'file:///home/vagrant/work/deployment-type-handler/.venv/lib/python3.9/site-packages'
2024-10-08 11:01:53.850 [info] [Info  - 11:01:53 AM] (18154)   Attempting to resolve using root path 'file:///home/vagrant/work/deployment-type-handler/.venv/lib/python3.9/site-packages'
2024-10-08 11:01:53.850 [info] [Info  - 11:01:53 AM] (18154)   Looking in python search path 'file:///home/vagrant/work/deployment-type-handler/.venv/lib64/python3.9/site-packages'
2024-10-08 11:01:53.850 [info] [Info  - 11:01:53 AM] (18154)   Attempting to resolve stub package using root path 'file:///home/vagrant/work/deployment-type-handler/.venv/lib64/python3.9/site-packages'
2024-10-08 11:01:53.850 [info] [Info  - 11:01:53 AM] (18154)   Attempting to resolve using root path 'file:///home/vagrant/work/deployment-type-handler/.venv/lib64/python3.9/site-packages'
2024-10-08 11:01:53.850 [info] [Info  - 11:01:53 AM] (18154)   Looking in bundled stubs path 'file:///home/vagrant/.vscode-server/extensions/ms-python.vscode-pylance-2024.10.1/dist/bundled/stubs'
2024-10-08 11:01:53.850 [info] [Info  - 11:01:53 AM] (18154)   Attempting to resolve stub package using root path 'file:///home/vagrant/.vscode-server/extensions/ms-python.vscode-pylance-2024.10.1/dist/bundled/stubs'
2024-10-08 11:01:53.850 [info] [Info  - 11:01:53 AM] (18154)   Attempting to resolve using root path 'file:///home/vagrant/.vscode-server/extensions/ms-python.vscode-pylance-2024.10.1/dist/bundled/stubs'
2024-10-08 11:01:53.850 [info] [Info  - 11:01:53 AM] (18154)   Looking for typeshed third-party path
2024-10-08 11:01:53.850 [info] [Info  - 11:01:53 AM] (18154)   Looking for typeshed stubs path
2024-10-08 11:01:53.851 [info] [Info  - 11:01:53 AM] (18154)   Typeshed path not found
2024-10-08 11:01:54.038 [info] [Info  - 11:01:54 AM] (18154) [BG(1)] Long operation: checking: file:///home/vagrant/work/deployment-type-handler/tests/test_azure_service.py (6256ms)
2024-10-08 11:01:54.039 [info] [Info  - 11:01:54 AM] (18154) Heap stats: total_memory_size=3911MB, total_free_size=2274MB, total_heap_size=524MB, used_heap_size=465MB, cross_worker_used_heap_size=465MB, total_physical_size=522MB, total_available_size=1530MB, heap_size_limit=2004MB
2024-10-08 11:01:54.039 [info] [Info  - 11:01:54 AM] (18154) [BG(1)] Long operation: analyzing: file:///home/vagrant/work/deployment-type-handler/tests/test_azure_service.py (6290ms)
2024-10-08 11:02:00.391 [info] [Info  - 11:02:00 AM] (18154) Heap stats: total_memory_size=3911MB, total_free_size=2274MB, total_heap_size=524MB, used_heap_size=476MB, cross_worker_used_heap_size=476MB, total_physical_size=524MB, total_available_size=1519MB, heap_size_limit=2004MB
2024-10-08 11:02:00.947 [info] [Info  - 11:02:00 AM] (18154) Heap stats: total_memory_size=3911MB, total_free_size=2273MB, total_heap_size=201MB, used_heap_size=196MB, cross_worker_used_heap_size=196MB, total_physical_size=200MB, total_available_size=1805MB, heap_size_limit=2004MB
2024-10-08 11:02:01.058 [info] [Info  - 11:02:01 AM] (18154) Could not import '._patch' in file '/home/vagrant/work/deployment-type-handler/.venv/lib/python3.9/site-packages/azure/mgmt/resource/resources/__init__.py'
2024-10-08 11:02:01.058 [info] [Info  - 11:02:01 AM] (18154)   Attempting to resolve relative import
2024-10-08 11:02:01.058 [info] [Info  - 11:02:01 AM] (18154)   Attempting to resolve using root path 'file:///home/vagrant/work/deployment-type-handler/.venv/lib/python3.9/site-packages/azure/mgmt/resource/resources'
2024-10-08 11:02:02.761 [info] [Info  - 11:02:02 AM] (18154) Heap stats: total_memory_size=3911MB, total_free_size=2249MB, total_heap_size=525MB, used_heap_size=475MB, cross_worker_used_heap_size=475MB, total_physical_size=524MB, total_available_size=1520MB, heap_size_limit=2004MB
2024-10-08 11:02:03.988 [info] [Info  - 11:02:03 AM] (18154) Heap stats: total_memory_size=3911MB, total_free_size=2244MB, total_heap_size=225MB, used_heap_size=211MB, cross_worker_used_heap_size=211MB, total_physical_size=225MB, total_available_size=1787MB, heap_size_limit=2004MB
2024-10-08 11:02:05.743 [info] [Info  - 11:02:05 AM] (18154) Heap stats: total_memory_size=3911MB, total_free_size=2242MB, total_heap_size=525MB, used_heap_size=485MB, cross_worker_used_heap_size=485MB, total_physical_size=525MB, total_available_size=1510MB, heap_size_limit=2004MB
bschnurr commented 1 week ago

thanks. i was hoping to see some kind of error related to "apply_edit"

bschnurr commented 1 week ago

" code quick fix action is not working", you mean the code action is not appearing? or fails to edit the code?

tmeckel commented 1 week ago

" code quick fix action is not working", you mean the code action is not appearing? or fails to edit the code?

@bschnurr

The quick fix Add "import os" is not appearing i.e. missing from the list of quick fixes.

tmeckel commented 1 week ago

thanks. i was hoping to see some kind of error related to "apply_edit"

@bschnurr Any way I could force that in some way? i.e. any sequence of clicks, commands etc. that I could perform that might help here, so that some more log messages are printed.