-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
fix cpp task labels and ensure they can be run #6419
Conversation
This pull request fixes the following problems: - cpp task labels are displayed as "undefined: xxxx" and it is wrong - Theia always fails to run tasks defined in cpp extension. When they are started from the "Run Task", users either get "launch config not found" error, or an exception that says "Error attaching to terminal". fixed #6204
4c4b9de
to
c85db14
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works well for me, I do not see undefined
as a title any longer, and the tasks themselves can now execute successfully! 👍 I verified existing tasks in tasks/test-resources
and they work correctly as well.
I'll let @lmcbout try it out as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question 1:
When I run a task from "tasks.json" you ask for the "problem matcher" configuration, then you adjust it in the "tasks.json" file. So for the next run, no question asked.
When I create a task from the preference ( cpp.buildConfigurations ), it is created as a "Detected task", but when calling "Terminal -> Run task", you keep asking which "problem matcher" to use, you don't save the information inside the preference setting, is it supposed to work like this ?
Question 2:
From the "Quick menu item" for the detected task, you have the "settings button" at the end of the line, but nothing happen for the detected task when selecting it, is it normal? For a task define in "tasks.json", you open the file "tasks.json" so should we open the preference setting for the detected task ?
This is only true for the
I believe this is correct, the |
Hi @lmcbout, thank you for the review! cpp tasks are different from others in nature: unlike the regular detected tasks that we know which root fold they come from, cpp tasks are defined in preference and not bound to any root folders. If you take a closer look at the GIF I attached to the “how to test” session, you would find the “directory” property was set “/home/elaihau/dev”, a folder that is not even part of my workspace. I understand that it is more consistent to save the user-chosen problem matchers somewhere so users don’t get prompted every time the task is started, but unfortunately I really have no idea where could that information be kept. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@elaihau I have no suggestion for the moment, but we should keep it in mind.
This pull request fixes the following problems:
fixed #6204
How to test
Review checklist