出现错误:/ bin / sh脚本:找不到命令

时间:2018-08-20 03:40:00

标签: c# visual-studio-code scriptcs vscode-code-runner

我正在使用Visual Studio Code for Mac,运行扩展名CodeRunner。 我有一个简单的程序:

using System;
namespace HelloWorldApplication {
class HelloWorld {
   static void Main(string[] args) {
      Console.WriteLine("hellowol");
   }
 }
}

使用右上角的播放按钮运行它时,出现以下错误:

/bin/sh scriptcs: command not found

然后

[Done] exited with code=127 in 0.008 seconds

程序未显示所需的输出。

编辑:非常感谢@VonC。他的方法行得通。 适用于任何人的专业提示:使用

安装脚本
brew install scriptcs

1 个答案:

答案 0 :(得分:3)

the prerequisite视为filipw/vscode-scriptcs-runner是:

  

scriptcs应该安装在您的计算机上。

确保从MATCH (u:User{username:'student1'}) MATCH (qc:QuestionCollection{id:'937ac2cc-299a-4e65-ab0b-4d514c23e743'})-[c:CONTAINS]->(q:Question) OPTIONAL MATCH (q)<-[:ATTEMPTING]-(a:Attempt)<-[:MADE]-(u) WITH q, a, c ORDER BY a.attemptedDateTime DESC WITH q, c, COLLECT(a.attemptNo)[..1][0] as attempt ORDER BY attempt desc, c.questionNumber asc WITH COLLECT({ q: q, lastAttempt: attempt }) as fullOrderedList UNWIND fullOrderedList as resultList return resultList //I WOULD LIKE TO QUERY resultList TO GIVE THREE RESULT SETS HERE 中包含脚本的shell会话中启动VSCode(这意味着$PATH不会返回空输出)