-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
error: no matching function for call to 'min(size_t&, int&)' #3853
Comments
Please use WLED forum or Discord for help and support questions. |
@willmmiles it looks like the line in question was introduced by this commit I think the solution would be to replace Any way using |
Hard disagree - this is exactly the kind of thing I want to catch, I don't want to blindly override type mismatches. This code compiles correctly on my system in a clean checkout - why? What's different about @lsaadeh's environment? @lsaadeh - I am interested in fixing this. Can you please run |
Haha. |
This is the output PlatformIO IDE:
|
Why do you use platform 4.2.0? You should use 4.2.1. |
@blazoncek looks to be defined here as 4.2.0 https://github.com/Aircoookie/WLED/blob/main/platformio.ini#L66
edit: getting the same error with the below added to override
|
Re-opening as some analysis is ongoing. |
Here it is: Unfortunately, PlatformIO doesn't provide a mechanism for libraries to specify a dependency on a specific platform package revision. It's been feature requested - on this very platform change, no less! - but backlogged, with no expectation of work in the near future.
@blazoncek and @softhack007 - would be a good idea to pin the ESP8266 framework version in WLED? Given the extent of the changes, it's possible this could be the source of quite a bit of divergent behaviour in different people's local builds beyond this immediate issue. If you feel strongly that we want to support arbitrary older platform revisions, I'll add some matrix CI on AsyncWebServerWLED to make sure it works correctly. I'd spent a little time trying to get the CI up and running again anyways, this'd make it more of a priority. (As far as I'm concerned, that repo need only support the WLED requirements.) |
On the entirely unrelated other note:
I'm using Visual Studio Code with the PlatformIO plugin. I've seen this happen if there's a race between a build process and the plugin trying to reconfigure itself. The plugin monitors for changes in I've gotten in to the habit of whitespace-edit-and-save on |
@willmmiles can confirm by setting the following in my
|
I dug a little in to this, and found out that the unversioned "platformio/framework-arduinoespressif8266" in |
Fixed by PR #3862 |
What happened?
unable to build on tag v0.14.2 or main using Platformio
To Reproduce Bug
Try to build/upload d1_mini_ota using Platformio
Expected Behavior
Successful build
Install Method
Self-Compiled
What version of WLED?
v0.14.2 and main
Which microcontroller/board are you seeing the problem on?
ESP8266
Relevant log/trace output
Anything else?
Also see this error some times?
Code of Conduct
The text was updated successfully, but these errors were encountered: