• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

VSCode task error

Q&A Forum › Category: ESP32 › VSCode task error
0 Vote Up Vote Down
Joe Margevicius asked 1 year ago

Hi … I am using VSCode, and for some reason I am now seeing “There are task errors. See the output for details.” … where this is the output info:
 
Error: The PlatformIO task detection didn’t contribute a task for the following configuration:
{
“type”: “PlatformIO”,
“task”: “Build”,
“problemMatcher”: [
“$platformio”
],
“group”: “build”,
“label”: “PlatformIO: Build”
}
 
Have you seen this before?  I cleaned out the PC of all VSCode stuff and .platform stuff, and reinstalled the IDE and PlatformIO – it’s still there.  The code does compile/build/upload, and works fine, but the error pops up and is annoying (and I haven’t had this problem before, though it may be related to an install of Espressif’s IDE which I played with to program the ESP32-S3, but it’s super slow and “dumb”. This error seems to have appeared after that, but I completely removed it along with everything else, and did a clean install of VSCode and PlatformIO– same thing appears) 
I’ve tried different devices in the platformio.ini, and it still shows that result.  This is an example of the that (showing the 2 I tried using a standard 36 pin ESP32 module (tried a different module – same thing:
 

[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino
monitor_speed = 115200

;[env:esp-wrover-kit]
;platform = espressif32
;board = esp-wrover-kit
;framework = arduino
;monitor_speed = 115200

 
Any ideas?  Thanks !

Question Tags: VScode
4 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 1 year ago

Hi.
I’m sorry, but I never faced that issue before.
I have no idea what might be causing that.
 
Maybe it’s better to ask on the platformIO forum.
 
Regards,
Sara

0 Vote Up Vote Down
Joe Margevicius answered 1 year ago

thanks Sara … will do. 

0 Vote Up Vote Down
Joe Margevicius answered 1 year ago

… the problem turned out to be a corrupted project.  I have 16 projects in a VScode workspace, and 1 of them was the culprit.  Strangely, it compiled, uploaded and worked fine, but there was something PlatformIO didn’t like about it (maybe I had aborted the compile too soon – I remember doing that to one project – shouldn’t have done that?).  I removed that project from the workspace, then put it somewhere else, then created a new project with the same name, copying the main and data files from the relocated project, adding it to the workspace, and voila, the error went away :–)  happy camper !
 
… a corrupted project (the platformIO blog didn’t really have the answer but it stimulated my exploring projects). 
 
You can mark this as resolved.  Thanks.

0 Vote Up Vote Down
Sara Santos Staff answered 1 year ago

Great.
Thanks for sharing the solution.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.