Syntax highlighting for classes doesn't use the Configurator's "Class" style #41
-
Been a longtime user of this plugin. It's tremendously helpful and I really appreciate it. I just upgraded to v0.5 from v0.4. After updating some of my syntax highlighting appears broken. Specifically classes and forms no longer have unique coloring. The rest of syntax highlighting works like it did before. Allow me to convey the issue with some examples.
In NP++ the Another example would be a simple line like I am uncertain what is causing this. I have tried updating NPP. Reinstalling this plugin. Played around with every setting I can think of. One other thing is broken. Though it has been for many months. Much longer than the current problem. When I first installed the Lexer the class names would be highlighted as links. And of course I could Ctrl + Double click and they would take me to the class definition. That stopped working. They were no longer highlighted and could not be clicked on. Even though styling class names is enabled in the Lexer Settings. Also I have the class cache disabled. I can not precisely recall when this stopped working. Perhaps around the time I reinstalled Skyrim to a different hard drive. I mostly just ignored this issue. But I think it might be related to my new trouble. I wonder if the new v0.5 is relying on being able to find and link classes in order for the syntax highlighting to function as expected. And since it can't hyperlink classes the style configuration is now broken too. How does the Lexer know where to search for class definitions? Does it use the Import directories specified in the compiler settings? Or does it possibly search the default Skyrim installation directory? And fail to find them if you have installed to an alternate location? Thanks for any help! And thanks for a great tool. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
Thanks for the report, and It's indeed a bug introduced in v0.5. I just fixed it and released v0.5.1. I forgot to test it when class name caching is turned off, since the main focus of v0.5 was dark mode. Yes, the lexer searches for class names in all import directories, so please make sure the configured import directories match your current installation, and the referenced script (e.g. Form.psc) is in one of the import directories. |
Beta Was this translation helpful? Give feedback.
Thanks for the report, and It's indeed a bug introduced in v0.5. I just fixed it and released v0.5.1. I forgot to test it when class name caching is turned off, since the main focus of v0.5 was dark mode.
Yes, the lexer searches for class names in all import directories, so please make sure the configured import directories match your current installation, and the referenced script (e.g. Form.psc) is in one of the import directories.