file-diff and spellcheck modules not working with Textadept 12.2 #488
Replies: 4 comments 8 replies
-
Silly question, but did you also upgrade those modules to their latest versions? (i.e. from the modules.zip from the 12.2 release). If you did, are you using a custom theme that doesn't define a Line 15 in 3646cc4 |
Beta Was this translation helpful? Give feedback.
-
Using the default theme did indeed prevent the errors. I am using v12.2 of the modules, and the theme here: https://github.com/rgieseke/base16-textadept/blob/main/base16/templates/textadept/themes/base16-outrun-dark.lua. Is that table not initialized in the newer versions of TA? |
Beta Was this translation helpful? Give feedback.
-
Oh, that's a good point. The file_diff module depends on Themes should not be responsible for knowing which colors modules may use, so at the very least there should be a more useful error about a particular color not being defined. That way users can add it to their theme manually if needed. I'll make a note to do this. |
Beta Was this translation helpful? Give feedback.
-
I've added fields to the spellcheck and diff modules to override color names used:
The latest releases for each module will have this change. If you use them with custom themes and set the override color names, you should no longer get an error, and the colors should be correct. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I recently upgrade to 12.2, and enabling either of these two modules produces an error.
For spellcheck, I get the following on startup:
...modules/spellcheck/init.lua:262:bad argument #3 to 'newindex' (number expected, got nil)
For file_diff, I get the following on startup:
...modules/file_diff/init.lua:497:bad argument #3 to 'newindex' (number expected, got nil)
Anyone else have this error besides me?
Beta Was this translation helpful? Give feedback.
All reactions