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

"Run and Debug" and "F5" doesn't show the compilers detail in the API #4278

Closed
ranolfi opened this issue Sep 19, 2019 · 7 comments · Fixed by #6377
Closed

"Run and Debug" and "F5" doesn't show the compilers detail in the API #4278

ranolfi opened this issue Sep 19, 2019 · 7 comments · Fixed by #6377
Assignees
Labels
bug fixed Check the Milestone for the release in which the fix is or will be available. tasks/build/debug An issue relating to tasks.json (e.g. build issues)
Milestone

Comments

@ranolfi
Copy link

ranolfi commented Sep 19, 2019

Type: General

  • OS and Version: Arch Linux
  • VS Code Version: Code-OSS 1.37.1
  • C/C++ Extension Version: 0.25.1

When we have a workspace folder open, in the Debug panel when clicking the Add Configuration option and then select C++ (GDB/LLDB), some options with the same name are offered:

image

I tried all three "g++ build and debug active file". Options 1 and 2 generates the same launch.json and tasks.json; option 3 creates a slightly different launch.json file ("miDebuggerPath": "/bin/gdb" instead of "/usr/bin/gdb").

In any case, this is confusing.

@sean-mcmanus sean-mcmanus added bug tasks/build/debug An issue relating to tasks.json (e.g. build issues) help wanted Can be fixed in the public (open source) repo. labels Sep 19, 2019
@bobbrow bobbrow added this to the On Deck milestone Oct 9, 2019
@bobbrow bobbrow removed the help wanted Can be fixed in the public (open source) repo. label Aug 21, 2020
@bobbrow bobbrow modified the milestones: On Deck, 1.1.0 Aug 28, 2020
@elahehrashedi elahehrashedi added more info needed The issue report is not actionable in its current state and removed more info needed The issue report is not actionable in its current state labels Sep 28, 2020
@elahehrashedi
Copy link
Contributor

This is fixed in the new build task changes. Will be available in C/C++ Extension Version: 1.1.0

@elahehrashedi elahehrashedi reopened this Sep 28, 2020
@elahehrashedi elahehrashedi added the fixed Check the Milestone for the release in which the fix is or will be available. label Sep 28, 2020
@sean-mcmanus
Copy link
Contributor

sean-mcmanus commented Oct 9, 2020

@elahehrashedi I'm still reproing this with 1.1.0-insiders. What's supposed to happen?
image

@sean-mcmanus
Copy link
Contributor

That screenshot is from F5 with no tasks.json generated.

@sean-mcmanus
Copy link
Contributor

I see it fixed for Configure Default Build Task.

@sean-mcmanus sean-mcmanus removed the fixed Check the Milestone for the release in which the fix is or will be available. label Oct 9, 2020
@elahehrashedi
Copy link
Contributor

@sean-mcmanus can you please use the vscode-insiders so that I can see the details of each of those compilers?

@sean-mcmanus
Copy link
Contributor

Yeah, it doesn't show the details with vscode-insiders. Use F5 (or Build and Debug Active File).

@bobbrow bobbrow removed this from the 1.1.0 milestone Oct 22, 2020
@bobbrow bobbrow added this to the 1.2.0 milestone Oct 22, 2020
@elahehrashedi
Copy link
Contributor

elahehrashedi commented Oct 23, 2020

The user is getting this screen after running "Run and debug" or pressing "F5". I fixed this issue and sent a PR.
image
the paths are not visible:
image
I solved this problem for "Run and Debug". look at bug: #6376

@sean-mcmanus but when we are running ("C/C++ build and debug active file), the details are not visible and it seems to be on Vs Code side, as the details are being set, but the API doesn't show them. I need to investigate more on this. If the details (i.e. compiler paths) are shown to the user, they will see the difference between different compilers. I opened a new issue for this.

@elahehrashedi elahehrashedi changed the title Options with duplicate names in the 'Add Configuration' feature "Run and Debug" doesn't show the compilers detail in the API Oct 23, 2020
@elahehrashedi elahehrashedi changed the title "Run and Debug" doesn't show the compilers detail in the API "Run and Debug" and "F5" doesn't show the compilers detail in the API Oct 23, 2020
@elahehrashedi elahehrashedi modified the milestones: 1.2.0, 1.1.0 Oct 27, 2020
@elahehrashedi elahehrashedi added the fixed Check the Milestone for the release in which the fix is or will be available. label Oct 28, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Dec 12, 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. tasks/build/debug An issue relating to tasks.json (e.g. build issues)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants