microsoft / microsoft/vscode-cpptools

clang-format won't use .clang-format file on UNC-style network share out of box

Offen
#2,124 3 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

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

Beschreibung

Type: LanguageService

  • OS and Version: Windows 10 1803
  • VS Code Version: 1.23.1
  • C/C++ Extension Version: 0.17.4
  • The .clang-format file will not be used if the project resides on an UNC-style network share, unless the fallback style is forced to "none".
  • This does not occur on drive-letter mounted network shares or local drives.

To Reproduce
Steps to reproduce the behavior:

  1. Prepare a directory with a .clang-format file and some source on a network share like my \\10.0.1.15\zao\code\gggtools.
  2. Open the folder with VS Code.
  3. Open a C++ source file.
  4. Hit the formatting shortcut.
  5. Note that it doesn't use the .clang-format file, instead using the fallback style.
  6. Configure "C_Cpp.clang_format_fallbackStyle": "none" in settings.
  7. Format again.
  8. Note how the .clang-format file is used as intended.

Expected behavior
I expect the formatter to always find and use the .clang-format file in the tree regardless of fallback style.

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

Reproduziere den Formatierungsfehler mit einer .clang-format-Datei auf einer Windows-Netzwerkfreigabe im UNC-Stil und vergleiche sie anschließend mit einer Freigabe mit Laufwerksbuchstaben und einem lokalen Laufwerk. Verfolge die Formatierungs- und Fallback-Style-Behandlung der C/C++-Erweiterung; abgeschlossen ist die Aufgabe, wenn die .clang-format-Datei des Verzeichnisbaums auf UNC-Pfaden verwendet wird, ohne dass fallbackStyle auf "none" gesetzt werden muss.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
cpp, typescript
Bereich
operating-systems, tooling
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

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