I do get syntax highlighting, the file is recognized as elm code (bottom right elm indication in vscode), elm and node work in the terminal of vscode;
but my elm code (in vscode) isn’t debugged/run in the background (as in 6th movie of the above playlist https://www.youtube.com/watch?list=PLZEZPz6HkCZmhuLE6W7HDNomfTMgsDw03) ?
Possible hints?:
In vscode > Debug > start/run i only see node.js as an enviroment, is this ok, or should elm by there as well, and how can achieve that then?
Selecting node.js gives : cannot find a runtime in path
** But typing ‘node’ works in the terminal of vscode eg:
Using vscodium (from snap its called codium) does not need the flatpak-spawn set up the terminal properly.
Using the same setup as before
But also does not debug/run with only node being available
What does you launch.json look like?:
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"skipFiles": [
"<node_internals>/**"
],
"program": "${file}"
}
]
}
The error given when running is: cannot run program, setting the outFiles attribute might help.
I guess this is done in the launch.json file, i have been searching online, but no luck so far.
The vscode elm plugin will only lint your code whenever you save. You have to setup your tasks/launch json on your own if you want that. And as there’s no debugger it rarely matters, so you can probably just run it in your cmdline.
These should override the user settings as in the documentation of vscode, but changing also the user settings to the above seemed to solve the problem.
In the original setup the user settings refererred to the location of the npm installed globally commands for elm, elm-format, elm-test. So i blanked these as well.
Well i changed them in usersettings in the beginning when things where not working at all,
and tested with a workspace with the same settings (filled in)
and a workspace with these settings empty (which should override them, but it didn’t)