-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Code no longer compiles on 6.21.0 #1897
Comments
I'll try and create a MCVE tonight, thanks! |
Here's a (close to) MCVE that demonstrates the error.
Error:
|
Thank you very much, @mattncsu.
I honestly don't know what's going on. Can you try to uninstall and reinstall ArduinoJson 6.21.0? |
I am using Inkplate 10 as my board (board definition). It uses a ESP-WROVER32. I'll try the generic ESP32 WROVER definition tonight to see if that is the culprit. I also have a million other libraries installed from years of playing with ESP8266, ESP32s, and ATMEGA/Tiny chips. |
Thanks. Please let me know the outcome.
In the compiler output, you should see which libraries were included in the build. |
I confirmed the example compiles without error when I changed my board from "Inkplate 10" to "ESP32 Wrover Module" I'm not sure what about the board definition it breaking it. Here's the full compiler output if that helps.
|
It looks like you're using a deprecated core. Form Croduino-Board-Definitions-for-Arduino-IDE:
I tried with Soldered core, and your program compiles correctly. Croduino uses GCC 5.2 (released in 2015), but ArduinoJson 6.21 require GCC 6 or above. I excluded GCC 5 from ArduinoJson's test suite because it could not compile Catch 2.x. |
same with me. i am still using core 1.0.6 because of a ethernet network issue with core 2.0.x platform = espressif32 @ ~3.5.0 (in platformio.ini)
it compiles fine with current core: platform = espressif32 (in platformio.ini)
guess it is time to find the root cause of the ehternet network issue with Olimex PoE Hardware and Core 2.0.x and stick with ArduinoJson version 6.20.1 until i solved it |
I have same problem. Currently I am stuck in Espressif 32 version 3.5.0.
Causes same error. I compiles fine on Espressif 32 version 6.1.0. I think problem is that somehow compiler can not fit deserializeJson parameter list properly and thinks len is filter. I did not yet found how to force to select proper template. |
Switching to the Soldered core fixed it, thanks! |
I finally found a workaround! |
Thanks a lot. Now compiles at least for me. I'll make functional tests later. |
Describe the bug
When I upgraded from 6.20.0 to, 6.21.0, my code no longer compiles. When I downgraded to 6.20.0, the error went away. Here is the compiler errors:
Troubleshooter report
Here is the report generated by the ArduinoJson Troubleshooter:
I did not see the error in the troubleshooter
Environment
Here is the environment that I used:
Reproduction
The code listens for UDP broadcasts from a weather station and also requests the forecast from the API which returns a huge JSON payload. These are the two functions that receive and parse the JSON.
Compiler output
If relevant, include the complete compiler output (i.e. not just the line that contains the error.)
See above
Program output
If relevant, include the repro program output.
N/A - does not compile
The text was updated successfully, but these errors were encountered: