I am going through step by step guide of Torizon. I have installed latest version of visual studio code 1.46 on Ubunutu 16.04 64 bit. I have installed Toradex Torizon Support extension in it but its failed to load.
At the bottom, its showing Torizon loading.
I have got 2 errors as shown in the image
Because of this I am not able to add device also. I am stuck there.
I don’t believe we explicitly validated the extension for 16.04 (we’ve started with 18.04 onward). However, right now I can’t think of any reason it shouldn’t work for 16.04.
It seems that the extension can’t start the backend process (we have a server that exposes a REST-based API used by the different extensions).
You ca try to run it manually to collect more information about the issue:
cd $HOME/.vscode/extensions/toradex.torizon-1.0.0/moses-linux
./moses
If you can try this and post the output you get, that may help us understand the issue.
When you say toolchain/sdk are you saying that you’ve built a custom toolchain/sdk for Torizon specifically? Using yocto? Or are these toolchains/sdks for our non-Torizon BSP?
Either way while I can’t guarantee everything will work again as is after a distribution upgrade, I don’t think there would be major issues. In any case your build setup shouldn’t be affected heavily so a rebuild wouldn’t take too long, if you’ve already done a build.
I have upgraded the system to Ubuntu 18.04.4 LTS and now everything is working fine including Visual Studio Code Torizon Extension and Non-Torizon BSP setup.
It seems that your system provides an old version of glibc that is not up-to-date enough for the backend runtime.
You may try the “trick” suggested here:
and set the LD_LIBRARY_PATH when you start visual studio code, but I suspect that this may lead to other issues.
An alternative would be updating your system to 18.04 or use a Virtual Machine.