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

User defined literals are crashing GCC IntelliSense #3481

Closed
Novakov opened this issue Apr 17, 2019 · 3 comments
Closed

User defined literals are crashing GCC IntelliSense #3481

Novakov opened this issue Apr 17, 2019 · 3 comments
Labels
bug fixed Check the Milestone for the release in which the fix is or will be available. Language Service reliability Visual Studio Inherited from Visual Studio
Milestone

Comments

@Novakov
Copy link

Novakov commented Apr 17, 2019

Type: LanguageService

Describe the bug

  • OS and Version: Windows 10 x64 1809
  • VS Code Version: 1.33.1
  • C/C++ Extension Version: 0.22.1 (0.22.2-insiders also affected)
  • Other extensions you installed (and if the issue persists after disabling them): None
  • Using user defined integer literal used in function call when using GCC mode causes crash of Microsoft.VSCode.CPP.IntelliSense.Msvc.exe.

To Reproduce

  1. Clone repository https://github.com/Novakov/vscode-cpp-literals-crash
  2. Open cloned repository in VS Code
  3. Adjust compilerPath in .vscode/c_cpp_properties.json to point to GCC compiler (issue confirmed on arm-none-eabi-gcc and MinGW)
  4. Open C++ log panel
  5. Open test.cpp
  6. Move cursor over Do function call in line 5
  7. IntelliSense crashes with error Failed to read response from server: 4

Expected behavior
Intellisense should not crash.

Screenshots
2019-04-17_19-13-01

Additional context
C++ log output (limited to the moment of crash)

textDocument/hover: 43
Failed to read response from server: 4
IntelliSense engine is not responding. Using the Tag Parser instead.
using Tag Parser for quick info
IntelliSense engine is not responding. Using the Tag Parser instead.
IntelliSense engine is not responding. Using the Tag Parser instead.
Checking for syntax errors: file:///d%3A/tmp/vscode/literals-crash/test.cpp
IntelliSense client is currently disconnected

Microsoft.VSCode.CPP.IntelliSense.Msvc.exe memory dump: Microsoft.VSCode.CPP.IntelliSense.Msvc.exe.zip

Call stack:
image

  • User defined literals using parameter instead of template are working fine (constexpr int operator"" _my( unsigned long long n) { return 0; })
  • MSVC IntelliSense mode is not crashing
@sean-mcmanus
Copy link
Collaborator

sean-mcmanus commented Apr 18, 2019

Thanks for reporting this. The bug is from VS 2019 -- I've filed a bug at https://developercommunity.visualstudio.com/content/problem/537614/user-defined-literals-crash-c-intellisense-with-in.html . You can login with your GitHub account to upvote that issue if you want.

@sean-mcmanus sean-mcmanus added Visual Studio Inherited from Visual Studio reliability labels Apr 18, 2019
@sean-mcmanus sean-mcmanus added this to the June 2019 milestone May 2, 2019
@sean-mcmanus sean-mcmanus added the fixed Check the Milestone for the release in which the fix is or will be available. label May 15, 2019
@sean-mcmanus
Copy link
Collaborator

sean-mcmanus commented Jun 14, 2019

Fixed with 0.24.0-insiders (available by setting "C_Cpp.updateChannel" to "Insiders").

@Novakov
Copy link
Author

Novakov commented Jun 19, 2019

Seems to be working fine :)

@github-actions github-actions bot locked and limited conversation to collaborators Oct 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug fixed Check the Milestone for the release in which the fix is or will be available. Language Service reliability Visual Studio Inherited from Visual Studio
Projects
None yet
Development

No branches or pull requests

2 participants