본문 바로가기

trouble-shooting

Unable to resolve your shell environment: Unexpected exit code from spawned shell (code 9, signal null) 문제 해결

vscode를 켤 때마다 자꾸 아래 팝업이 뜬다. 동작에 이상이 생기진 않는데 거슬린다.

무작정 Restart 해봐도 해결되진 않는다. Learn More를 통해 해결방법을 알아봤다. 아래 링크로 연결되길래 글을 읽어봤다.

https://code.visualstudio.com/docs/supporting/faq#_resolving-shell-environment-fails

 

Visual Studio Code Frequently Asked Questions

Visual Studio Code Frequently Asked Questions

code.visualstudio.com

이렇게 해보란다. "Laucn VS Code from a terminal"

그래서 터미널을 켜고 명령어를 타이핑했다.

code .

 

 

결과는 code라는 명령어를 찾을수 없단다.

zsh: command not found: code

이게 문제임을 직감했다.

vscode의 커맨드 팔레트를 열고 "Install 'code' command in PATH를 선택해준다.

그리고 터미널을 다시 열어 code명령어를 타이핑하면 정상적으로 vscode가 열리고 경고팝업이 사라진것을 확인할 수 있었다.