Transitioning to Torizon IDE Extension

Dear Toradex,

I’ve been caught up with hardware for almost two months and haven’t used VS Code. Now, I see the old extension is outdated, and I need to switch to Torizon IDE Extension, also it has a warning in VS Code.

image

Found a two-month-old tutorial on YouTube by Matheus Castello using Torade Apollix, but Toradex Apollix isn’t in VS Code extensions anymore. Are they the same?

details of my VScode and my PC has Windows 10

Version: 1.83.1 (user setup)
Commit: f1b07bd25dfad64b0167beb15359ae573aecd2cc
Date: 2023-10-10T23:48:05.904Z
Electron: 25.8.4
ElectronBuildId: 24154031
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Windows_NT x64 10.0.19044

Best regards,
Mehrdad

Hi @Mehrdad ,

Yes, the old extension will not receive new features. For now it will still receive critical bug fixes if necessary.

ApolloX is now called Torizon IDE Extension 2, and you can find it here: Torizon IDE Extension - Visual Studio Marketplace


About the new extension not being available for Windows 64 bit, you’re seeing this because the IDE Extension 2 has to be installed on VSCode connected to WSL2.

To get started on the new extension, you can follow the steps in the Development Workflow here:

Best regards,
Lucas Akira

1 Like

Hi @lucas_a.tx ,

Thank you for providing clarification; your assistance is truly valued.

May I pose a question? I’ve initiated the document concerning the new extension, created a single-container project, and connected it to the Torizon OS target.

However, upon proceeding to the Docker extension, all attempts encountered failure.

Best regards,
Mehrdad

Hi @Mehrdad ,

Thank you for the kind words, we appreciate it!

About your issue: looking from images you shared apparently Docker Engine is not installed on WSL2. Did you follow the instructions on setting up the Torizon IDE Extension 2 Environment before trying to use the extension?

Best regards,
Lucas Akira

Hi @lucas_a.tx ,

image

and as you can see wsl 2 is installed.
image

also, I installed WSL in VS code:


and my SoM is already connected:

at the moment I am in this stage where [setup for docker] and the default device does not appear
(Connect a Target Device | Toradex Developer Center)
like documents, next step is docker after set Default

but if I click on Docker it shows Failed to connect.

Best regards,
Mehrdad

Hi @Mehrdad ,

Right, WSL2 is installed, running Ubuntu, and you connected VSCode to WSL2, as you should. But did you install Docker Engine on Ubuntu, like instructed here: Set up the Torizon IDE Extension 2 Environment | Toradex Developer Center

From your images the Docker VSCode extension cannot connect to the Docker daemon, which usually means that Docker Engine is not installed.

The Docker extension by itself is not enough, you need to install Docker Engine as well, as our extension cannot work correctly without it. That’s probably why you’re seeing the issues.

Best regards,
Lucas Akira

I have followed the documentation to install Docker Engine on both Windows 10 and Ubuntu. Additionally, I have configured Docker to run without root privileges as suggested.
Also, enabled Ubuntu on the docker desktop.
However, despite following these steps, I am encountering the following error when trying to connect to Docker.

Thank you for your time and assistance.

Best regards,
Mehrdad

Hi @Mehrdad ,

Can you check if settings.json has DOCKER_HOST set? You can access it by pressing F1 on VSCode then selecting Preferences: Open User Settings (JSON).

If you find DOCKER_HOST in there remove the line that has it then save settings.json. Remove any connected devices to the extension before creating a new project.

Once you create a new project and you’re inside its workspace, try connecting a device and set it as the default.

See if this helps.

Best regards,
Lucas Akira

Hi @lucas_a.tx ,

please see the image below and there is no DOCKER_HOST.


Thank you so much for your help and time.

Best regards,
Mehrdad

Hi @Mehrdad ,

That’s strange. Did the IDE extension 2 work before on your current setup?

Did you disconnect all devices before opening a project with the extension? Is the extension on the latest version?

Best regards,
Lucas Akira

Hi @lucas_a.tx ,

Did the IDE extension 2 work before on your current setup? I have never used the new Torizon Extention,

Is the extension on the latest version? It is V2.2.2 and builder is V0.0.10
image

Thanks,
Mehrdad

Hi @Mehrdad ,

Is the extension on the latest version? It is V2.2.2 and builder is V0.0.10

Yes, as of now these are the latest versions for the IDE Extension and the Builder Extension.

Let’s review the steps you’re doing: You are able to create a new single container project with the Extension 2 and connect a Toradex SoM to it, correct?

Can you start a debug session? What output do you receive when trying to run it?

Best regards,
Lucas Akira