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

Features in Mingw C++ tutorial not present in C++ extension #4840

Open
slootmat opened this issue Jan 13, 2020 · 6 comments
Open

Features in Mingw C++ tutorial not present in C++ extension #4840

slootmat opened this issue Jan 13, 2020 · 6 comments
Labels

Comments

@slootmat
Copy link

@slootmat slootmat commented Jan 13, 2020

Issue Type: Bug


  1. g++ --version typed in fresh command prompt after setting PATH did not recognize command, but calling the mingw64 console from that windows command prompt did work.
  2. intellisense example, right click on msg. did not produce any response
  3. Dropdown list for Terminal > Configure Default Build Task did not produce "C/C++: xxx..." selections. Instead, it produced a single entry:"Create tasks.json from template" selecting this resulted in a dropdown list of inapplicable choices: MSBuild, maven, .net Core, others

https://code.visualstudio.com/docs/cpp/config-mingw
Version: 1.41.1 (user setup)
Commit: 26076a4de974ead31f97692a0d32f90d735645c0
Date: 2019-12-18T14:58:56.166Z
Electron: 6.1.5
Chrome: 76.0.3809.146
Node.js: 12.4.0
V8: 7.6.303.31-electron.0
OS: Windows_NT x64 10.0.18362

Extension version: 0.26.2
VS Code version: Code 1.41.1 (26076a4de974ead31f97692a0d32f90d735645c0, 2019-12-18T14:58:56.166Z)
OS version: Windows_NT x64 10.0.18362

System Info
Item Value
CPUs Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz (12 x 2208)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: enabled
rasterization: enabled
skia_renderer: disabled_off
surface_control: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 63.55GB (54.76GB free)
Process Argv .
Screen Reader no
VM 0%
@sean-mcmanus
Copy link
Collaborator

@sean-mcmanus sean-mcmanus commented Jan 13, 2020

Issue 3 appears to be the same as #4834 -- setting your compilerPath to the mingw compiler (or any non empty-string) should be a workaround.

Not sure about issues 1 and 2. Using C/C++: Log Diagnostics with the desired file active may show what is wrong with the IntelliSense configuration.

@slootmat
Copy link
Author

@slootmat slootmat commented Jan 14, 2020

@sean-mcmanus
Copy link
Collaborator

@sean-mcmanus sean-mcmanus commented Jan 14, 2020

The compilerPath is a setting in c_cpp_properties.json (from C/C++: Edit Configurations) -- which is not normally necessary to use the build and debug feature, but there's a bug that is causing the feature to fail when the compilerPath is blank. Setting the C_Cpp.default.compilerPath may also work (but I haven't verified that). The bug is causing the compilers on the PATH to not be shown in the dropdown.

@michelleangela
Copy link
Collaborator

@michelleangela michelleangela commented Jan 14, 2020

g++ --version typed in fresh command prompt after setting PATH did not recognize command, but calling the mingw64 console from that windows command prompt did work.

@slootmat , how did you open VS Code? Was it through a Windows command prompt?

@slootmat
Copy link
Author

@slootmat slootmat commented Jan 14, 2020

@michelleangela
Copy link
Collaborator

@michelleangela michelleangela commented Jan 14, 2020

Initially I thought you'd have to open VS code from the Windows command prompt, but this is not necessary.

I was able to execute g++ --version in the VS Code integrated terminal when I restarted or reloaded VS Code after installing mingw64, otherwise the integrated terminal will not recognize it. I'm assuming you've also restarted VS Code and the command still does not work on VS Code? This seems like a VS Code terminal issue. Did you configure any terminal settings on VS Code?

As for IntelliSense not working when you right click on code sample msg, can you run C/C++: Log diagnostics from the VS Code command palette and share the logs here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.