Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/visual-studio-code/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio code Erlang在Visual Studio代码中不使用内部终端_Visual Studio Code_Erlang_Vscode Settings_Erlang Shell - Fatal编程技术网

Visual studio code Erlang在Visual Studio代码中不使用内部终端

Visual studio code Erlang在Visual Studio代码中不使用内部终端,visual-studio-code,erlang,vscode-settings,erlang-shell,Visual Studio Code,Erlang,Vscode Settings,Erlang Shell,我目前在visual studio代码和erlang方面遇到问题,我的电脑上安装了erlang/OTP,我还安装了visual studio代码的erlang插件,但是我无法从内部终端窗口运行erlang。当我尝试删除时,我收到此错误: erl : The term 'erl' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of t

我目前在visual studio代码和erlang方面遇到问题,我的电脑上安装了erlang/OTP,我还安装了visual studio代码的erlang插件,但是我无法从内部终端窗口运行erlang。当我尝试删除时,我收到此错误:

erl : The term 'erl' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the
path is correct and try again.
At line:1 char:1
+ erl
+ ~~~
+ CategoryInfo          : ObjectNotFound: (erl:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

任何帮助都将不胜感激。

请尝试以下指南并安装erlang


请尝试以下指南并安装erlang

VS使用的shell在Linux和OS X上默认为$shell,在Linux和OS X上默认为%COMSPEC% 窗户。可以通过设置 terminal.integrated.shell.*在设置中

因此,我将检查%COMSPEC%环境变量的值。或者,您可以在VS设置中覆盖%COMSPEC%:

从:

在Windows上正确配置shell是一个定位问题 正确的可执行文件。VS代码默认为%COMSPEC%环境 Windows上的变量,通常指向32位版本的 cmd.exe

下面列出了常见的shell可执行文件及其默认值 地点:

// 64-bit cmd if available, otherwise 32-bit
"terminal.integrated.shell.windows": "C:\\Windows\\sysnative\\cmd.exe"
// 64-bit PowerShell if available, otherwise 32-bit
"terminal.integrated.shell.windows": "C:\\Windows\\sysnative\\WindowsPowerShell\\v1.0\\powershell.exe"
// Git Bash
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe"
// Bash on Ubuntu (on Windows)
"terminal.integrated.shell.windows": "C:\\Windows\\sysnative\\bash.exe"
您可能还需要检查erlang的路径是否在%path%环境变量中,如果不在,则添加它。您是否曾经成功地启动过erlang shell,例如,在您安装erlang以测试它是否正常工作之后?

来自

VS使用的shell在Linux和OS X上默认为$shell,在Linux和OS X上默认为%COMSPEC% 窗户。可以通过设置 terminal.integrated.shell.*在设置中

因此,我将检查%COMSPEC%环境变量的值。或者,您可以在VS设置中覆盖%COMSPEC%:

从:

在Windows上正确配置shell是一个定位问题 正确的可执行文件。VS代码默认为%COMSPEC%环境 Windows上的变量,通常指向32位版本的 cmd.exe

下面列出了常见的shell可执行文件及其默认值 地点:

// 64-bit cmd if available, otherwise 32-bit
"terminal.integrated.shell.windows": "C:\\Windows\\sysnative\\cmd.exe"
// 64-bit PowerShell if available, otherwise 32-bit
"terminal.integrated.shell.windows": "C:\\Windows\\sysnative\\WindowsPowerShell\\v1.0\\powershell.exe"
// Git Bash
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe"
// Bash on Ubuntu (on Windows)
"terminal.integrated.shell.windows": "C:\\Windows\\sysnative\\bash.exe"

您可能还需要检查erlang的路径是否在%path%环境变量中,如果不在,则添加它。您是否曾经成功启动过erlang shell,例如,在您安装erlang以测试它是否正常工作之后?

我已经安装了erlang插件,您可以将其缩小一点吗?您可以在我的答案底部添加一条注释,说明什么对您有效吗?这将帮助其他人。我已经安装了erlang插件。你能把它缩小一点吗?你能在我回答的底部添加一条评论,描述什么对你有用吗?这将帮助其他人解决问题。对不起,我一直很忙,我通过在我的设置中添加此选项来修复它:terminal.integrated.shell.windows:C:\\Program Files\\erl8.2\\bin\\erl.exe,terminal.integrated.cwd:A:\\Documents\\Folder\\Erlang我还安装了一个不同版本的Erlang,我在官方网站上的版本有问题,但是,如果从erlang解决方案下载,它可以工作,不知道为什么抱歉,我一直很忙,我通过在我的设置中添加这个来修复它:terminal.integrated.shell.windows:C:\\Program Files\\erl8.2\\bin\\erl.exe,terminal.integrated.cwd:A:\\Documents\\Folder\\erlang我还安装了不同版本的erlang,我对官方网站上的版本有问题,但是如果从erlang解决方案下载,它可以工作,不知道为什么