marcopalena / polito-os161-docker

A compact Docker image to compile, run and debug the teaching operating system OS/161.
MIT License
19 stars 6 forks source link

C/C++ extension for VSCode may need execute permissions #2

Open simocosimo opened 2 years ago

simocosimo commented 2 years ago

After installing the C/C++ extension for VSCode into the container, I run into an error like this one:

Starting client failed

followed by the path of the executable that couldn't be launched.

I fixed this by giving to two files execute permissions (in the container), like this:

cd /home/os161user/.vscode-server/extensions/ms-vscode.cpptools-1.8.4/bin
chmod +x cpptools
chmod +x cpptools-srv

Sharing this in case you find this info worth adding to the README.md

Thank you for the docker container, it works like a charm to this point!

marcopalena commented 2 years ago

@simocosimo Thanks for reporting this and for providing a fix! Can you also specify which platform, docker version and VScode version are you using? I've had a couple of people reporting me this problem and all were using macOs. I'm trying to figure out what may be the cause of this, in the meantime I'll add the fix to the README file.

simocosimo commented 2 years ago

@marcopalena OS: macOS Monterey 12.2.1 Docke: 4.6.0 (75818) VSCode: 1.65.2 C/C++ extension: 1.8.4

Hope it helps