閉じる

UI言語[UI Language]

記事自体は翻訳されません! 記事によって英語版があったりなかったりします。翻訳がある記事は文頭に記載があるよ!
Each articles themselves will not be translated by this setting. Some of article has translation and some of them doesn't. You will notice if the article has its translation by its preamble!

テーマ[Theme]


アイキャッチ画像

【SOLVED】PlatformIO Project Tasks grayed out and unable to use on VS Code


Symptoms

PlatformIO's Project Tasks were grayed out and are no longer available.

Yes, that's all about it.
FYI, the environment is macOS, VSCode 1.71 + PlatformIO 2.5.2 (both are the latest on Sep 2.). But the situation was the same on Windows.

スクリーンショット:Project Tasksがグレーアウトして使えない
スクリーンショット:Project Tasksがグレーアウトして使えない

It looks like this. They are grayed out. Not because of color theme.

I'm using PlatformIO for my DIY force curve measuring machine 軸の秤 (Jiku-no-hakari), and on that day I was so motivated to continue developing as it was been like a week since the last time I saw my source codes.

However, I noticed immediately after opening VS Code that Project Tasks, which are essential for ESP32 development on PlatformIO, such as Build, Upload, Build Filesystem Image, etc... were grayed out, like the screenshot above. I've never seen like this before, and they were, of course, also UNABLE TO EXECUTE. Clicking them did nothing.
In addition, not only the tasks you can see on the screenshot but also literally all of the items in the PROJECT TASKS were unable to use.

Further information, I could still use the Build or the Upload program to the device via Command Palette.
Still, the Upload and Monitor, which is the most useful for ESP32 developing, is not available in the Command Palette. Also, all of SPIFFS related tasks such as the Upload Filesystem Image are not callable through the Command Palette, which means I can't write SPIFFS files onto my device. That was fatal, not a trouble I can just leave it and come back when I could find a time.

Ughhhhhh〜〜〜〜〜〜Gahhhhhhーーーー *big sigh*


The Solution

Downgrade VS Code version to 1.70 or older. ← WTF?💢

Yep, that's all.
When I opened my project on VS Code 1.70 or older, abra kadabra, Project Tasks were not gray as they were before, and able to use them without any problem.

スクリーンショット:正常なProject Tasks
スクリーンショット:正常なProject Tasks

Project Tasks revived!

I've wasted almost a day on this issue.💢
Such as confirming the issue can be reproduced on another project, checking another environment like Windows, looking up PlatformIO settings, trying to google it in English (which I'm not good at, obviously), and playing Apex since I was exhausted. Eventually, I was watching PlatformIO's source code even though I can't understand it at all.

After I hated everything on the earth, I was remembering the basics like 「Hmm, didn't anything particular happen recently...?」 And I guessed I saw VS Code's release note. (which always shows up when the VS Code was automatically updated.) It was bingo, downgrade VS Code perfectly worked.
I think I didn't see something would related to this on the 1.71 release note though...

I've never cared about the auto-update since there was no trouble until now. But I shut it down anyway for future safety. (You can do it in the settings.)
You can download older VS Code from at the top of each version's release note page, by the way.

VSCodeの旧バージョンのダウンロードリンク

The download link for the older version is here, on each release note page.

Just tired. But it can't be helped. I'm a noob programmer.
Tools always drag me along with their plan, not that me using them like a wizard.

2022/09/16 追記[Added 2022/09/16]

Fixed by the update

Seems like everyone had encountered this issue because of the version. And now it's fixed with the PlatformIO update(v2.5.3). Relieved anyway.

この記事のタグ[This article is filed under]: Visual Studio Code[Visual Studio Code] | PlatformIO[PlatformIO] | トラブル[Trouble] | 英語の記事[Written in English]


この記事はここで終わりです。
読んでいただきありがとうございました。
良かったらシェアしてね!

That's all for this article. Thank you for your reading.
Please share this if you like it!

Twitter | Reddit | Facebook | Pinterest | Pocket

前の記事[Prev Post]

前の記事のアイキャッチ画像

【解決】VS CodeでPlatformIOのProject Tasksがグレーアウトして使えない

次の記事[Next Post]

次の記事のアイキャッチ画像

iPhone 14 Pro Deep Purple