Closed PresMemes closed 11 months ago
Irony uses CWTools beneath it and these are CWTools messages. If you want Irony to switch to a simple inbuilt parser and validation you need to put the comment you mentioned in each affected file (it's per file not global):
# Dear Irony please fallback to simple parser
And the comment should preferably be on an empty line ie
# my comment
block_of_code = {}
# Dear Irony please fallback to simple parser
Last time the comment approach was used by the Giga devs; haven't heard from them about any issues with Irony registering and falling back to simple validation.
So after adding # Dear Irony please fallback to simple parser
to the top of every file, the inline_script is no longer being marked as invalid but the army itself still is being marked with the same error.
If I nest the inline_script down a level, like so:
test_2_army = {
inline_script = {
script = test_inline
HEALTH = @civic_default_random_weight
}
}
Then it is no longer marked as invalid while using the simple parser.
Can you share your test case here?
I want the whole mod to see for myself.
Sure, here's my setup for testing: ironytest.zip
And here's the mod that caused me to look into the issue in the first place: https://steamcommunity.com/sharedfiles/filedetails/?id=2797565369
Excellent, I can confirm several issues. Again a new scenario for Irony.
And fixed
Describe the bug Trying to define an entire object using an inline_script that has inline math that uses parentheses causes Irony to incorrectly mark said object as invalid despite Stellaris compiling it without errors. Including
# Dear Irony please fallback to simple parser
doesn't fix the issue either. Removing all the parentheses does make the bug go away, but that's not the most practical solution.To Reproduce Steps to reproduce the behavior:
Expected behavior Objects entirely defined with inline_scripts with inline math shouldn't be marked as Invalid
Screenshots Inline script definition:
Object definition (
@civic_default_random_weight = 5
):Irony's errors:
In-game:
Version: