-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can not format via ssh: There is no formatter for 'cpp'-files installed #3787
Comments
It sounds like you need to install the C/C++ extension or some other formatting extension on the remote machine. Are you able to format with some other extension like the clang-format extension? That "there is no formatter" message is from VS Code itself, so I'm not sure how our extension could be causing it. |
@sean-mcmanus thanks for your response. Now i will access to my Linux files via network(SSH) and i edit and manipulate the files with VS Code IDE, VS Code can not access remote Linux machine by itself, therefore i install the extension to be able to connect to remote machine via network (Kelvin Schoofs(SSH FS)), the C/C++ extension can not format my cpp files via the network (SSH), this behavior is the same on other formatting extensions (clang-format is the same), but these extensions work properly on local files. i don't know the VS Code architecture and nor these extensions, i thought if the file opens by IDE, the extension have full access to the document and if a user request to format document, the extension will be read and cache the file and made the changes, and pass it to IDE, now i don't know the procedure for reporting it, if it related to VS Code, let me know to report it to VS Code Git page, or may be it need more clarification from your side as a collaborator to describe the exact problem, based on your strong knowledge in these system architecture. PS: i also opened an issue on clang-format Git, The issue : ISSUE : #89 |
Hmm, it may also be a bug with the Kelvin Schoofs(SSH FS) extension, i.e. if the bug also repros with the clang-format extension. You could try using an alternative SSH extension like "Remote - SSH". |
@sean-mcmanus: i am trying to configure Microsoft/ Remote SSH, it is too hard to configure the extension, but in my first try, i can not use this extension to connect. |
@sean-mcmanus ,Hi, I still got this issue with latest vscode and remote-SSH. Isn't it is fixed according to some posts from you commented in other issues. Or should we still install vscode in remote machine? |
@sean-mcmanus ,sorry for some wrong info. And at present, I need to install LLVM to format( with clang-format installed) on remote machine, but no need to install vscode there. I think it is ok , but if LLVM is no need to install either, then it would be perfect. |
@bobbrow Why was this issue marked fixed? I'm not aware of a fix. Has anyone tried the repro? |
@sean-mcmanus We misread the issue and thought it was about standard ssh. This still needs to be investigated. |
I am using standard-ssh with vscode on mac OSX 10.13 and I am actually running in the same issue described: "There is no formatter for 'cpp'-files installed" |
I currently have the same issue while using VSCode Windows with the extension SSHFS and the server is under Linux distribution. |
I have same issues when I remote to Ubuntu machine from Mac OS. Everything works fine if I use VSCode locally on Ubuntu machine. |
Same, unable to format |
Hi,
C++ formatter on remote host
Describe the bug
I am using vscode for my C++ project, i installed the C++ extension (0.23.1) i works fine when i open the file from my local drive.
But i am using "Kelvin Schoofs(SSH FS) version (1.16.2) extension for my remote code on the Linux machine, after opening the C++ file from sshfs work-space, and trying to format my C++ document, it returns "There is no formatter for 'cpp'-files installed."
how can i fix this behavior for remote code "i mentioned again: formatting works properly for local files"
To Reproduce
Open the VSCODE and explore your files via the ssh (remote host)
install the "Kelvin Schoofs(SSH FS) and configure it to connect to the remote Linux host.
the open your files and try to format the document.
Expected behavior
Format the C++ Document.
Regards.
The text was updated successfully, but these errors were encountered: