-
-
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
error: inlining failed in call to 'always_inline' #1585
Comments
Hi @lbussy, Thank you very much for reporting this error 👍 Best regards, |
I can/will - I was hoping you'd say "yeah you did X dummy!" and fix it. :) I'm going to have to carve out a bunch of things to make a specific test to narrow it down. The errors I get always seem to point to the header that included ArduinoJson and rarely to the line causing the exception. |
Okay, found it. This is the functionality you helped me with previously. It's possible I made it work in a manner that was not intended and a patch broke me: bool mergeJsonString(String newJson)
{
DynamicJsonDocument doc(capacityDeserial);
DeserializationError err = deserializeJson(doc, newJson);
if (err)
Serial.println(err.c_str());
return mergeJsonObject(doc);
}
bool mergeJsonObject(JsonVariantConst src)
{
DynamicJsonDocument doc(capacityDeserial);
JsonObject root = doc.to<JsonObject>();
config.save(root);
if (merge(root, src))
{
config.load(root);
saveFile();
return true;
}
return false;
}
bool merge(JsonVariant dst, JsonVariantConst src)
{
if (src.is<JsonObject>())
{
for (auto kvp : src.as<JsonObject>())
{
merge(dst.getOrAddMember(kvp.key()), kvp.value());
}
}
else
{
dst.set(src);
}
return true;
} I'm relatively certain it's in the |
You did make a mistake, but it wasn't easy to spot!
I added the dummy class
|
Ahhhhhhhhhhhhhhhhhh! I'm not sure how you keep it all straight! :) Thank you very much for pointing that out!! By the way that link to https://arduinojson.org/v6/invalid-conversion/ is a 404. |
|
I'm getting this error in an application that used to compile without issue on an older ArduinoJson 6.x version.
ArduinoJson Troubleshooter's report
I'm more than happy to try to refine the issue, create a small fail case, etc., however, to rip it all out and re-write it would sort of remove any advantage your experience might bring. :)
If this error rings a bell with you, great! If not, I'll start commenting out swaths of code to figure out where I'm going sideways.
The text was updated successfully, but these errors were encountered: