c# - 出现错误:/bin/sh scriptcs: command not found
问题描述
我正在使用 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
解决方案
考虑到的先决条件是filipw/vscode-scriptcs-runner
:
scriptcs应该安装在您的机器上。
确保从脚本所在的 shell 会话启动 VSCode $PATH
(意味着which scriptcs
不返回空输出)
推荐阅读
- wso2 - Lex 聊天机器人和 wso2 身份验证
- javascript - console.log 正在打印,但返回没有经过任何想法?javascript
- flutter - 使用 Android 工作室 Flutter iOS 构建错误
- python - Scrapy 使用太多内存。“选择器”对象是问题吗?
- amazon-web-services - 如何从弹性 beantalk 平台禁用 nginx?
- python - 在 Django 视图中读取 HTML 表单名称
- python - 如果 {0.author} 不起作用,我可以强制机器人使用作者姓名嵌入响应吗?(不和谐.py)
- java - IntelliJ 中的 OpenJDK 17 GA 版本:为什么没有 v17 语言级别?只有“X - 实验功能”
- javascript - 卡住错误:Typeerror:grid.mongo.objectID is not a constructor
- r - 当我知道 R 中的特定累积分布函数时,如何编码以找到分布的百分位数?