0

현재 시각적 인 스튜디오 코드 및 erlang에 문제가 있습니다. 컴퓨터에 erlang/OTP가 설치되어 있으며 Visual Studio 코드 용 erlang 플러그인을 설치했지만 내부 터미널 창에서 erlang을 실행할 수 없습니다. 시도 할 때 다음 오류가 표시됩니다.Erlang이 Visual Studio의 내부 터미널에서 작동하지 않습니다. 코드

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 

어떤 도움을 받으실 수 있습니다.

+0

* erlang 플러그인을 설치했습니다 * - 약간 좁힐 수 있습니까? – 7stud

+0

내 답변의 맨 아래에 의견을 추가해 주셔서 감사합니다. 그것은 다른 사람들을 도와 줄 것입니다. – 7stud

답변

3

다음 가이드를 시도하고 설치합니다.

Correctly configuring your shell on Windows is a matter of locating the right executable. VS Code defaults to the %COMSPEC% environment variable on Windows which typically points to the 32-bit version of cmd.exe.

Below are a list of common shell executables and their default locations:

// 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" 

당신은 또한 얼랑의 경로가 %PATH% 환경 변수에 있는지 확인 할 수 있으며, 추가하지 않을 경우 다음 VS docs에서

: 또는, 당신은 VS 설정에서 %COMSPEC%을 대체 할 수 있습니다. 이전에 erlang 쉘을 성공적으로 시작한 적이 있습니까? 당신이 erlang을 설치 한 후에 그것이 작동하고 있는지 테스트 해보고 싶습니까?

+1

죄송합니다. 바쁜 시간이었습니다. 내 설정에서 이것을 추가하여 수정했습니다 : "terminal.integrated.shell.windows": "C : \\ Program Files \\ erl8.2 \\ bin \\ erl.exe" , "terminal.integrated.cwd": "A : \\ Documents \\ Folder \\ Erlang"'다른 버전의 Erlang을 설치 했었는데, 공식 웹 사이트에서이 버전에 문제가있었습니다. 그러나 erlang에서 다운로드 한 경우 솔루션, 왜 작동하는지 전혀 모르겠다. –