Torizon IDE Extension 3.4.0 doesn't connect to device

Hi,

I’m using the Torizon IDE Extension in VS Code. It got updated to version 3.4.0 and I’m not able to connect to network devices anymore. The symptoms are very similar to what is described here: VS Code can’t connect to my imx7 - Technical Support - Toradex Community

When I click on + to connect to a device I get the error message: Error running command apollox.NetworkDeviceAdd: command ‘apollox.NetworkDeviceAdd’ not found. This is likely caused by the extension that contributes apollox.NetworkDeviceAdd.
The section with Connected devices is also empty and refreshing leads to another command not found message.

I tried several versions of the Torizon extension and 3.3.121 works, but newer versions don’t work. I’m seeing that issue on two different PCs and version 3.3.121 works on both. I restarted VS code and WSL when I swapped the versions for testing.

Hi, I’m the Toradex AI Assistant.

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


I’d be glad to help with your Torizon IDE Extension connection issue! To provide the most accurate guidance, could you let me know:

  1. Which OS and version are you running on your device? (e.g., Torizon OS 6.8.2, Torizon OS 7.2.0-build.13)
  2. What hardware are you using? (e.g., Verdin i.MX8M Plus, Verdin AM62, Apalis i.MX8QP, Colibri i.MX8X)

You can get this information by running the tdx-info command on your device. For more details on this command, see: Getting Device Information with Tdx-Info | Toradex Developer Center

Common Troubleshooting Steps

While waiting for your platform details, here are some general troubleshooting steps based on the documentation:

Port Forwarding Check

Ensure the following ports are accessible between your machine and the development board(1):

  • 22 (Dev Board SSH Connection)
  • 2375 (Docker API)
  • 5002 (Local Docker Registry)
  • 2222 (Container SSH Connection)

Device Connectivity

Try executing this command in a terminal to verify basic connectivity(1):

$ ping -W 1 -c 1 <ip-address>

If you get “ping: socket: Operation not permitted”, set the capability with(1):

$ sudo setcap cap_net_raw+ep /bin/ping

VS Code Internal Logs

Check the internal VS Code logs to identify the root cause(1):

  1. Open the VS Code command palette
  2. Select Developer: Toggle Developer Tools
  3. Click on the Console tab and check the logs

WSL-Specific Issues

Since you mentioned WSL, ensure you’re launching VS Code from a WSL terminal using code . and verify the bottom left corner shows the WSL distribution name(2).

Once you provide the platform information, I can give you more specific guidance for your setup.

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.

I’m using iMX6 and Torizon OS 7.4. There is no problem to connect to the device using the WSL terminal in VS code. Just the connect option in the Torizon IDE doesn’t work. The error appears before there is an option to enter connection details.
I followed the instruction and checked the VS Code logs. I think this is the relevant entry:
mainThreadExtensionService.ts:108 Activating extension ‘Toradex.apollox-vscode’ failed: EACCES: permission denied, mkdir ‘.conf’.
$onExtensionActivationError @ mainThreadExtensionService.ts:108

Thank you for providing the platform details and the VS Code logs! The error message you found is very helpful:

EACCES: permission denied, mkdir '.conf'

This indicates a permissions issue where the Torizon IDE Extension cannot create the necessary .conf directory during activation.

Root Cause

The error occurs when the extension tries to create configuration files but lacks proper write permissions in the workspace or user directory. This is particularly common in WSL environments where file permissions can be complex between Windows and Linux filesystems.

Solutions to Try

1. Check Workspace Permissions

Ensure your VS Code workspace directory has proper write permissions:

# Navigate to your workspace directory
cd /path/to/your/workspace
# Check current permissions
ls -la
# Fix permissions if needed
chmod -R 755 .

2. WSL File System Location

Since you’re using WSL, make sure you’re working within the WSL filesystem (not Windows filesystem mounted in WSL):

  • Recommended: Work in /home/username/ or similar Linux paths
  • Avoid: Working in /mnt/c/ (Windows filesystem) where permission issues are common(1)

3. VS Code Installation Method

The documentation warns that the IDE Extension will not work with VS Code installed via Snap or Flatpak(2). Ensure you’re using the standard VS Code installation.

4. Extension Reinstallation

Try completely removing and reinstalling the extension:

  1. Uninstall the Torizon IDE Extension
  2. Close VS Code completely
  3. Restart WSL
  4. Reinstall the extension from the marketplace

5. Manual Directory Creation

As a workaround, you can try manually creating the .conf directory with proper permissions:

mkdir .conf
chmod 755 .conf

Additional Debugging

If the issue persists, check the internal VS Code logs again after trying these solutions(3). The Developer Tools Console may reveal additional permission-related errors or confirm if the issue is resolved.

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.

I didn’t see any problems with the permission in Linux. I think my problem might be related to another problem which was just posted: Torizon IDE extension 3.4.0 writes to VSCode program folder and fails startup - Technical Support - Toradex Community
I have a system-wide VS Code installation as well.

@jeremias.tx I think this is just another symptom of Torizon IDE extension 3.4.0 writes to VSCode program folder and fails startup - Technical Support - Toradex Community
If that is the case it might have been introduced in 3.3.122. This is the version which stopped working for me.

Greetings @Annika,

I think this is just another symptom of

First of all, do you see a similar error as what is shown in the other thread?

Could you share the full initialization logs of the extension when VSCode starts as described here: Troubleshooting | Toradex Developer Center

Best Regards,
Jeremias

Hi @jeremias.tx,
I think the relevant error information is:

image

When I try to connect I get these errors, depending on where I click:

image

If you need more information, I can share more details next week.

Best regards
Annika

The team deployed a potential fix on the pre-release version of the extension. Could install this and give it a try. Let us know if it resolved your issue or not, we were unable to reproduce your issue on our side, so this is more of an educated guess of a fix.

Best Regards,
Jeremias

Hi @jeremias.tx ,

I tried 3.4.101 and the problem is solved. Thanks for the quick fix.

Perfect, thank you for reporting back and confirming. With this confirmation our team will promptly work on integrating the fix into the stable release of our VSCode extension.

Best Regards,
Jeremias