Menu

#270 wrong line numbers for missing files reported during replot

closed
nobody
None
2
2012-07-05
2010-09-15
roucarb
No

from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=479445

Consider the following test.gnuplot file:

========
plot \ x, \ "missing.dat",\ "also-missing.dat"

replot

pause -1

The files missing.dat and also-missing.dat do not exist.
Run this via 'gnuplot test.gnuplot' and you get the following output:

"test.gnuplot", line 4: warning: Skipping unreadable file "missing.dat"
"test.gnuplot", line 4: warning: Skipping unreadable file "also-missing.dat"
"test.gnuplot", line 6: warning: Skipping unreadable file "missing.dat"
"test.gnuplot", line 6: warning: Skipping unreadable file "also-missing.dat"

So far, this is OK, but now I issue a replot from the WX window (key 'e')
and I get this:

"test.gnuplot", line 8: warning: Skipping unreadable file "missing.dat"
"test.gnuplot", line 8: warning: Skipping unreadable file "also-missing.dat"

The line number (8) reported here is that of the pause command, not that of
the plot or replot command, so it's a bit misleading.

Andreas

Discussion

  • roucarb

    roucarb - 2010-09-15
    • priority: 5 --> 2
     
  • Nobody/Anonymous

    Any news ?

     
  • Ethan Merritt

    Ethan Merritt - 2010-11-26

    I don't see any easy way of fixing this. Perhaps someone else will see a clever solution.

     
  • Hans-Bernhard Broeker

    > The line number (8) reported here is that of the pause command, not that of
    > the plot or replot command, so it's a bit misleading.

    Of course it is! It has to be. You issued a second replot command, while sitting inside the pause -1 command on line 8.

    You get the reports about line 8 for exactly the same reason you got the reports about the scripted replot command listing line 6, not line 4: because that's exactly the line gnuplot is processing when the error occured.

    Moving this to feature requests.

     
  • Hans-Bernhard Broeker

    • labels: 370418 -->
     
  • Ethan Merritt

    Ethan Merritt - 2012-07-05
    • status: open --> closed
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.