-
Notifications
You must be signed in to change notification settings - Fork 231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The code and source jars have line number mismatches, and no warning for a template name/filename mismatch #270
Comments
Did you try the latest version 4.3.1? |
Yes, that's what I'm actually got set in my pom.xml, it looks like IDEA displayed stale dependency data, for my Maven import, and a re-import fixed that; I may retry debugging later, to verify the 1st issue. My builds were Maven based, so the 2nd issue probably still exists. |
Adding to this, using 4.3.1:
|
Thanks for the report, @rwperrott !! |
I don't expect the 2nd issue above to be addressed soon, so investigated more and made a workaround, which I expect to drop later.
This hack successfully converts relative line numbers to absolute ones for STGroupFile, including imports, via |
I suggest that CompiledST objects should carry an absolute start line number and |
When I try and debug a NullPointerException (!) in ST4-4.0.8.jar, for a 'missing' .st file, the byte-code line number and source jar line numbers don't match, so I have to hunt for the method and guess where inside inside it the exception occurred, which is stupid and annoying, this frustration appears to cover the whole of my stack trace inside the Jar, hmm!
The NullPointerException was caused by the template name being different from the .st filename, but all I got was a very unhelpful NullPointerException because it couldn't find the template name in the templates map in the STGroup class.
The text was updated successfully, but these errors were encountered: