前提
googleドライブに保存しているデュレクトリ(img_Trim)にあるpythonファイルを、mac環境のvscodeで開いています。
実現したいこと
vscodeのターミナルが起動するときに毎回エラーが表示されます。
おそらくターミナルが、今開いているディレクトリ(カレントディレクトリ?)を通してターミナルプロファイルを探しているが、見つからないのでエラーを表示しているようです。
ターミナル起動時のプロセスをカレントディレクトリを通さずに、macにあるzsh(/usr/local/bin/zsh)を通したいです。
vscodeのsetting.jsonは下のソースコードに載せます。
発生している問題・エラーメッセージ
ターミナル プロセスが起動に失敗しました: 開始ディレクトリ (cwd) "/Users/apple/Google \xe3\x83\x88\xe3\x82\x99\xe3\x83\xa9\xe3\x82\xa4\xe3\x83\x95\xe3\x82\x99/\xe3\x83\x95\xe3\x82\x9a\xe3\x83\xad\xe3\x82\xaf\xe3\x82\x99\xe3\x83\xa9\xe3\x83\x9f\xe3\x83\xb3\xe3\x82\xaf\xe3\x82\x99/img_Trim" が存在しません。
該当のソースコード
json
1{ 2 "workbench.startupEditor": "none", 3 "terminal.integrated.defaultProfile.osx": "zsh", 4 "terminal.integrated.profiles.osx": { 5 "bash": { 6 "path": "bash", 7 "args": [ 8 "-l" 9 ], 10 "icon": "terminal-bash" 11 }, 12 "zsh": { 13 "path": "/usr/local/bin/zsh", 14 }, 15 "fish": { 16 "path": "fish", 17 "args": [ 18 "-l" 19 ] 20 }, 21 "tmux": { 22 "path": "tmux", 23 "icon": "terminal-tmux" 24 }, 25 "pwsh": { 26 "path": "pwsh", 27 "icon": "terminal-powershell" 28 }, 29 "zsh (2)": { 30 "path": "null" 31 } 32 }, 33 "python.defaultInterpreterPath": "/Users/apple/.pyenv/versions/3.10.3/bin/python", 34 "security.workspace.trust.untrustedFiles": "open", 35 "files.autoSave": "afterDelay", 36 "python.sortImports.path": "/Users/apple/.pyenv/versions/3.10.3/bin/python", 37 "editor.semanticTokenColorCustomizations": { 38 39 40 }, 41 "workbench.colorCustomizations": { 42 43 }, 44 "terminal.integrated.defaultProfile.linux": "", 45 "settingsSync.ignoredSettings": [ 46 47 48 ], 49 "explorer.confirmDelete": false, 50 "settingsSync.ignoredExtensions": [ 51 52 53 54 55 ], 56 "terminal.external.windowsExec": "/usr/local/bin/zsh" 57}
試したこと
setting.jsonのterminal.integrated.defaultProfile.osxをzshにして、terminal.integrated.profiles.osxのzshのpathを"/usr/local/bin/zsh"に変更しました
補足情報(FW/ツールのバージョンなど)
macOS Big Sur 11.6.5
あなたの回答
tips
プレビュー