-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Intelisense mulfunctions when RxCpp is used #5619
Comments
@dzmitry-babrovich I found that by setting the C++ standard to c++17 or gnu++17, then IntelliSense works again with the included RxCpp file. Is this the same case for your project or does the issue persist even when the C++ standard version is set correctly? Does RxCpp library depend on a specific C++ standard version? |
Hi @michelleangela, |
The C/C++ extension gets IntelliSense configuration from c_cpp_properties.json. Information from CMakeLists.txt can be passed on to the extension as well if the "configurationProvider" property is set (see https://code.visualstudio.com/docs/cpp/c-cpp-properties-schema-reference for more info about "configurationProvider ") to a CMake VSCode extension that extracts info from CMakeLists and provides it to the C/C++ extension. The C/C++ extension can also get IntelliSense configuration info from a compile_commands.json file, by setting the "compileCommands" property in c_cpp_properties.json to the path of a compile_commands.json. Only set either "configurationProvider" or "compileCommands", but not both. If neither of those two properties are set, then IntelliSense will get info from the set properties in c_cpp_properties.json (or default values if no c_cpp_properties.json is customized). You can run |
Hi - I have added c_cpp_properties.json to the repo and pushed it up. Unfortunatelly I am still observing the same issue. Here what I get in log diagnostic: -------- Diagnostics - 6/10/2020, 8:24:56 PM |
It looks like the issue may have something to do with the IntelliSense process (cpptools-srv) being slow to start, may be about 5-6 secs. Note that there will be an IntelliSense (cpptools-srv) per translation unit, but there should only be one extension process (cpptools). The extension process will spawn a cpptool-srv process per translation unit. If the log from Regardless of the C++ standard version, IntelliSense was able to work provided that the cpptools-srv was able to start running. I haven't figure out yet what's causing the IntelliSense process to not start either immediately or not start at all, perhaps this has something to do with the container. FYI: I didn't see the uploaded c_cpp_proeprties.json in https://github.com/dzmitry-babrovich/rxcpp-intelisense-bug/tree/master/.vscode, but this may not be a configuration issue, but I can just manually create a local copy of c_cpp_proeprties.json if needed. |
This has been determined to be an issue with the IntelliSense engine that is shared with Visual Studio. Edit: |
This should be fixed with https://github.com/microsoft/vscode-cpptools/releases/tag/0.29.0-insiders . |
Issue Type: Bug
I have create repository at https://github.com/dzmitry-babrovich/rxcpp-intelisense-bug to reproduce the bug.
The container installs RxCpp and part of docker image generation. Check README.md for instructions how to reproduce intelisense mulfunctioning when RxCpp is used.
Extension version: 0.28.2
VS Code version: Code 1.45.1 (5763d909d5f12fe19f215cbfdd29a91c0fa9208a, 2020-05-14T08:27:22.494Z)
OS version: Linux x64 5.3.0-28-generic
Remote OS version: Linux x64 5.3.0-28-generic
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: disabled_software
skia_renderer: disabled_off_ok
video_decode: unavailable_off
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled
webgl2: enabled
The text was updated successfully, but these errors were encountered: