fix: Cannot open file in Sublime Text
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 72/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Tranquilla
- Stack tecnologico
- node.js, nuxtjs, typescript
- Ambito
- developer-experience, tooling
Direzione di ricerca
Inizia da packages/devtools/src/server-rpc/general.ts intorno alla riga 227 e traccia il modo in cui l’editor Sublime Text configurato viene passato a launch-editor. Riproduci il problema su Linux con subl nel PATH, quindi verifica che l’apertura di un file avvii Sublime Text invece di tentare di eseguire il comando inesistente sublime.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
🐛 The bug
I selected Sublime Text as my editor in the Nuxt devtools setting, but the file is not opened. Reading the exception on the console, this makes sense because apparently it tries to launch an executable named sublime, which does not exist. The expected executable name on Linux platform is subl, which is also configured as such in launch-editor.
The error:
The editor process exited with an error: spawn sublime ENOENT ('sublime' command does not exist in 'PATH').
Now, I do not know if this is an issue in launch-editor, but seeing how manually overriding the LAUNCH_EDITOR environment variable neither in the command that calls npm, nor in the .env file makes any difference, I suspect that the Nuxt devtools might be using this library incorrectly. I tried subl and sublime_text as values.
The library is invoked here:
🛠️ To reproduce
- Ensure Sublime Text is installed (or create a fake
sublexecutable on a Linux system) - Configure "Sublime Text" to be the editor in devtools.
- Try to open an file in your editor.
🌈 Expected behavior
The file is opened in my local Sublime Text editor.
ℹ️ Additional context
I am using Arch Linux and installed Sublime Text using the official repository. subl is available on my $PATH and works in the terminal.
- Lingua principale
- TypeScript
- Stelle
- 3.3k
- Fork
- 214
- Merge medio
- 19h 45m
- PR unite (30g)
- 12
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.
Altre issue di nuxt/devtools
-
fix: Inspect panel styles break when host page sets a custom html font-size (rem-based units) Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
-
feat: Nuxt devtools for AI Apertaenhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
-
bug needs reproduction
Difficoltà 4/5 3-5 giorni Idoneità per principianti 38/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 52/100
Tutte le issue di nuxt/devtools
Issue simili
-
VerificationGate: ATTRIBUTION quote guard never matches a normal quotation (\b around the quote) Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
danielmiessler/LifeOS#2234 ·
-
T: Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
-
Mend: dependency security vulnerability untriaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100