Bug 328489 - Error/Warning messages point to main file instead of included one
Summary: Error/Warning messages point to main file instead of included one
Status: CONFIRMED
Alias: None
Product: kile
Classification: Applications
Component: general (other bugs)
Version First Reported In: 2.9.92
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Michel Ludwig
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-06 15:33 UTC by swisscarbon
Modified: 2018-11-12 16:22 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
minimal example (13.31 KB, application/x-gzip)
2013-12-06 15:34 UTC, swisscarbon
Details
fixing this bug (439 bytes, patch)
2014-03-14 13:19 UTC, swisscarbon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description swisscarbon 2013-12-06 15:33:54 UTC
When compiling the attached file with pdflatex, the error message points to 
  ./dy-log2011.tex:4
instead of 
  ./dy-log_tracking.tex:4

Changing the length of the path to this files (i.e. by creating a symlink with less 'a') solves the problem.

The problem shows up for every warning or error after this \includegraphics statement while the correct file is shown if the error happens before this \includegraphics

I have no clue what is going on. It's reasonably easy to work around but in large files (e.g. thesis) rather annoying to locate the excat line that triggers the problem...

Reproducible: Always
Comment 1 swisscarbon 2013-12-06 15:34:51 UTC
Created attachment 83954 [details]
minimal example
Comment 2 swisscarbon 2014-03-14 13:14:30 UTC
After being annoyed by this for too long, I took the time to try an fix this.
The attached patch solves the problem and has not shown any negative side effects so far.
Comment 3 swisscarbon 2014-03-14 13:19:47 UTC
Created attachment 85573 [details]
fixing this bug

the bug was triggered by when the last char on a line was an opening parenthesis
the patch pushes an dummy "file" onto the stack in these cases. (The dummy file gets popped when the parenthesis is closed on the next line)
Comment 4 swisscarbon 2014-05-14 14:46:08 UTC
What's the state of this? Anything I can do to help this fix to progress?
Comment 5 Christoph Feck 2014-06-04 11:12:55 UTC
Unfortunately you have to wait until the maintainer of this code has time to review the patch.
Comment 6 Andrew Crouthamel 2018-11-11 04:34:00 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 7 swisscarbon 2018-11-12 12:02:00 UTC
Just checked again, the minimal example provided still works. Compiling dy-log2011.tex will trigger two errors: 

./dy-log_tracking.tex:1:Unkown float option...
./dy-log2011.tex:4:Undefined control sequence \gt

The first error is due to the missing \usepackage{float} and reported at the proper place. The second error is actually in ./dy-log_tracking.tex at line 4...

So, yes this bug is still valid. (I did not recompile with my patc, so I can't say if that would still work.)
Comment 8 Andrew Crouthamel 2018-11-12 16:22:01 UTC
Thanks for the update!