-
Notifications
You must be signed in to change notification settings - Fork 63
Filter theme comments causing "Too many arguments" error #68
Comments
I am not getting an error with version 0.20. What version are you using? Also could you check if there is a file named Filtration_errors_DATE_HERE.log in installation folder and share it with us? |
I also can't reproduce in 0.20 - although I did find a typo in the metadata file that's used to check for updates so no users would have got the update notification from 0.18/19 > 0.20 (now fixed). @cezelkowitz can you confirm whether you still get this bug in 0.20? |
I am using version 0.20. Attached is the log file though the error is in game and the app (Filtration) works fine. |
The I maintain a cheatsheet for this kind of stuff here. |
Looks like MinimapIcon and PlayEffect also doesn't allow it. CustomAlertSound didn't give an error. Apparently it allows comment lines right after those tho. So we can change regular expressions and write themes on a new line. |
Nice finds guys. Thanks! Here is the full filter in case it's relevant. |
Might I suggest a cleaner way to handle themes? It's not very intrusive and can fit into your current way of managing this without using extra files (deriving the theme from the filter itself). It's non-intrusive to the DSL of a .filter and uses a common/popular language (JSON). Here is what you have:
Here is what I suggest:
|
The problem with this kind of solution is some people doesn't like it when Filtration requires its own syntax. Also Filtration should still support commonly used styles and a trailing comment after the rule is probably the most common one. |
I'm not sure there's a problem with something like what @cezelkowitz suggested, in the same way that there was with the old Block Group support. The issue that caused was anyone who put The proposal to store all theme data in a single comment immediately following the last line of the block would have the following benefits:
I think we need a design discussion before implementing a solution to this. |
Agreed, it should be discussed. My opinion is that we should still support theme names in trailing comments because I believe it is the most common (?) way nowadays. And if we continue supporting it, shouldn't we use it so it is one less thing to maintain? |
I'm kind of interested to know how many people even use themes in Filtration - the original intention of them was for people to distribute .filtertheme files with their filter, but if you google "filtertheme" there's only 2 results. I think maybe it'd be worth doing the minimum work to fix it at the moment (disable theme support for blocks that don't support trailing comments) until we know whether it'd actually be better just to remove themes entirely. In retrospect I think Block Groups and Themes were actually a mistake to even add to Filtration since they're very bespoke concepts and with filters not naturally having anywhere to store proper metadata other than comments, they're prone to causing parsing issues/bugs/confusion for users. I'd rather Filtration be extremely good at one thing (making item filters easy to edit), than have a load of half baked features that nobody uses tacked on top. |
I can't comment on how many peope use themes but I am using filtration for more than 2 years and themes are one of the things that I find quite useful if not the best feature. I have only edited and used master theme though. Block groups on the other hand are something I have never touched. I think the problem with them is that they bring more problems while trying to solve another. I need to maintain block groups (which can't be done through the program itself), I need to remember which blocks have what groups and I need to come up with a good grouping plan so I can actually benefit from them. If they were disabling blocks instead of turning them to hide and had a way to be managed in Filtration, I would probably use them. |
That's a valid point - I kinda forgot that the master theme concept existed (it's been a while since I wrote the theme stuff). I'll have to have a think about possible solutions since I really don't like the split line comments. |
Setting a theme has been disabled in the UI in 1.0.0-beta2 as a temporary fix for the following block item types: |
…locks (temporary fix for issue #68)
As said by a Path of Exile developer here:
This issue will probably be resolved in near future. |
Simple example that causes "Failed to load Item Filter: Line 11: Too many arguments" error when loaded
The text was updated successfully, but these errors were encountered: