Getting error: /bin/sh scriptcs: command not found

与世无争的帅哥 提交于 2019-12-04 11:19:32

问题


I'm using Visual Studio Code for Mac, running extension CodeRunner. I've got a simple program:

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

When I run it using the play button in the upper right hand corner I get the following error:

/bin/sh scriptcs: command not found

Then

[Done] exited with code=127 in 0.008 seconds

The program does not show the desired output.

EDIT: Much thanks to @VonC. His approach worked. Pro tip for anyone: install scriptcs using

brew install scriptcs

回答1:


Considering the prerequisite for filipw/vscode-scriptcs-runner is:

scriptcs should be installed on your machine.

Make sure to launch VSCode from a shell session where scriptcs is in your $PATH (meaning which scriptcs does not return an empty output)



来源:https://stackoverflow.com/questions/51923878/getting-error-bin-sh-scriptcs-command-not-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!