I’ve just installed a fresh Windows 11 PC and I set up Torizon IDE Extension (v 3.3.0) following these steps.
I did checkout of my torizoncore-builder project (that I use successfully on my old PC inside a ubuntu 22-04 WSL distro.
And I took the opportunity of new PC to updating everything.
So I run try-update-template task, but it fails with the following log:
Executing task: pwsh -nop /home/username/repo/tcb_project/.conf/projectUpdater.ps1 /home/username/repo/tcb_project tcb_project 0
⚠️ project updater updated, running it again
Your template is on Torizon OS version 6 and you are updating it to a template in Torizon OS version 7
Are you sure you want to proceed with the update? [y/n]: y
⚠️ On Torizon 7, the scripts are moved from powershell to a Python shell (https://xon.sh/). So, removing the powershell scripts…
🐚 SETUP XONSH
xonsh is already installed, updating torizon-templates-utils …
Collecting git+https://github.com/torizon/vscode-torizon-templates.git@main#subdirectory=scripts/utils/pip
Cloning
(to revision main) to /tmp/pip-req-build-k55_zblb
Running command git clone --filter=blob:none --quiet
/tmp/pip-req-build-k55_zblb
Did not find branch or tag ‘main’, assuming revision or ref.
Running command git checkout -q main
error: pathspec ‘main’ did not match any file(s) known to git
error: subprocess-exited-with-error
× git checkout -q main did not run successfully.
│ exit code: 1
╰─> No available output.
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed to build ‘git+https://github.com/torizon/vscode-torizon-templates.git@main#subdirectory=scripts/utils/pip’ when git checkout -q main
‘/home/username/.local/pipx/venvs/xonsh/bin/python -m pip install --force-reinstall git+https://github.com/torizon/vscode-torizon-templates.git@main#subdirectory=scripts/utils/pip’ failed
all ok ✅
The latest Torizon OS major version is 7
But your templates repository is using the major version 6.
Check the torizon.templatesBranch property in your settings.json
Your template is on Torizon OS major version 6 and you are updating it to a template in Torizon OS major version 7
Are you sure you want to proceed with the update? [y/n] y
✅ Latest scripts and documentation merged
xonsh: To log full traceback to a file set: $XONSH_TRACEBACK_LOGFILE =
Traceback (most recent call last):
File “/home/username/repo/tcb_project/.conf/project-updater.xsh”, line 477, in
_update_table = _update_table.replace(“$projectName”, project_name)
TypeError: replace() argument 2 must be str, not None
❌ Error updating the project
The terminal process “pwsh ‘-nop’, ‘/home/username/repo/tcb_project/.conf/projectUpdater.ps1’, ‘/home/username/repo/tcb_project’, ‘tcb_project’, ‘0’” terminated with exit code: 1.
Terminal will be reused by tasks, press any key to close it.