-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
How can I find tasks.json since it's no longer under /projects folder? #17335
Comments
the consequences of multi-root workspaces? cc @azatsarynnyy @ericwill |
After eclipse-che/che-theia#739, imported Che Commands are stored on the user level, in |
it makes sense to provide some changes to the doc https://www.eclipse.org/che/docs/che-7/defining-custom-commands-for-che-theia/ to inform user that |
@tsmaeder can you take care of this? |
Communication on mailing lists(internal/external) would help as well |
We're still using the same single-root workspace we used to. @SDAdham could you give a concrete example of what you're trying to do? Using shell tasks in /projects/.theia/tasks.json should still work at this time. |
I've just put this into /projects/.theia/tasks.json and it works fine with che-theia:next:
|
Hello @tsmaeder , It doesn't work with che My issue with tasks, I am trying to get variables like: These varables don't work with
Now the shell above can't be written in
So as a workaround, I created an additional task:
Now considering that Can you please provide a devfile with commands that solves the puzzles above? I'd really appreciate it. For example, if I can give up the Thanks, |
I was able to confirm that the replication of the vscode-task action to user level tasks does not work in che-theia:next. |
In the theia log, I can seen the following lines:
This indicates the the tasks plugin cannot parse some task definition from the devfile. |
In the end, the mystery is not that deep:
should read
@SDAdham does that fix your problem? I agree writing a message to a log the user never sees is not the best way to help the user 🤷 |
@tsmaeder I'll try changing |
@tsmaeder : I made those changes to 2 tasks, both didn't appear in the right pane but only one of them appeared from |
I grouped the 2 tasks together in the reference and both showed up from the |
I tried adding target -> component thinking that it might be due to those 2 missing, but still no difference. |
@SDAdham both things you describe are working as expected:
Only commands of type "che" from the devfile appear in the "my workspace" bar
You can only have one command of type "vscode-task" per workspace. Looking at the code, that is explicitly the intention. So as far as this issue is concerned, I think it "works as designed". If you have enhancement requests, I would propose that you open an issue. It's easier to discuss concrete improvements that way. |
Issues go stale after Mark the issue as fresh with If this issue is safe to close now please do so. Moderators: Add |
Summary
I have updated the devfile to use latest version from theia, today I am creating a new workspace, and the directory .theia in the project folder is no longer used and not created, I created it and yet it's still not used.
Because I am using promptString and shell tasks, I don't know how to write these in the devfile, so what I do, is that I created a tasks that overwrites the tasks.json. Can you please advise a workaround or share examples of devfiles with shell tasks and input are used?
Relevant information
Version:
Che-Theia@9d3a00a using Theia@c837b6cb
The text was updated successfully, but these errors were encountered: