Repository navigation
Missing mono executable - Ubuntu 16.04 (aarch64) #2497
Copy link
Copy link
Closed
Labels
Description
I compiled and launched VsCode Version: 1.28.0
Electron: 2.0.7
Chrome: 61.0.3163.100
Node.js: 8.9.3
V8: 6.1.534.41
The architecture is aarch64 (Nvidia Jetson TX2).
Then I installed the cpptools extension via VSIX file, but when I launch the debug process I always get the "Debug adapter process has terminated unexpectedly" error - after which I cannot launch anymore debugs.
The Intellisense feature works.
I should add that, after installing the extension, there is no cpptools-related folder in the ./vscode directory.
How can I solve this?
Thanks in advance.
Update:
when I open a folder in VsCode with the extension installed, the following errors occur:
[Error - 2:14:00 PM] Starting client failed
Launching server using command /home/nvidia/.vscode-oss-dev/extensions/ms-vscode.cpptools-0.18.1/bin/Microsoft.VSCode.CPP.Extension.linux failed.
/home/nvidia/.vscode-oss-dev/extensions/ms-vscode.cpptools-0.18.1/debugAdapters/OpenDebugAD7: line 32: mono: command not found
Here is launch.json:
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "/home/nvidia/Desktop/chamelea_stream/build/src/cpp/chamelea_stream",
"args": [],
"stopAtEntry": false,
"cwd": "/home/nvidia/Desktop/chamelea_stream/build/src/cpp",
"environment": [],
"externalConsole": true,
"MIMode": "gdb",
"miDebuggerPath": "/usr/bin/gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": false
}
]
}
]
}
`[uncaught exception]: Error: read ECONNRESET
onError @ index.js:40
(anonymous) @ index.js:178
emitOne @ events.js:116
emit @ events.js:211
window.onerror @ /home/nvidia/Downloads/vscode-master/vscode/.build/electron/resources/electron.asar/renderer/init.js:142
index.js:43 Error: read ECONNRESET
at _errnoException (util.js:1024)
at Pipe.onread (net.js:615)
onError @ index.js:43
(anonymous) @ index.js:178
emitOne @ events.js:116
emit @ events.js:211
window.onerror @ /home/nvidia/Downloads/vscode-master/vscode/.build/electron/resources/electron.asar/renderer/init.js:142
notificationsAlerts.ts:41 Debug adapter process has terminated unexpectedly
NotificationsAlerts.onDidNotificationChange @ notificationsAlerts.ts:41
(anonymous) @ notificationsAlerts.ts:27
Emitter.fire @ event.ts:140
NotificationsModel.notify @ notifications.ts:113
NotificationService.error @ notificationService.ts:52
RawDebugSession.onDebugAdapterExit @ rawDebugSession.ts:531
(anonymous) @ rawDebugSession.ts:160
Emitter.fire @ event.ts:140
(anonymous) @ debugAdapter.ts:305
emitTwo @ events.js:126
emit @ events.js:214
ChildProcess._handle.onexit @ internal/child_process.js:198`
Reactions are currently unavailable
Activity
pieandcakes commentedon Sep 7, 2018
jackcoach if you build your own VS Code, your extensions are installed into
~/.vscode-oss-dev.It looks like you are on ARM64. If so, you need to download a separate supported
monoexecutable for that architecture as we don't support it out of the box.[-]"Debug adapter process has terminated unexpectedly" Ubuntu 16.04 (aarch64)[/-][+]Missing mono executable - Ubuntu 16.04 (aarch64)[/+]pieandcakes commentedon Sep 7, 2018
We use
monoversion4.2.3.4but It looks like they don't even have an arm64 package until4.6.1.3. You can try downloading it from here or using a package manager to download latest. All you need is themonoexecutable which should be labeledmono-sgen.jackcoach commentedon Sep 8, 2018
Hello, I installed the updated mono executable and the debugger runs just fine, thank you very much!
Still, the Intellisense feature fails to start when opening my project's folder, giving me these error messages:
bobbrow commentedon Sep 10, 2018
If you run
/home/nvidia/.vscode-oss-dev/extensions/ms-vscode.cpptools-0.18.1/bin/Microsoft.VSCode.CPP.Extension.linuxin a terminal window, do you get any errors?jackcoach commentedon Sep 10, 2018
Hello Bob Brown (@bobbrow) , there's nothing in there named Microsoft.VsCode.CPP.Extension.linux, the content of the bin folder is the following:
bobbrow commentedon Sep 10, 2018
It seems that the extension is not installed properly. Can you try reinstalling it? If the version from the extension gallery is not working, you can try downloading the full package from our releases page (This is the 64-bit linux package: cpptools-linux.vsix) and using the "Install from VSIX" command to do a manual install.
jackcoach commentedon Sep 11, 2018
Hello, previously I had tried to uninstall and reinstall it several times both using the extension manager and the vsix file found on the repo.
Now using the file you gave me I reinstalled the extension, two executable files are present in the bin directory (Extension.linux and Intellisense.Msvc.linux), but still when I open VsCode it gives me the following error:
Unable to start the C/C++ language server. IntelliSense features will be disabled. Error: Error: spawn EACCESWhen I try to run the executables from terminal, the message for both is the following:
cannot execute binary file: Exec format errorbobbrow commentedon Sep 11, 2018
Is aarch64 an ARM64 variant? I naively assumed it was a 64-bit build. We don't currently ship a binary compatible with ARM or ARM64.
jackcoach commentedon Sep 11, 2018
Yes Bob Brown (@bobbrow) , the cores are actually Nvidia Denver2 (ARMv8, 64bit) CPUs.
Is there a way for me to crosscompile the project in order to get compatible binaries?
Cheers
bobbrow commentedon Sep 11, 2018
Unfortunately, there is no way for you to do this right now. We have not opened the source for the language server binaries. ARM64 is not on our roadmap yet, but we can take it into consideration.
jackcoach commentedon Sep 11, 2018
Yes please take it into consideration, it would be great to have every feature of this extension available for this architecture.
Thank you for your time!
bobbrow commentedon Sep 11, 2018
I created a feature request for this. Please go upvote #2506 so we can start to get a count of users who would benefit from this.
sean-mcmanus commentedon Sep 14, 2020
Fixed with https://github.com/microsoft/vscode-cpptools/releases/tag/1.0.0