You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've built VS Code on ARM Linux and can use it without any problem. But cpptools is not working well because Microsoft.VSCode.CPP.Extension.linux is a x86-64 binary. I wonder if there is a way to obtain ARM version of that executable.
Reacted by Ricotren, mseddon, kristsm, Eloi Barti, Antonio Jurić, icoric4, Sung-Jae Lee, vkk, Cristian Pop, sausage-dog and 30 more
At the moment of writing there are unofficial vscode builds for raspi and I had to use one to deploy some hotfixes on my app. Having this addon available in such build would simplify stuff when cross-compiling is out of option.
Reacted by pawelplodzpl, Adrian Adeva, Khalidma1, Jan Aleksandrov, Ricotren, nobodypb, Stefan Sichler, mseddon, Antonio Jurić, Cristian Pop and 22 more
Sorry my bad, my comment was not clear. I should have said 'path back to VScode'. i.e. Not meaning Visual Studio.
We could have used Visual Studio (with or without VisualGDB) except that some of the team are on Mac's instead of Win10. Although VS is available on the Mac now it is not the same product as on Windows. VScode would have offered an IDE environment capable of running on Windows, Mac's amd indeed Linux. If were doing python to ARM64 target no problem. But with C/C++ we are currently struck with the 'ARM not supported issue'.
There is other options for c++. I've been using kdevelop on my pi4 directly. Use what works for you and your team I just hate to see someone pay for an ide when there are so many good free one's out there.
I do love using VSCode for everything so you don't get that context switch slow down.
0.30.0-insiders adds ARM (armhf) support when using the VS Code Remote Development extension (we tested it using Remote SSH). ARM64/AARCH64 support is still in progress (expected for the final 0.30.0 release). Let us know if there are other ARM targets that you would like us to add support for. Non-remote support would require VS Code to resolve issue microsoft/vscode#6442 . Our license doesn't allow using the C/C++ extension with headmelted/code-server/etc. and the debugger will explicitly disable itself -- someone could open an issue to track how many users would like the license changed if they want.
The install steps are to download https://github.com/microsoft/vscode-cpptools/releases/download/0.30.0-insiders/cpptools-linux-armhf.vsix (on the ARM device), open VS Code (on your non-ARM remote machine), use the Remote-SSH: Connect to Host... command, use the Extensions: Install from VSIX... command and select the vsix file. After we release the final 0.30.0, those manual vsix install steps won't be required since it could be installed via the marketplace or updateChannel mechanism (which doesn't work with 0.29.0 because it has the check to disable itself for ARM before it runs the updateChannel code).
If you find bugs, it would probably be better to create a new issue instead of adding it to this one.
UPDATE: Our clang-format dependency on ARM currently requires libtinfo5 be installed.
Reacted by GtTmy, Christopher Hall, Sung-Jae Lee, Bastien Penavayre, YaaYang, Abdul Mohamed, Holmes Conan, zengming00 and Badó Gergely József
Reacted by shuaixr
Reacted by Christopher Hall, CM, Filip Kroča, Nico and Kohei Izumi
We encourage everyone who wants to use our extension with a local ARM release of VS Code to upvote microsoft/vscode#6442 . It is currently number 24 on VS Code's list of upvotes and behind releasing for ipad and Windows store.
I tried out the insiders build. It is crashing and I see these errors:
/home/byu/.vscode-server/extensions/ms-vscode.cpptools-0.30.0-insiders/bin/cpptools: /lib/arm-linux-gnueabihf/libm.so.6: version `GLIBC_2.27' not found (required by /home/byu/.vscode-server/extensions/ms-vscode.cpptools-0.30.0-insiders/bin/cpptools)
/home/byu/.vscode-server/extensions/ms-vscode.cpptools-0.30.0-insiders/bin/cpptools: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.28' not found (required by /home/byu/.vscode-server/extensions/ms-vscode.cpptools-0.30.0-insiders/bin/cpptools)
My arm system is running Ubuntu 16.04. I believe (could be wrong) this is limited to libc-2.23. Any suggestions? Will this be limited to newer libc versions?
/home/byu/.vscode-server/extensions/ms-vscode.cpptools-0.30.0-insiders/bin/cpptools: /lib/arm-linux-gnueabihf/libm.so.6:
My arm system is running Ubuntu 16.04. I believe (could be wrong) this is limited to libc-2.23. Any suggestions? Will this be limited to newer libc versions?
I had the same issue on Raspberry Pi, i solved it by downloading the requested version. But this should be done carefully, it can damage the system and prevent it working properly.
还有libtinfo5不存在,我通过以下命令解决
And libtinfo5 does not exist, I solved it with the following command
chmod +x clang-format
apt install libncurses5
第二个问题是无法启动debug
The second problem is unable to start debug
这三个其中一个没有执行权限:mono.linux-arm64 mono.linux-armhf OpenDebugAD7
One of these three has no executable permission: mono.linux-arm64 mono.linux-armhf OpenDebugAD7
~/.local/share/code-server/extensions/ms-vscode.cpptools-0.30.0-insiders/debugAdapters$ ls
bin framework mono.linux-arm64 mono.linux-armhf OpenDebugAD7
./OpenDebugAD7 是个shell脚本,会根据uname -m的结果来执行"mono.linux-arm64"或"mono.linux-armhf",在我的设备上uname -m的结果是aarch64,所以它会执行"mono.linux-arm64",但实际我设备上只能运行"mono.linux-armhf"
./OpenDebugAD7 is a shell script that will execute "mono.linux-arm64" or "mono.linux-armhf" according to the result of uname -m, and the result of uname -m on my device is aarch64, so It will execute "mono.linux-arm64", but actually only "mono.linux-armhf" can be run on my device
VS Code supports Linux ARM now on Insiders at microsoft/vscode#106289 (comment) . However, be careful about installing too many extensions, e.g. with the C/C++ Extension Pack (by Microsoft) it froze/crashed due to memory usage, but just installing the C/C++ (1.0.1) extension worked (with 300+ MB memory usage)....on a machine with 1 GB of memory.
VS Code supports Linux ARM now on Insiders at microsoft/vscode#106289 (comment) . However, be careful about installing too many extensions, e.g. with the C/C++ Extension Pack (by Microsoft) it froze/crashed due to memory usage, but just installing the C/C++ (1.0.1) extension worked (with 300+ MB memory usage).
I've been using it on a raspberry pi with 8gigs of ram for a week and it works pretty well
Activity
sean-mcmanus commentedon Jan 5, 2017
Do you mean running VS Code on ARM CPUs? That doesn't work as far as I know. You can target an ARM CPU for debugging.
atilimcetin commentedon Jan 5, 2017
I've built VS Code on ARM Linux and can use it without any problem. But cpptools is not working well because Microsoft.VSCode.CPP.Extension.linux is a x86-64 binary. I wonder if there is a way to obtain ARM version of that executable.
sean-mcmanus commentedon Jan 5, 2017
Ok, that's interesting to know. It's theoretically possible to add, but we're not planning to currently (it hasn't shown up enough in our telemetry).
atilimcetin commentedon Jan 5, 2017
I understand. Thank you.
arnaudbuy commentedon Feb 24, 2018
+1, I am also interested ...
tehKaiN commentedon Feb 3, 2019
At the moment of writing there are unofficial vscode builds for raspi and I had to use one to deploy some hotfixes on my app. Having this addon available in such build would simplify stuff when cross-compiling is out of option.
PodyNoo commentedon Feb 10, 2019
i would be also interested in support for Linux on ARM CPUs
yorandrei commentedon Mar 29, 2019
+1 It would be great to have it work on arm
185 remaining items
bigOconstant commentedon Aug 3, 2020
There is other options for c++. I've been using kdevelop on my pi4 directly. Use what works for you and your team I just hate to see someone pay for an ide when there are so many good free one's out there.
I do love using VSCode for everything so you don't get that context switch slow down.
sean-mcmanus commentedon Aug 5, 2020
0.30.0-insiders adds ARM (armhf) support when using the VS Code Remote Development extension (we tested it using Remote SSH). ARM64/AARCH64 support is still in progress (expected for the final 0.30.0 release). Let us know if there are other ARM targets that you would like us to add support for. Non-remote support would require VS Code to resolve issue microsoft/vscode#6442 . Our license doesn't allow using the C/C++ extension with headmelted/code-server/etc. and the debugger will explicitly disable itself -- someone could open an issue to track how many users would like the license changed if they want.
The install steps are to download https://github.com/microsoft/vscode-cpptools/releases/download/0.30.0-insiders/cpptools-linux-armhf.vsix (on the ARM device), open VS Code (on your non-ARM remote machine), use the Remote-SSH: Connect to Host... command, use the Extensions: Install from VSIX... command and select the vsix file. After we release the final 0.30.0, those manual vsix install steps won't be required since it could be installed via the marketplace or updateChannel mechanism (which doesn't work with 0.29.0 because it has the check to disable itself for ARM before it runs the updateChannel code).
If you find bugs, it would probably be better to create a new issue instead of adding it to this one.
UPDATE: Our clang-format dependency on ARM currently requires libtinfo5 be installed.
Misery42 commentedon Aug 12, 2020
+1 using code-server on my ARM-32 Revolution Pi
sean-mcmanus commentedon Aug 18, 2020
We encourage everyone who wants to use our extension with a local ARM release of VS Code to upvote microsoft/vscode#6442 . It is currently number 24 on VS Code's list of upvotes and behind releasing for ipad and Windows store.
jgoeders commentedon Aug 19, 2020
I tried out the insiders build. It is crashing and I see these errors:
My arm system is running Ubuntu 16.04. I believe (could be wrong) this is limited to libc-2.23. Any suggestions? Will this be limited to newer libc versions?
Misery42 commentedon Aug 21, 2020
I had the same issue on Raspberry Pi, i solved it by downloading the requested version. But this should be done carefully, it can damage the system and prevent it working properly.
http://ftp.de.debian.org/debian/pool/main/g/glibc/libc6_2.28-10_armhf.deb
sudo dpkg -i --auto-deconfigure libc6_2.28-10_armhf.deb
This works for me.
UPDATE
https://github.com/microsoft/vscode-cpptools/releases/tag/0.30.0-insiders4
ablankenship10 commentedon Aug 22, 2020
Excited to try this out when support is added for the Jetson Nano (arm64/aarch64)! Working with OpenCV is quite unpleasant without intellisense :)
zengming00 commentedon Sep 6, 2020
我在我的安卓手机上利用linux deploy部署了一个linux环境
I deployed a linux environment using "linux deploy" on my Android phone
然后通过"npm install -g code-server"安装了code-server
Then installed code-server through "npm install -g code-server"
发现两个问题
Two problems found
首先C源码无法格式化
First, the C source code cannot be formatted
原因是以下文件没有可执行权限
The reason is that the following files do not have executable permissions
还有libtinfo5不存在,我通过以下命令解决
And libtinfo5 does not exist, I solved it with the following command
第二个问题是无法启动debug
The second problem is unable to start debug
这三个其中一个没有执行权限:
mono.linux-arm64 mono.linux-armhf OpenDebugAD7One of these three has no executable permission:
mono.linux-arm64 mono.linux-armhf OpenDebugAD7./OpenDebugAD7 是个shell脚本,会根据
uname -m的结果来执行"mono.linux-arm64"或"mono.linux-armhf",在我的设备上uname -m的结果是aarch64,所以它会执行"mono.linux-arm64",但实际我设备上只能运行"mono.linux-armhf"./OpenDebugAD7 is a shell script that will execute "mono.linux-arm64" or "mono.linux-armhf" according to the result of
uname -m, and the result ofuname -mon my device is aarch64, so It will execute "mono.linux-arm64", but actually only "mono.linux-armhf" can be run on my devicesean-mcmanus commentedon Sep 28, 2020
VS Code supports Linux ARM now on Insiders at microsoft/vscode#106289 (comment) . However, be careful about installing too many extensions, e.g. with the C/C++ Extension Pack (by Microsoft) it froze/crashed due to memory usage, but just installing the C/C++ (1.0.1) extension worked (with 300+ MB memory usage)....on a machine with 1 GB of memory.
bigOconstant commentedon Sep 29, 2020
I've been using it on a raspberry pi with 8gigs of ram for a week and it works pretty well