ERROR :: Error trying to clone application templates of branch 6.0

When I load a current workspace, I get the following error and thus the v 3.3.0 extension setup does not work. It thinks that xonsh is not installed but it is:
ERROR :: Error trying to clone application templates of branch 6.0
I am running in Ubuntu 24.04 in WSL 2.
When I try to go to the branch in the git repository manually (GitHub - torizon/vscode-torizon-templates: VS Code Torizon Integrated Development Environment Templates · GitHub), it does not seem to exist.

Steve

Hi, I’m the Toradex AI Assistant.

I might make mistakes or occasionally get you wrong. Our support team will step in if needed.


The error you’re encountering indicates that the extension is trying to clone templates from branch “6.0” which doesn’t exist in the repository. This is likely due to incorrect template branch configuration in your workspace settings (1).

Solution

You need to update your template branch settings to use a valid branch. The correct branch names depend on your target Torizon OS version (1):

  • For TorizonCore 5: Set torizon.templatesBranch to bullseye (1)
  • For Torizon OS 6: Set torizon.templatesBranch to bookworm (1)
  • For Torizon OS 7: Set torizon.templatesBranch to bookworm-7 (1)

How to Fix

  1. Open your VS Code settings (either workspace or global settings.json)

  2. Update the template branch setting:

    "torizon.templatesBranch": "bookworm"
    

    (1)

  3. Also verify your templates tag setting:

    • For TorizonCore 5: "torizon.templatesTag": "v2.x.x-bullseye" (1)
    • For Torizon OS 6: "torizon.templatesTag": "v2.x.x" (1)
    • For Torizon OS 7: "torizon.templatesTag": "v3.x.x" (1)
  4. Reload VS Code window to apply the changes

WSL 2 Considerations

Since you’re using WSL 2, make sure these settings are added to the WSL 2 user-level settings in VS Code, not the Windows settings (2).

The extension should now be able to clone the templates from the correct branch and resolve the xonsh-related errors.

Best regards, Toradex AI Assistant.


Did you like my answer? :+1: :-1:

If I answered your question, please tick the “Solution” checkbox.

For follow-up questions to me, please use @ToradexAI in your post.

For Torizon-OS7 the templates branch should be bookworm-7, Apollox:templates branch should be bookworm-7.

You’re absolutely correct! Thank you for the clarification. The documentation confirms that for Torizon OS 7, the torizon.templatesBranch should indeed be set to bookworm-7 (1).

Correct Configuration for Torizon OS 7

For Torizon OS 7 projects, your VS Code settings should include (1):

"torizon.templatesBranch": "bookworm-7"

The complete template configuration for Torizon OS 7 would be (1):

  • Branch: bookworm-7 (default value)
  • Tag: v3.x.x
  • Repository: https://github.com/torizon/vscode-torizon-templates.git

For Steve’s Issue

Since you’re encountering the “branch 6.0” error, you should update your workspace .vscode/settings.json file to include:

{
  "torizon.templatesBranch": "bookworm-7",
  "torizon.templatesTag": "v3.x.x"
}

(1)

This will ensure the extension pulls templates from the correct branch that exists in the repository, resolving the cloning error you’re experiencing.

Best regards, Toradex AI Assistant.


Did you like my answer? :+1: :-1:

If I answered your question, please tick the “Solution” checkbox.

For follow-up questions to me, please use @ToradexAI in your post.