0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

AWS Toolkit for Visual Studio Codeでアクションが実行できない

Last updated at Posted at 2020-07-29

初歩的すぎて、こんなミス起きる方が少ないのか、情報がなく1時間くらい嵌ったので投稿します...(初投稿)

エラー発生から原因追及まで

AWS Toolkit for Visual Studio Codeを使って「Create new SAM Application」を実行すると
Unable to find SAM CLI. It is required in order to work with Serverless Applications locally.
とエラーが。

SAM CLIインストール済みなんですが...

python3.7でインストールしていたので、python3.8入れて再度インストールしてみた → 無事解消されない(^^

コンソールに出てる通り、コマンドパレットからAWS:View AWS Toolkit Logs見てみた
「ユーザー設定に書き込めません。ユーザー設定を開いて、ファイル内のエラー/警告を修正してからもう一度お試しください。」
→vscode開いた時点でエラー出力されてる...
→setting.jsonが原因???

原因

setting.jsonにエラーがある
→aws cliのlocation情報を書き込めないため、vscode上ではaws cliが存在しない状態になっていた

解消方法

setting.jsonのエラーを解消するのみ。

よくあるエラー:「,」がないとか
私の場合:"window.zoomLevel": +0.5が原因... +は不要ですね(^^
(前から~が出てるのには気づいてたけど放置してた←)
(多分書き込んだ当時は文字サイズ大きくしたかったのに、できずに放置←)

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?