microsoft / microsoft/vscode-cpptools

Can not format via ssh: There is no formatter for 'cpp'-files installed

Offen
#3,787 13 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

bug Feature: Code Formatting investigate: repro Language Service network drive
Vorherrschende Sprache
TypeScript
Sterne
6.2k
Forks
1.7k
Ø Merge
14 Std. 46 Min.
Gemergte PRs (30 T.)
61

Beschreibung

Hi,

C++ formatter on remote host

Describe the bug

  • OS and Version: Microsoft Windows 10 Enterprise (10.0.17763 N/A Build 17763)
  • VS Code Version: 1.35.1
  • C/C++ Extension Version: 023.1
  • Other extensions you installed (and if the issue persists after disabling them): "Kelvin Schoofs(SSH FS) version (1.16.2)
  • A clear and concise description of what the bug is:

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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne damit, den Formatierungsfehler mit der Kelvin Schoofs SSH FS extension in einem Remote-Linux-Arbeitsbereich zu reproduzieren, und vergleiche ihn anschließend mit der Formatierung einer lokalen C++-Datei in VS Code. Untersuche, wie die C/C++ extension ihren Formatter für Remote-Arbeitsbereiche registriert; als erledigt gilt die Aufgabe, wenn Format Document für die Remote-C++-Datei funktioniert, ohne zu melden, dass kein Formatter installiert ist.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
cpp, vscode
Bereich
developer-experience, tooling
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.