Topic: Make full load stack visible in FATAL EXCEPTION report
Kontorotsui Topic Opener |
Posted at: 2023-07-10, 12:57
Hello, I am developing a variant of a tribe (the europeans), and as it can happens, sometimes when I load it I did some mistake, maybe a missing semicolon or comma or a } The problem is that the FATAL EXCEPTION error shows a lot of useless info like the file /run/build/Widelands/src/scripting/lua_errors.cc:21 that only lists the errors, and instead cuts badly the REAL place where the error happened and makes it harder to find it. Like this:
As you see the file is cut to "addons/europeans_tribe.wad/productionsites_ag..." and makes it impossible to find it. I think this is easy to fix, can someone work on it? Should I put it as a bug report? Technically is a feature not a bug. Top Quote |
Nordfriese |
Posted at: 2023-07-10, 20:08
Unfortunately this is not easy at all, since low-level Lua handling is third-party code and not in Widelands itself. So if you want to file a bug report (or want to provide a patch – or someone else wants to provide a patch) it should be reported against the Eris library: https://github.com/fnuecke/eris Here is the Eris code excerpt (from
Good luck trying to modify that Top Quote |
aDiscoverer |
Posted at: 2023-07-13, 09:44
Work around: run Something like luacheck would be more advanced. As shell script, to check several files in one go and ignore nil messages:
Top Quote |
Kontorotsui Topic Opener |
Posted at: 2023-08-24, 10:14
Great! Thanks! Top Quote |
Kontorotsui Topic Opener |
Posted at: 2024-07-22, 13:44
Oh... damn. I hoped it was some sort of internal Widelands error output generation, or that at least it was Wideland's code that chose the max length. Doesn't look easy, I'll post a bug report there, since it will obviously happen elsewhere as well. Thank you anyway! Top Quote |
Kontorotsui Topic Opener |
Posted at: 2024-07-22, 13:48
Now that is great, but I get this error...
Edited: 2024-07-22, 13:49
Top Quote |
Kontorotsui Topic Opener |
Posted at: 2024-07-22, 13:57
Also if I try to invoke lua on the single script
I get this as expected but nothing else
Edited: 2024-07-22, 13:57
Top Quote |
Kontorotsui Topic Opener |
Posted at: 2024-07-24, 13:19
Any help? Top Quote |