DragonKnightOfBreeze / Paradox-Language-Support

IDEA Plugin: Paradox Language Support.
https://windea.icu/Paradox-Language-Support
MIT License
42 stars 5 forks source link

Victoria 3 Strange Localisation parsing errors #98

Closed kaiser-chris closed 1 day ago

kaiser-chris commented 4 days ago

Hi,

I noticed a few places where localisation fields (as defined in CWT) cannot be resolved even though they exist. Below is one example but I noticed a few. If you need the corresponding files or more examples I can search for them and post them as well.

Test:

Examples:

game/common/interest_groups/00_devout.txt (Base Game File)

image

game/localization/english/interfaces_l_english.yml (Base Game File)

image

kaiser-chris commented 3 days ago

I have noticed this behaviour with multiple type of references to base game things. E. g. Journal Entries and a few others.

With things like journal entries clicking on a working one (which opens the corresponding base game file) that is defined in the same file as a non-working reference fixes the non-working reference.

This behaviour is really strange but I have not found any pattern yet.

What I tried to fix this:

DragonKnightOfBreeze commented 1 day ago

Not reproduced in my env after lastest plugin update, too.

image

kaiser-chris commented 1 day ago

These inconsistencies only happen wenn CWT files are changed and or indexes are recreated at runtime.

Since normal users do not do these things this can be closed.