Closed juliannojungle closed 2 years ago
Might be that VS Code doesn't pick up the tasks.json
, or maybe tries to pick it up too early. The extension should delay file reads while still connecting, but maybe I missed something. I'll try to reproduce this when I have time and see how I can fix it.
I'm running vscode in windows 10 x64, using sshfs extension to connect a Raspberry Pi Zero W (armv6l, not supported by Microsoft's Remote SSH) running "Raspberry Pi OS". To connect, I use the following config:
When clicking on
Add as Workspace folder
button, the project is loaded correctly, the project folder is opened by vscode and themyproject/.vscode/tasks.json
file is present.Then I press ctrl+shift+b to build but vscode shows the No build task to run found. Configure Build Task... message.
If I press ctrl+shift+p, select
Preferences: Open Workspace Settings (JSON)
and add the task there (like below sample), then it gets listed when pressing ctrl+shift+b and everything works fine.The task from
tasks.json
file got listed randomly a couple times (and worked fine), but as soon I closed vscode and reopened (or just disconnect and reconnect sshfs), it's gone again.