-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed as not planned
Labels
Language Servicebuginvestigate: reproThis issue's repro steps needs to be investigated/confirmedThis issue's repro steps needs to be investigated/confirmedreliability
Milestone
Description
Environment
- OS and Version: Windows 11 23H2
- VS Code Version: 1.90.2
- C/C++ Extension Version: 1.20.5
- If using SSH remote, specify OS of remote machine: N/A
Bug Summary and Steps to Reproduce
Intellisense hang - Reliable reproduction
- OS and Version: Windows 11 23H2
- VS Code Version: 1.90.2
- C/C++ Extension Version: 1.20.5
- If using SSH remote, specify OS of remote machine: N/A
Bug Summary:
Infinite hang on "IntelliSense: Updating", and inability to browse source files
Steps to reproduce:
-
...or just create an empty directory, manually download repro.ps1
git clone https://github.com/pmolodo/vscode_cpp_intellisense_fail.git cd vscode_cpp_intellisense_fail
and [settings.json(https://github.com/pmolodo/vscode_cpp_intellisense_fail/blob/main/settings.json)] from the above repo into it, and cd in -
...or inspect
powershell -ExecutionPolicy ByPass ./repro.ps1repro.ps1and manually execute the commands, it's not long - This should launch a fresh vscode workspace for OpenUSD, with only the ms-vscode.cpptools extension installed
- It should have already opened
pxr\imaging\plugin\hdEmbree\renderer.cpp- if not, browse and open it - Wait for the file parser to finish
- In the C++ output log, you should see that it's able to find most of the relevant source in the repo - at
least enough to allow basic source browsing - IntelliSense, however, will keep spinning, stuck on "IntelliSense: Updating"
- Try ctrl-clicking to browse to one of the headers - ie,
pxr/imaging/plugin/hdEmbree/renderBuffer.h - Witness the nothing!
Expected behavior:
- IntelliSense should finish, and at least basic file browsing should be possible
Configuration and Logs
- There's no
c_cpp_properties.jsonin my example - it's using a fresh workspace with default settings. However, the defaultincludePath=${workspaceFolder}\**should be enough for it to do basic discovery and file browsing, at least.
RunningC/C++: Log Diagnosticsdidn't have any obvious effect...? - The output setting the language server logging to "Debug" are also in the above repo:
cpptools.debug.log
Other Extensions
No response
Additional context
NOTE: the above reproduction was trying to browse a codebase that has not been built yet, and without all the dependencies, for easier / faster reproduction. However, the issue still happens with a complete / functioning build, with all dependencies. To reproduce this scenario (be prepared to wait!) on a "built" repo, with all dependencies, you can follow these steps:
- Install python 3.10, add it to your path
- Open a Visual Studio Developer Command Prompt
- cd into the OpenUSD directory
NOTE: Make sure your OpenUSD directory absolute filepath isn't too long, or the build may
hit the Windows max file path limit... - pip install jinja2 pyopengl PySide6
- python build_scripts\build_usd.py _install -v
Metadata
Metadata
Assignees
Labels
Language Servicebuginvestigate: reproThis issue's repro steps needs to be investigated/confirmedThis issue's repro steps needs to be investigated/confirmedreliability
Type
Projects
Status
Done