microsoft / microsoft/vscode-cpptools
clang-format won't use .clang-format file on UNC-style network share out of box
Dieses Issue hat noch niemand übernommen.
- 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-formatfile 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:
- Prepare a directory with a
.clang-formatfile and some source on a network share like my\\10.0.1.15\zao\code\gggtools. - Open the folder with VS Code.
- Open a C++ source file.
- Hit the formatting shortcut.
- Note that it doesn't use the
.clang-formatfile, instead using the fallback style. - Configure
"C_Cpp.clang_format_fallbackStyle": "none"in settings. - Format again.
- Note how the
.clang-formatfile 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
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Ö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