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

Bug with IntelliSense - <algorithm> with c++20 and gcc-10.2.0 #5897

Closed
gandyli opened this issue Aug 5, 2020 · 11 comments
Closed

Bug with IntelliSense - <algorithm> with c++20 and gcc-10.2.0 #5897

gandyli opened this issue Aug 5, 2020 · 11 comments
Labels
bug fixed Check the Milestone for the release in which the fix is or will be available. Language Service regression A bug that didn't exist in a previous release
Milestone

Comments

@gandyli
Copy link

gandyli commented Aug 5, 2020

Type: LanguageService

Describe the bug

  • OS and Version: macOS Mojave(10.14.1)
  • VS Code Version: 1.47.3
  • C/C++ Extension Version: 0.30.0-insiders
  • Other extensions you installed (and if the issue persists after disabling them):
  • Does this issue involve using SSH remote to run the extension on a remote machine?: No
  • A clear and concise description of what the bug is, including information about the workspace (i.e. is the workspace a single project or multiple projects, size of the project, etc).

Include <vector> but IntelliSense shows 'No vector in std' and PCH 警告: 头停止点不在文件范围内。未生成 IntelliSense PCH 文件。
Also, after change the order of the includes, it won't shows PCH 警告: 头停止点不在文件范围内。未生成 IntelliSense PCH 文件。 but 'No vector in std'

Steps to reproduce

  1. Open a file
  2. Paste the code above
  3. See error

Expected behavior

Logs

已完成安装依赖项

文件排除: **/.git
文件排除: **/.svn
文件排除: **/.hg
文件排除: **/CVS
文件排除: **/.DS_Store
文件排除: **/.vscode
搜索排除: **/node_modules
搜索排除: **/bower_components
搜索排除: **/*.code-search
搜索排除: **/.vscode
填充包含完成缓存。
正在发现文件...
  正在处理文件夹(递归): /usr/local/gcc-10.2.0/include/c++/10.2.0/
  正在处理文件夹(递归): /usr/local/gcc-10.2.0/lib/gcc/x86_64-apple-darwin18.2.0/10.2.0/include/
  正在处理文件夹(递归): /usr/local/gcc-10.2.0/lib/gcc/x86_64-apple-darwin18.2.0/10.2.0/include-fixed/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Network.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/IOBluetoothUI.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/GameKit.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/SecurityInterface.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/DiscRecording.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Automator.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/SafariServices.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ExceptionHandling.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/QuartzCore.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/IOBluetooth.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/StoreKit.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/GSS.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreML.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/FinderSync.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Quartz.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/QuartzComposer.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/QuartzFilters.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/PDFKit.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/QuickLookUI.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/ImageKit.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/TWAIN.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreMediaIO.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/MetalPerformanceShaders.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSRayIntersector.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSNeuralNetwork.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSCore.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSImage.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSMatrix.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ExternalAccessory.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ScreenSaver.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/PCSC.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/PreferencePanes.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaPlayer.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/NetFS.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaToolbox.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/SyncServices.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ForceFeedback.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OSAKit.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ServiceManagement.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/NaturalLanguage.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreVideo.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/VideoDecodeAcceleration.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ScriptingBridge.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/MetalKit.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreText.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ImageIO.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ColorSync.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AGL.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/JavaFrameEmbedding.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/vmnet.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Cocoa.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/IOKit.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AVFoundation.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AVFoundation.framework/Versions/A/Frameworks/AVFAudio.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/DiscRecordingUI.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Accelerate.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppleScriptKit.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationServices.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreBluetooth.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Contacts.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/PhotosUI.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/IOSurface.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaLibrary.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/SpriteKit.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreMedia.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/BusinessChat.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenDirectory.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Intents.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/DirectoryService.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaRuntimeSupport.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaNativeFoundation.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppleScriptObjC.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/VideoSubscriberAccount.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreWLAN.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/FSEvents.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/MultipeerConnectivity.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/WebKit.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/NotificationCenter.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/SystemConfiguration.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/GameController.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreTelephony.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenCL.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AudioUnit.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Social.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Versions/C/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/FWAUserLib.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreImage.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreAudio.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Hypervisor.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ICADevices.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreAudioKit.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/LDAP.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/DVDPlayback.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ModelIO.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/SecurityFoundation.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/GLUT.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CalendarStore.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Collaboration.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AudioVideoBridging.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Accounts.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/IMServicePlugIn.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/QuickLook.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AudioToolbox.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Kerberos.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ContactsUI.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreSpotlight.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Tcl.framework/Versions/8.5/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/LocalAuthentication.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Versions/C/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AdSupport.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/InstallerPlugins.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Vision.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/NetworkExtension.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenAL.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/EventKit.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaAccessibility.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/QTKit.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/MapKit.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AVKit.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AddressBook.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreLocation.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CloudKit.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/LatentSemanticMapping.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CFNetwork.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Photos.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/JavaScriptCore.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/GameplayKit.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/DiskArbitration.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/InstantMessage.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreMIDI.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/InputMethodKit.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ImageCaptureCore.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreData.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/GLKit.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CryptoTokenKit.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/VideoToolbox.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/UserNotifications.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/iTunesLibrary.framework/Versions/A/Headers/
  正在处理文件夹(递归): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/SceneKit.framework/Versions/A/Headers/
  正在处理文件夹(非递归): /Users/andyli/
  正在发现文件: 已处理 9059 个文件
  已从数据库中删除 0 个文件
“发现文件”操作已完成。
正在分析剩余的文件...
  正在分析: 已处理 0 个文件
“分析剩余文件”操作已完成。
空闲环路: 重新分析活动文档
正在检查语法错误: file:///Users/andyli/test.cpp
正在为以下项的翻译单元中文件的 IntelliSense 更新进行排队: /Users/andyli/test.cpp
错误波形曲线计数: 4
更新 IntelliSense 时间(秒): 0.263

Screenshots

image
image
image

Additional context

c_cpp_properties.json
{
    "configurations": [
        {
            "name": "Mac",
            "defines": [
                "LOCAL"
            ],
            "compilerPath": "/usr/local/gcc-10.2.0/bin/g++-10.2",
            "intelliSenseMode": "gcc-x64",
            "cStandard": "c18",
            "cppStandard": "c++20",
            "browse": {
                "path": [
                    "/usr/local/gcc-10.2.0/include/c++/10.2.0",
                    "/usr/local/gcc-10.2.0/include/c++/10.2.0/backward",
                    "/usr/local/gcc-10.2.0/include/c++/10.2.0/x86_64-apple-darwin18.2.0",
                    "/usr/local/gcc-10.2.0/lib/gcc/x86_64-apple-darwin18.2.0/10.2.0/include",
                    "/usr/local/gcc-10.2.0/lib/gcc/x86_64-apple-darwin18.2.0/10.2.0/include-fixed",
                    "/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include",
                    "/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/System/Library/Frameworks",
                    "${workspaceFolder}/*"
                ]
            }
        }
    ],
    "version": 4
}
@sean-mcmanus sean-mcmanus added more info needed The issue report is not actionable in its current state not reproing We're not able to reproduce the issue (it's unlikely to get fixed until we find one). labels Aug 5, 2020
@sean-mcmanus
Copy link
Contributor

sean-mcmanus commented Aug 5, 2020

Is this a regression, i.e. does it repro with 0.29.0?

How are you obtaining gcc-10.2.0?

Setting C_Cpp.intelliSenseCacheSize to 0 may be a workaround for the issue.

@gandyli
Copy link
Author

gandyli commented Aug 6, 2020

It doesn't repro with 0.29.0.
I compiled the source on https://gcc.gnu.org with the command following:

../configure --prefix=/usr/local/gcc-10.2.0 \
--enable-checking=release \
--enable-languages=c,c++ \
--disable-multilib \
--with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk \
--program-suffix=-10.2

After I set C_Cpp.intelliSenseCacheSize to 0, I can still see the message std 没有成员 vector.

@sean-mcmanus sean-mcmanus added regression A bug that didn't exist in a previous release investigate: repro This issue's repro steps needs to be investigated/confirmed and removed more info needed The issue report is not actionable in its current state labels Aug 6, 2020
@sean-mcmanus sean-mcmanus self-assigned this Aug 6, 2020
@Prism019
Copy link

Prism019 commented Aug 8, 2020

I'm getting the same issue. Just a note: changing from c++20 to c++17, the issue goes away. I've isolated it to an issue parsing <bits/ranges_algo.h>, which is included by <algorithm> when c++20 is enabled.

image

For some reason, std::ranges::equal_to is being parsed as std::ranges::std::ranges::equal_to.

There's probably more to it, but this is most likely a good starting point.

@michelleangela michelleangela changed the title Bug with IntelliSense Bug with IntelliSense - <algorithm> with c++20 Aug 11, 2020
@michelleangela
Copy link
Contributor

@Prism019 Are you also using gcc-10.2.0 ? Does the issue repro with a different version of gcc or only gcc-10.2.0?

@michelleangela michelleangela changed the title Bug with IntelliSense - <algorithm> with c++20 Bug with IntelliSense - <algorithm> with c++20 and gcc-10.2.0 Aug 11, 2020
@Prism019
Copy link

Prism019 commented Aug 11, 2020

I'm using gcc 10.1.0, obtained from the arch linux repository.

@michelleangela
Copy link
Contributor

I'm using gcc 10.1.0, obtained from the arch linux repository.

@Prism019 Could you provide logs from running the command C/C++: Log Diagnostics for both c++20 and c++17?

@Locietta
Copy link

Hi, I'm getting the same issue here. And toggling from c++20 to c++17 doesn't work for me...

I'm using gcc10.2.0 on WSL(built from source) and MSYS2(installed by package manager) separately. And both generate exactly same bugs


more details I've got:

1. everything is ok if you just include only <vector>

image

2. trigger bug if add an <algorithm>

image

3. <list> , <deque>... works fine with <algorithm> but <array> doesn't

image
image


I can't repro the parse error mentioned by Prism019

image

But I get some others👇

image

image

std::__detail is somehow parsed to std::ranges::__detail


Logs generated by C/C++: Log Diagnostics :

-------- Diagnostics - 8/12/2020, 4:46:27 PM
Version: 0.30.0-insiders2
Current Configuration:
{
    "name": "Linux",
    "includePath": [
        "${workspaceFolder}/**"
    ],
    "defines": [],
    "compilerPath": "/usr/local/bin/g++",
    "compilerArgs": [
        "-std=c++20"
    ],
    "intelliSenseMode": "gcc-x64",
    "cppStandard": "c++17",
    "cStandard": "gnu18"
}
Translation Unit Mappings:
[ /home/locietta/try/try-20-ranges.cpp ]:
    /home/locietta/try/try-20-ranges.cpp
    /usr/local/include/c++/10.2.0/concepts
[ /home/locietta/try/try.cpp ]:
    /home/locietta/try/try.cpp
    /usr/local/include/c++/10.2.0/bits/ranges_algo.h
    /usr/local/include/c++/10.2.0/concepts
[ /home/locietta/try/try-20-concepts.cpp ]:
    /home/locietta/try/try-20-concepts.cpp
    /usr/local/include/c++/10.2.0/bits/ranges_algo.h
    /usr/local/include/c++/10.2.0/concepts
Translation Unit Configurations:
[ /home/locietta/try/try-20-ranges.cpp ]:
    Process ID: 3238
    Memory Usage: 150 MB
    Compiler Path: /usr/local/bin/g++
    Includes:
        /usr/local/include/c++/10.2.0
        /usr/local/include/c++/10.2.0/x86_64-pc-linux-gnu
        /usr/local/include/c++/10.2.0/backward
        /usr/local/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include
        /usr/local/include
        /usr/local/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include-fixed
        /usr/include/x86_64-linux-gnu
        /usr/include
    Standard Version: c++20
    IntelliSense Mode: gcc-x64
    Other Flags:
        --g++
        --gnu_version=100200
[ /home/locietta/try/try.cpp ]:
    Process ID: 3254
    Memory Usage: 193 MB
    Compiler Path: /usr/local/bin/g++
    Includes:
        /usr/local/include/c++/10.2.0
        /usr/local/include/c++/10.2.0/x86_64-pc-linux-gnu
        /usr/local/include/c++/10.2.0/backward
        /usr/local/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include
        /usr/local/include
        /usr/local/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include-fixed
        /usr/include/x86_64-linux-gnu
        /usr/include
    Standard Version: c++20
    IntelliSense Mode: gcc-x64
    Other Flags:
        --g++
        --gnu_version=100200
[ /home/locietta/try/try-20-concepts.cpp ]:
    Process ID: 3276
    Memory Usage: 216 MB
    Compiler Path: /usr/local/bin/g++
    Includes:
        /usr/local/include/c++/10.2.0
        /usr/local/include/c++/10.2.0/x86_64-pc-linux-gnu
        /usr/local/include/c++/10.2.0/backward
        /usr/local/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include
        /usr/local/include
        /usr/local/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include-fixed
        /usr/include/x86_64-linux-gnu
        /usr/include
    Standard Version: c++20
    IntelliSense Mode: gcc-x64
    Other Flags:
        --g++
        --gnu_version=100200
Total Memory Usage: 559 MB

@sean-mcmanus sean-mcmanus removed the not reproing We're not able to reproduce the issue (it's unlikely to get fixed until we find one). label Aug 12, 2020
@michelleangela michelleangela added this to the 0.31.0 milestone Aug 12, 2020
@michelleangela michelleangela removed the regression A bug that didn't exist in a previous release label Aug 12, 2020
@Prism019
Copy link

Prism019 commented Aug 13, 2020

c++20

-------- Diagnostics - 2020/8/13 15:14:24
Version: 0.30.0-insiders2
Current Configuration:
{
    "name": "Linux",
    "includePath": [
        "${workspaceFolder}/**",
        "/usr/include"
    ],
    "defines": [],
    "compilerPath": "/usr/bin/clang",
    "cStandard": "c11",
    "intelliSenseMode": "clang-x64",
    "compilerArgs": [],
    "cppStandard": "c++20",
    "browse": {
        "path": [
            "${workspaceFolder}/**",
            "/usr/include"
        ],
        "limitSymbolsToIncludedHeaders": true
    }
}
Translation Unit Mappings:
[ /usr/include/c++/10.1.0/bits/ranges_algo.h ]:
    /usr/include/c++/10.1.0/bits/ranges_algo.h
Translation Unit Configurations:
[ /usr/include/c++/10.1.0/bits/ranges_algo.h ]:
    Process ID: 6437
    Memory Usage: 207 MB
    Compiler Path: /usr/bin/clang
    Includes:
        /usr/include/c++/10.1.0
        /usr/include/c++/10.1.0/x86_64-pc-linux-gnu
        /usr/include/c++/10.1.0/backward
        /usr/local/include
        /usr/lib/clang/10.0.1/include
        /usr/include
    Standard Version: c++20
    IntelliSense Mode: clang-x64
    Other Flags:
        --clang
        --clang_version=100001
        --header_only_fallback
Total Memory Usage: 207 MB

c++17

-------- Diagnostics - 2020/8/13 15:18:28
Version: 0.30.0-insiders2
Current Configuration:
{
    "name": "Linux",
    "includePath": [
        "${workspaceFolder}/**",
        "/usr/include"
    ],
    "defines": [],
    "compilerPath": "/usr/bin/clang",
    "cStandard": "c11",
    "intelliSenseMode": "clang-x64",
    "compilerArgs": [],
    "cppStandard": "c++17",
    "browse": {
        "path": [
            "${workspaceFolder}/**",
            "/usr/include"
        ],
        "limitSymbolsToIncludedHeaders": true
    }
}
Translation Unit Mappings:
[ /usr/include/c++/10.1.0/bits/ranges_algo.h ]:
    /usr/include/c++/10.1.0/bits/ranges_algo.h
Translation Unit Configurations:
[ /usr/include/c++/10.1.0/bits/ranges_algo.h ]:
    Process ID: 6742
    Memory Usage: 11 MB
    Compiler Path: /usr/bin/clang
    Includes:
        /usr/include/c++/10.1.0
        /usr/include/c++/10.1.0/x86_64-pc-linux-gnu
        /usr/include/c++/10.1.0/backward
        /usr/local/include
        /usr/lib/clang/10.0.1/include
        /usr/include
    Standard Version: c++17
    IntelliSense Mode: clang-x64
    Other Flags:
        --clang
        --clang_version=100001
        --header_only_fallback
Total Memory Usage: 11 MB

Also: I got the Expected a ';' error as well, but I got the more-specific error by deleting structs from the header until other errors started to show up (seems the header is too big to parse?). I also made sure I did not delete any possible definitions of std::ranges::equal_to.

@sean-mcmanus
Copy link
Contributor

Yes, thanks for all the info -- we have gotten gcc 10.2 (via sudo add-apt-repository ppa:ubuntu-toolchain-r/ppa) and we repro the bug. We're working with the VS C++ team to investigate further. Some new C++20 code in the new gcc 10.2 headers is causing our parser to malfunction. I'm see the errors below with a preprocessed file:
image

@sean-mcmanus sean-mcmanus self-assigned this Aug 17, 2020
@sean-mcmanus sean-mcmanus modified the milestones: 0.31.0, 0.30.0 Aug 17, 2020
@sean-mcmanus sean-mcmanus added the regression A bug that didn't exist in a previous release label Aug 17, 2020
@sean-mcmanus
Copy link
Contributor

sean-mcmanus commented Aug 18, 2020

I got a repro with VS (recent changes fixed the errors in this issue, but there are still crashes or "No IL available"). I've filed a bug at https://developercommunity.visualstudio.com/content/problem/1154128/c-intellisense-doesnt-work-with-the-gcc-102-algori.html .

UPDATE: Appears like this will be fixed in our next release.

@sean-mcmanus sean-mcmanus modified the milestones: 0.30.0, Tracking Aug 18, 2020
@sean-mcmanus sean-mcmanus removed the investigate: repro This issue's repro steps needs to be investigated/confirmed label Aug 18, 2020
@sean-mcmanus sean-mcmanus removed their assignment Aug 18, 2020
@sean-mcmanus sean-mcmanus modified the milestones: Tracking, 0.30.0 Aug 18, 2020
@sean-mcmanus sean-mcmanus added the fixed Check the Milestone for the release in which the fix is or will be available. label Aug 18, 2020
@sean-mcmanus
Copy link
Contributor

Fixed with https://github.com/microsoft/vscode-cpptools/releases/tag/0.30.0-insiders3 .

Please file a new issue if you still hit other crashes in other scenarios.

@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 regression A bug that didn't exist in a previous release
Projects
None yet
Development

No branches or pull requests

5 participants