LoginSignup
0
1

【VScode】Cannot find drive. A drive with the name '.C' does not exist. というエラーについて

Posted at

概要

VScodeでのCannot find drive. A drive with the name '.C' does not exist.というエラーの解決をしたので、まとめておきます。誰かのためになれば嬉しいです。

経緯

いつしかVScode上のPowerShellにCannot find drive. A drive with the name '.C' does not exist.というエラーが出るようになってました。でも普通にCtrl+F5で実行できるので、特に気にしていませんでした。

しかしこれではVScode上のPowerShellでコマンドを使おうとすると当該エラーが発生して全く使えません。

考察・結果

なぜかPythonを使っている時だけ当該エラーが発生している、ということに気づいたため検索。以下のサイトがヒットしました。

どうやら、Pythonの拡張機能が悪さをしているらしい。Pythonの拡張機能のページに飛んで pre-release versionを選択したあと、VScodeを再起動しました。

image.png

私の場合は、これで直りました。

おわりに

これでも直らない場合は、再起動をかけてみてください。

0
1
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
1