formulahendry / formulahendry/vscode-code-runner

The token '&&' is not a valid statement separator in this version.

Aperta
#491 31 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug upstream
Lingua principale
TypeScript
Stelle
2.4k
Fork
351
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

- VS Code Version: 1.35.0
- OS Version: Windows 10 1903
- Code Runner Version: 0.9.10

**Describe the bug**

![图片](https://user-images.githubusercontent.com/24759802/59017627-97742300-8876-11e9-914c-3fcc57dac78a.png)

```
PS C:\test> cd "c:\test\" && gcc test.c -o test && "c:\test\"test
At line:1 char:15
+ cd "c:\test\" && gcc test.c -o test && "c:\test\"test
+ ~~
The token '&&' is not a valid statement separator in this version.
At line:1 char:37
+ cd "c:\test\" && gcc test.c -o test && "c:\test\"test
+ ~~
The token '&&' is not a valid statement separator in this version.
At line:1 char:40
+ cd "c:\test\" && gcc test.c -o test && "c:\test\"test
+ ~~~~~~~~~~
Expressions are only allowed as the first element of a pipeline.
At line:1 char:50
+ cd "c:\test\" && gcc test.c -o test && "c:\test\"test
+ ~~~~
Unexpected token 'test' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : InvalidEndOfLine

PS C:\test>
```

**To Reproduce**
Steps to reproduce the behavior:

Upgrade VSC from 1.34.0 to 1.35.0.

---

截图没更改execute map;当然改了也是一样的问题。c、c++、c#都有这个问题,所以与语言无关。

宿主机一直可以复现,1.34.0不存在此问题,更新到1.35.0后出现。

我也在我的win7 x86 vm测试了一下,这个问题本来是有的,覆盖1.34.0再覆盖1.35.0后又消失了。

消失是指会用PS的语法,比如`&&`会被自动替换为分号,会有`$?`之类的。

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Non sono indicati né file né test. Riproduci l’esecuzione dei comandi su Windows 10 con VS Code 1.35.0 e Code Runner 0.9.10, quindi confrontala con VS Code 1.34.0; il lavoro è completato quando i comandi C, C++ e C# vengono eseguiti senza l’errore del separatore di PowerShell.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
powershell, typescript, vscode
Ambito
developer-experience, tooling
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
42/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.