error Please specify at least one file or folder
I had code-server installed and it worked already, but now i got this error
[2021-03-06T13:02:10.023Z] error Please specify at least one file or folder
and I have no idea how to solve it. Maybe someone else had the same problem and knows how to solve it.
OS: PRETTY_NAME="Raspbian GNU/Linux 10 (buster)" NAME="Raspbian GNU/Linux" VERSION_ID="10" VERSION="10 (buster)" VERSION_CODENAME=buster ID=raspbian ID_LIKE=debian
yarn version v1.22.5
code-server: version: 3.9.0
No difference
Okay I've been thinking about this and I think we should take a few steps back and ask, "What are we trying to solve?"
Access coding files from any machine and code with VS Code
Because im not allways able to use VSCode if im not home and if i try something with code-server at home,
Here's what I'm understanding. You want to be able to access you coding files and folders from any machine.
- at home? Use VS Code + Remote SSH extension. SSH into your remote machine.
- on the go? Use Raspberry Pi + code-server.
If you're on your PC at home with VS Code installed, then there's no need to use VSCode + Remote-SSH to access code-server. code-server is meant to take the VS Code client and put it in the browser (when normally it's only available as a desktop application). So running code-server from VS Code feels redundant (unless I'm misunderstanding something)?
Does that help at all?
Most of it is right but all my code is not on my PC but on my Pi, which I access over SSH from my PC.
,-->Where my Code is
PC--Pi--code-server--(Internet)--other-maschine
That is more how it is.
Great! Well I think in that case, you don't need to do VSCode->Remote-SSH->code-server. Just do VSCode->Remote-SSH. VSCode and code-server are basically the same thing.
This should also fix your issue.
I think for some specific scenario it is still necessary to do VSCode -> Remote-SSH -> code-server?
E.g. one might want to setup code-server for iPad, he/she may use VSCode Remote-SSH on a window desktop and do the setup work.
And looks like "sudo code-server" works for my case.
That's interesting, I also meet this question when i use VSCode Remote-SSH to init code-server. It's not serious but confused. Thanks for your issue and I will use the openssh in CMD to init code-server.
Sorry I meant to say
VSCODE_IPC_HOOK_CLI= ~/.yarn/bin/code-serverIt seems like you have code-server installed globally with yarn so you could also just run
VSCODE_IPC_HOOK_CLI= code-server
That's interesting, I also meet this question when i use VSCode Remote-SSH to init code-server. But I use this command and deal with the problem successfully.