VS Code / Error trying to get application templates

Dear support team,

since I couldn’t find an entry about my problem, I would like to state my problem here.


Environment used:
Verdin iMX8MP
Yavia Carrier Board

D=torizon
NAME=“TorizonCore”
VERSION=“6.4.0+build.5 (kirkstone)”
VERSION_ID=6.4.0-build.5
PRETTY_NAME=“TorizonCore 6.4.0+build.5 (kirkstone)”
DISTRO_CODENAME=“kirkstone”
BUILD_ID=“5”
ANSI_COLOR=“1;34”
VARIANT=“Docker”

The module was set up according to these instructions: Embedded Labworks training
It was used during the Boot camp event on 11/20/2023 in Munich.


I’m currently trying to create a demo application with the C# .NET 6.0 template in Visual Studio code.
I get the following message:

[12-12 13:28:37.512] Activating Torizon IDE …
[12-12 13:28:37.512] Telemetry is enabled
[12-12 13:28:37.512] Extension collects completely anonymous telemetry data about templates usage. Participation in this anonymous program is optional, and you may opt-out if you’d not like to share any information. Check: https://github.com/toradex/torizon-experimental-torizon-ide-v2-docs/blob/main/USAGE-DATA.md#opt-out
[12-12 13:28:37.512] Telemetry allows us to accurately gauge templates usage. This data will help us to focus better on the most used templates, adding new features and putting effort in the right place.
[12-12 13:28:37.512] Resolving host IP address …
[12-12 13:28:37.536] Host IP address OK
[12-12 13:28:37.572] Docker installed OK
[12-12 13:28:37.716] Docker running OK
[12-12 13:28:38.016] Docker compose OK
[12-12 13:28:38.038] PowerShell OK
[12-12 13:28:38.081] git OK
[12-12 13:28:38.103] dig OK
[12-12 13:28:38.190] avahi-resolve OK
[12-12 13:28:38.197] nmap OK
[12-12 13:28:38.210] iputils-ping OK
[12-12 13:28:38.223] file OK
[12-12 13:28:38.232] sshpass OK
[12-12 13:28:38.256] net-tools OK
[12-12 13:28:38.257] Cloning project templates
[12-12 13:28:38.298] Project templates clone OK
[12-12 13:28:38.355] ERROR :: Error trying to get application templates
[12-12 13:28:38.355] error: pathspec ‘v2.3.1’ did not match any file(s) known to git

[12-12 13:28:38.364] Checking connected devices …
[12-12 13:28:38.366] Scanning Torizon devices …
[12-12 13:28:38.381] Configuring debug id_rsa …
[12-12 13:28:38.382] Debug id_rsa OK
[12-12 13:28:38.383] Torizon IDE extension activated
[12-12 13:28:38.613] Checking host ip sanity …
[12-12 13:28:39.112] Host ip is OK
[12-12 13:28:39.162] Device 192.168.1.114 set as Docker Host
[12-12 13:28:40.815] Debian bookworm packages list load OK

Hey @MichaelN

could you please check the repo folder. Please send the return of the following commands to me:

git -C $HOME/.apollox remote -v
git -C $HOME/.apollox branch -a

BR,

Hey!

See the results below

On the torizon module

Within the development session

image001.png

image002.png

image003.png

image004.png

image005.png

image007.jpg

@MichaelN thanks.

Could you please remove the folder? On the development session:

rm -rf $HOME/.apollox

And a question, are you using in this development session the VM provided for the bootcamp?

BR,

The folder has been deleted.

Then I started another C# .net 6 console application. The previous message has now disappeared.

[12-13 13:48:01.787] Activating Torizon IDE …

[12-13 13:48:01.788] Telemetry is enabled

[12-13 13:48:01.788] Extension collects completely anonymous telemetry data about templates usage. Participation in this anonymous program is optional, and you may opt-out if you’d not like to share any information. Check: https://github.com/toradex/torizon-experimental-torizon-ide-v2-docs/blob/main/USAGE-DATA.md#opt-out

[12-13 13:48:01.788] Telemetry allows us to accurately gauge templates usage. This data will help us to focus better on the most used templates, adding new features and putting effort in the right place.

[12-13 13:48:01.788] Resolving host IP address …

[12-13 13:48:01.827] Host IP address OK

[12-13 13:48:01.886] Docker installed OK

[12-13 13:48:02.061] Docker running OK

[12-13 13:48:02.357] Docker compose OK

[12-13 13:48:02.558] PowerShell OK

[12-13 13:48:02.598] git OK

[12-13 13:48:02.644] dig OK

[12-13 13:48:02.656] avahi-resolve OK

[12-13 13:48:02.669] nmap OK

[12-13 13:48:02.685] iputils-ping OK

[12-13 13:48:02.705] file OK

[12-13 13:48:02.716] sshpass OK

[12-13 13:48:02.723] net-tools OK

[12-13 13:48:02.723] Cloning project templates

[12-13 13:48:02.736] Project templates clone OK

[12-13 13:48:02.762] Checkout templates repo to v2.3.1 OK

[12-13 13:48:02.764] Checking connected devices …

[12-13 13:48:02.764] Scanning Torizon devices …

[12-13 13:48:02.781] Configuring debug id_rsa …

[12-13 13:48:02.781] Debug id_rsa OK

[12-13 13:48:02.787] Torizon IDE extension activated

[12-13 13:48:03.113] Checking host ip sanity …

[12-13 13:48:03.661] Host ip is OK

[12-13 13:48:03.786] Device 192.168.1.114 set as Docker Host

[12-13 13:48:04.514] Debian bookworm packages list load OK

But when i pres the „run“ button, i get this messages:

Executing task: dotnet build /home/torizon/testcsharpconsole/testcsharpconsole.csproj /property:GenerateFullPaths=true /consoleloggerparameters:NoSummary

  • The terminal process failed to launch: Path to shell executable “dotnet” does not exist.

Your question: And a question, are you using in this development session the VM provided for the bootcamp?
è Yes

image007.jpg

thanks for the info, this way it will be easier for us to reproduce the problem on our side (the VM stopped in time and probably we have an update issue in the repo folder, the workaround is to remove the folder)

so, now it needs to install the dependencies for .NET development. First, make sure that you have VS Code updated and also the extension updated (since you are using inside the bootcamp VM they are probably outdated)

Check this page Create a Single-Container Project | Toradex Developer Center the topics:

  • Check for dependencies on your system
  • Install dependencies

this should help you to have everything that is needed.

Let me know if this works,
BR

VS Code

Installing the dependencies solved the previous problem.

New trial …

It’s better, but still not good

image007.jpg

image003.jpg

image005.jpg

yeah, so now you have a Microsoft + Ubuntu issue:
Installing .NET 6 on Ubuntu 22.04 (Jammy) · Issue #7699 · dotnet/core (github.com)

I recommend you follow the topic:

  • Clean machine scenario 2: Use .NET 6 Package via PMC

after that try to remove and install again the dotnet package. This should fix this issue.
Let me know if this works for you.

BR,

1 Like

It worked

image007.jpg

image005.jpg

1 Like

Cool! Thanks for letting me know!
If you need anything else, let us know.

BR,