Task Runner in the VS Code shows no task tu run

Hi Toradex,

I can not see any available task from the TASK RUNNER in the VS Code.

I have changed the location of these folders .vscode & .conf to match to our project requirments

How to let these tasks got displayed from the task runner ( I do not want the folders .vscode & .conf in the solution level)
See here they are under the folder HE.Varia.APP.Torizon

Any help?

Best regards
Ahmed49

Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


Hi Ahmed49,

The issue you’re experiencing is likely due to the fact that the Torizon IDE Extension expects the .vscode and .conf folders to be in specific locations to function correctly. When you move these folders, the extension may not be able to locate the necessary configuration files, resulting in no tasks being displayed in the TASK RUNNER.

To resolve this issue, you have a couple of options:

  1. Revert the Folder Locations:

    • Move the .vscode and .conf folders back to their original locations at the solution level. This will allow the Torizon IDE Extension to locate the configuration files and display the tasks in the TASK RUNNER.
  2. Update the Configuration Paths:

    • If you must keep the folders in their new locations, you will need to update the paths in the VS Code settings to point to the new locations of the .vscode and .conf folders. This can be done by modifying the settings.json file in your VS Code workspace to include the new paths.

Here is an example of how you might update the settings.json file:

{
    "torizon.vscodeFolder": "HE.Varia.APP.Torizon/.vscode",
    "torizon.confFolder": "HE.Varia.APP.Torizon/.conf"
}

By updating these settings, you inform the Torizon IDE Extension of the new locations of the configuration folders, allowing it to find and display the tasks in the TASK RUNNER.

If you continue to experience issues, please ensure that the paths are correct and that the necessary configuration files are present in the specified folders.

Best regards,
[Your Name]

Please, also check if these links can help you solve your problem:

https://community.nxp.com/t5/MCUXpresso-for-VSCode/VSCode-failed-to-build-with-error-could-not-determine-build/m-p/1843603.

Hi @Ahmed49 !

About .vscode

The location of the .vscode folder is something defined by VS Code itself and is not something specific to the Torizon IDE extension.

You can check it from VS Code’s documentation itself: Visual Studio Code User and Workspace Settings

VS Code stores workspace settings at the root of the project in a .vscode folder. This makes it easy to share settings with others in a version-controlled (for example, Git) project.

I quickly searched for something that could help you to relocate .vscode, but I could not find anything helpful for your case. And, to be fair, even if you find a way to do so, it can bring you more harm than good specially if VS Code doesn’t support such use case very well.

About .conf

Now, about the .conf folder, as far as I can tell, this is a folder specific to Torizon IDE. You would need to get deeper into how our templates work and customize it yourself. You would also need to maintain the customization yourself. To be honest I don’t think it is worth the work.

For both cases (.vscode and .conf), even if you manage to make it work on non-standard location, you will have the burden to make it work for future versions of VS Code and Torizon IDE.

Showing tasks on Task Runner

If you keep both folders in the standard place (the root folder of your project), the Task Runner (and the other features) will work as intended.

About your use case

Having said all that, could you please share with us more details on why you need to place such folders elsewhere? Having more details makes it easier to share your with Torizon R&D team to be analyzed.

Best regards,