Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intermittent can't build issue, shows "Configure a Task" popup list #2554

Closed
maxgerhardt opened this issue May 13, 2021 · 8 comments
Closed

Comments

@maxgerhardt
Copy link

Me and multiple people in the community forum are hitting an issue that pressing the "Build" button, either in the sidebar or at the bottom taskbar, does not trigger a pio run build but just a VSCode popup asking to configure tasks.

grafik

When further clicking on "PlatformIO"

grafik

This occurs in e.g.

So, 4 people total in a very short timespan recently.

At first the fault was intermittent for me and I thought it was related to

  • updating VSCode
  • VSCode auto-updating the C/C++ extension to v.1.4.0-insiders

But then intermittently it started working again with all those latest versions, now I'm hitting the same issue again in a new ESP-IDF project.

I've also tried using the "Refresh Project Tasks" button so that PlatformIO maybe contributes tasks again, but it doesn't change it.

What just helped was restarting VSCode though and I can build again... Very intermittent issue :(

VSCode version

grafik

System info

> pio system info
--------------------------  --------------------------------------------------------------------------
PlatformIO Core             5.2.0a6
Python                      3.8.6-final.0
System Type                 windows_amd64
Platform                    Windows-10
File System Encoding        utf-8
Locale Encoding             cp1252
PlatformIO Core Directory   C:\Users\Max\.platformio
PlatformIO Core Executable  C:\Users\Max\AppData\Local\Programs\Python\Python38\Scripts\platformio.exe
Python Executable           c:\users\max\appdata\local\programs\python\python38\python.exe
Global Libraries            0
Development Platforms       36
Tools & Toolchains          208

Extensions

grafik

@maxgerhardt
Copy link
Author

@maxgerhardt maxgerhardt changed the title Intermittent can't build issue, shows "Configure Task" popup list Intermittent can't build issue, shows "Configure a Task" popup list May 13, 2021
@maxgerhardt
Copy link
Author

@maxgerhardt
Copy link
Author

And another one with the same issue: https://community.platformio.org/t/strange-behavior-with-platformio/21515

@ivankravets
Copy link
Member

Could you reproduce this issue with the latest VSCode 1.56.2? I'm not sure that this issue is linked with PlatformIO :( Maybe, VSCode broke Tasks API :(

@maxgerhardt
Copy link
Author

I continously updated over the last timespan and I'm now at 1.56.2, but even so still experienced the issue today.

grafik

Again, it was solved by a quick VSCode restart. I don't quite know how to reproduce it, but opening a new project or creating a new project in which some dependencies have yet to be downloaded (like the framework) seems to be triggering it (sometimes?). Maybe I can try and get the logs out of the VSCode developer console the next time it occurs.

@ivankravets
Copy link
Member

but opening a new project or creating a new project in which some dependencies have yet to be downloaded (like the framework) seems to be triggering it (sometimes?).

Yes, you will not see tasks until the project indexing process is not completed. You should see a progress bar below. This is very easy to reproduce with ESP-IDF project which is crazy complex and slow due IDF and its 1Gb source files.

@maxgerhardt
Copy link
Author

However, at some point the process is done and when the "Refresh project tasks" button is used, the tasks refresh correctly in the "project tasks" panel, but clicking on "Build" will still result in the popup that no task was found. This is something I definitely observed.

@stale
Copy link

stale bot commented Jul 18, 2021

This issue has been automatically marked as stale because it has not had recent activity. Please provide more details or it will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jul 18, 2021
@stale stale bot closed this as completed Jul 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants