Bug 66910 - dvi forward search fails
Summary: dvi forward search fails
Status: RESOLVED FIXED
Alias: None
Product: kdvi
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Stefan Kebekus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-30 15:47 UTC by Michael Arnold
Modified: 2004-02-14 20:03 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Test files for "Additional Comment #6 From Michael Arnold 2003-11-03 12:14" (1.75 KB, application/x-tgz)
2004-02-13 08:56 UTC, Michael Arnold
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Arnold 2003-10-30 15:47:01 UTC
Version:           1.6b2 (using KDE 3.1.4)
Installed from:    compiled sources
Compiler:          gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-113)
OS:          Linux (i686) release 2.4.22

The call of the kdvi forward search is done with the filename including the entire path, while kdvi is expecting the filename only. So the search fails.

I used a master document with includes which are located in the same folder like the master, so that the include command has the short form
\include{MyChapter}.
Comment 1 Jeroen Wijnhout 2003-10-30 19:53:12 UTC
> The call of the kdvi forward search is done with the filename including the >entire path, while kdvi is expecting the filename only. So the search fails. 

I don't agree on this, AFAIK you can pass an absolute path for the source file.
The reason why Kile does this is a work-around, if you just pass the filename
then the filename can't begin with a number.
 
> I used a master document with includes which are located in the same folder >like the master, so that the include command has the short form 
> \include{MyChapter}.

Hmm, it should work (and works for me) with \input. It doesn't work if you
use \input though.

Can you give the exact error message KDVI gives? Btw, do you use the internal viewer or the stand-alone KDVI?

best,
Jeroen
Comment 2 Jeroen Wijnhout 2003-10-30 21:42:31 UTC
>Hmm, it should work (and works for me) with \input. It doesn't work if you 
> use \input though. 

change the first input to include :-/
Comment 3 Jeroen Wijnhout 2003-10-30 21:43:18 UTC
.
Comment 4 Michael Arnold 2003-11-03 09:39:27 UTC
Subject:  dvi forward search fails

> > The call of the kdvi forward search is done with the filename including
> > the >entire path,  while kdvi is expecting the filename only. So the
> > search fails.
>
> I don't agree on this, AFAIK you can pass an absolute path for the source
> file. The reason why Kile does this is a work-around, if you just pass the
> filename then the filename can't begin with a number.
>
I did some tests and just now I agree to you. But my problem was the 
following: My latex_projekt_directory_path (kile_working_path) includes a 
symbolic link, while the external kdvi viewer started by kile automatically 
uses the real long path. So kdvi doesn't recognize the short path kile tells 
kdvi. 
(I shouldn't use symbolic links. :-( )

> Can you give the exact error message KDVI gives? 

Die Stelle in der DVI-Datei, die der Zeile 1 in der TeX-Datei 
/short/path/MyFile.tex entspricht, wurde nicht gefunden.

KDVI was not able to locate the place in the DVI file which corresponds 
to line 1 in the TeX-file /short/path/MyFile.tex.

> Btw, do you use the
> internal viewer or the stand-alone KDVI?
The stand-alone KDVI.

Comment 5 Jeroen Wijnhout 2003-11-03 10:17:11 UTC
Subject: Re:  dvi forward search fails

On Monday 03 November 2003 09:39, you wrote:
> > > The call of the kdvi forward search is done with the filename including
> > > the >entire path,  while kdvi is expecting the filename only. So the
> > > search fails.
> >
> > I don't agree on this, AFAIK you can pass an absolute path for the source
> > file. The reason why Kile does this is a work-around, if you just pass
> > the filename then the filename can't begin with a number.
>
> I did some tests and just now I agree to you. But my problem was the
> following: My latex_projekt_directory_path (kile_working_path) includes a
> symbolic link, while the external kdvi viewer started by kile automatically
> uses the real long path. So kdvi doesn't recognize the short path kile
> tells kdvi.
> (I shouldn't use symbolic links. :-( )

Hmm, I'm not sure I completely understand. It is that KDVI does not follow the 
symbolic link? If that is the case, the bug should be reassigned to KDVI. 
Perhaps Kile could translate the symbolic link to an absolute path and pass 
that to KDVI, would that solve the problem?

best,
Jeroen

Comment 6 Michael Arnold 2003-11-03 12:14:10 UTC
Subject:  dvi forward search fails

> Hmm, I'm not sure I completely understand. It is that KDVI does not follow
> the symbolic link? If that is the case, the bug should be reassigned to
> KDVI. Perhaps Kile could translate the symbolic link to an absolute path
> and pass that to KDVI, would that solve the problem?

After some konsole trials I think it's a KDVI bug. My configuration:
MyFile.tex as well as MyFile.dvi reside /home/me/tmp

If I am in /home/me/tmp
[tmp]$ kdvi file:/home/me/tmp/MyFile.dvi#src:19MyFile.tex
as well as
[tmp]$ kdvi file:/home/me/tmp/MyFile.dvi#src:19/home/me/tmp/MyFile.tex
work fine.

If I am in /home/me
[me]$ kdvi file:tmp/MyFile.dvi#src:19MyFile.tex
works fine, but
[me]$ kdvi file:tmp/MyFile.dvi#src:19/home/me/tmp/MyFile.tex
and
[me]$ kdvi file:/home/me/tmp/MyFile.dvi#src:19/home/me/tmp/MyFile.tex
fail.

So I agree with you to reassign the bug to KDVI. KDVI should work 
independendly of the working directory if the source file exists.

Thank you for your efforts

Michael

Comment 7 Jeroen Wijnhout 2003-11-03 12:25:10 UTC
reassigning to KDVI
Comment 8 Stefan Kebekus 2004-02-01 22:33:54 UTC
Subject: More information required

Dear m_ichael, dear Jeroen,

sorry for the long silence. I will now try to fix the bug ('dvi forward search 
fails') that have discussed in November. However, reading the bug report, I 
do not quite understand the nature of the problem. Could you perhaps make a 
tar-file with the setup that you are using (including the symlinks, etc.), 
together with a detailed description how to reproduce the problem ---Thanks.

Best,

Stefan.

Comment 9 Michael Arnold 2004-02-13 08:56:21 UTC
Created attachment 4668 [details]
Test files for "Additional Comment #6 From Michael Arnold 2003-11-03 12:14"

Dear Stefan,

this is for the testcase described in the comment #6. There are no symlinks
involved, all folders are real folders.

In my opinion the forward search should work if the src-file exists, regardless
of the folder kdvi is called from.

Best,

Michael
Comment 10 Stefan Kebekus 2004-02-14 20:03:13 UTC
Hello,

thank you for your help. As far as I can see, the issue is fixed in the latest CVS version of KDVI; the bugfix will be included in the upcoming KDE 3.2.1 release. I would ask you the test that release as soon as is appears. If you find that the problem persists, please contact me again at kebekus@kde.org

Best,

Stefan Kebekus.