workshopper / workshopper/javascripting
Core/Javascripting/1.Introduction
Nessuno ha ancora preso questa issue.
- Lingua principale
- JavaScript
- Stelle
- 2.9k
- Fork
- 1k
- Merge medio
- 14h 47m
- PR unite (30g)
- 1
Descrizione
On Windows 10, in PowerShell, you cannot create an empty file using the type NUL > file.extension command.
The only way for the javascripting verifiy command to ever be successful is to create an empty file using the type NUL > file.extension command from CommandPrompt only. This isn't mentioned anywhere in the guide (it just says on Windows).
Even if you create an empty file with $null > file.extension, the validation fails and you can't even run it with node file.extension. The same applies when you create the file in a text editor or in an IDE.
- node version: v9.3.0
- npm version: 5.6.0
- os: Microsoft Windows [Version 10.0.16299.125]
Error output when trying to verify a file that was not created in CommandPrompt using the type NUL > file.extension command.
SyntaxError: Invalid or unexpected token
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:152:10)
at Module._compile (module.js:624:28)
at Object.Module._extensions..js (module.js:671:10)
at Module.load (module.js:573:32)
at tryModuleLoad (module.js:513:12)
at Function.Module._load (module.js:505:3)
at Function.Module.runMain (module.js:701:10)
at startup (bootstrap_node.js:194:16)
at bootstrap_node.js:618:3
at ChildProcess.exithandler (child_process.js:272:12)
at ChildProcess.emit (events.js:159:13)
at maybeClose (internal/child_process.js:943:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5)
killed: false,
code: 1,
signal: null,
My Code
console.log('hello');
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
Inizia riproducendo il flusso di verifica di Core/Javascripting/1.Introduction su Windows 10 in PowerShell, usando un file vuoto creato con $null > file.extension o con un editor, quindi confrontalo con il caso del Prompt dei comandi. Segui il punto di ingresso di javascripting verify per identificare il motivo per cui il file vuoto viene rifiutato. Il lavoro è completato quando i file vuoti validi funzionano con i metodi di creazione segnalati, oppure quando la guida documenta chiaramente la procedura Windows supportata.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript, node.js, powershell
- Ambito
- cli, operating-systems, tooling
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Attiva
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 48/100