microsoft / microsoft/vscode-cpptools
Native test needed for unhandled symlink scenario
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 6.2k
- Fork
- 1.7k
- Merge medio
- 14h 46m
- PR unite (30g)
- 61
Descrizione
Opening this issue to track an internal work item, to add a test for the scenario of opening the same file via multiple symlinks, on Linux and Mac.
The underlying issue is that we resolve symlinks when canonicalizing paths on Linux and Mac (a result of calling realpath), so wind up considering those paths to refer to the same file, while VS Code does not resolve them to the same file. This causes some issues with various features that need to match file paths back to VS Code URI's.
We have/had a test (invalid_open_file_instance_winonly) which exercised the same error handling, but that test was based on varying URI casing and not symlinks. It's no longer a valid scenario as VS Code has since ensured their URI casings on Windows are consistent/canonical.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Locate the existing invalid_open_file_instance_winonly test and its surrounding native tests. Use that test as the starting point for covering the same error handling with one file opened through multiple symlinks on Linux and macOS; done means the scenario is exercised on both platforms.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- vscode
- Ambito
- operating-systems, testing-qa
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 48/100