Bug 112089 - Kile should use relative paths for files belonging to projects
Summary: Kile should use relative paths for files belonging to projects
Status: RESOLVED FIXED
Alias: None
Product: kile
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR wishlist
Target Milestone: ---
Assignee: Jeroen Wijnhout
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-05 19:39 UTC by Hugo Costelha
Modified: 2006-01-05 11:07 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hugo Costelha 2005-09-05 19:39:08 UTC
Version:           1.8 (using KDE KDE 3.4.2)
Installed from:    SuSE RPMs
OS:                Linux

I think that the path to the files belonging to a project should be relative to the project path (the path of the *.kilepr file).

I have had some serious problem due to the use of absolute paths. I usually pickup some done reports when I want to start a new one, so I can use part of the work/structure already done. If I'm not carefull, I'm working in a new project, in a new folder, but the files of this new project are the old ones, so I'm tampering with the a previous report and not the new one!!!

Besides, using relative paths allows to move the project between folders without any problems. 
Also, when I wan to add a file to the project, if starts the "Open File" dialog in my home page!? Shouldn't it start in the project page? And then it would only have to store the relative path of he file.

Just my wish. I'm sure others have had similar experiences.

Nevertheless, congratulations for the kile project.

Hugo
Comment 1 Jeroen Wijnhout 2005-09-07 20:58:51 UTC
Kile adds the relative paths by default (at least that it how it should be), except for files that are higher in the directory structure than the project file.

best,
Jeroen
Comment 2 Hugo Costelha 2005-09-07 21:49:36 UTC
Humm, so, if I copy a folder containing latex files and the kile project file from one place to another, then open the project in it's new location, it will open also the files in the new location? Maybe I didn't notice the improvement because I've been doing things more carefully since I got those problems a time ago.

In this case, please forget part of my report and consider only the following part:
When I want to add a file to the project (clicking "Add Files"), it starts the "Open File" dialog in my home folder!? Shouldn't it start in the project base folder?
Comment 3 Daniel Franke 2005-09-14 11:29:41 UTC
I second that.
"lastDocument" as well as "masterDocument" are stored with absolute paths.
In my case, moving a project from one box to another simple won't work without changing theses hardcoded paths.


Example:

[General]
archive=tar zcvf '%S.tar.gz' %F
extIsRegExp=false
extensions=.eps .pdf .dvi .ps .fig .log .aux .gif .jpg .png .fig
img_extIsRegExp=false
img_extensions=.eps .pdf .dvi .ps .fig .gif .jpg .jpeg .png
lastDocument=file:///home/daniel/dissertation/thesis/tex/wasp.tex
masterDocument=/home/daniel/dissertation/thesis/tex/thesis.tex
name=thesis
[snip]

[item:thesis.tex]
archive=true
column=55
encoding=ISO 8859-15
highlight=LaTeX
line=7
open=true
Comment 4 Jeroen Wijnhout 2005-09-15 21:17:56 UTC
Ok, I fixed the lastDocument and masterDocument keys in the .kilepr file. The other work for me (i.e. relative paths are stored).

best,
Jeroen
Comment 5 Jeroen Wijnhout 2005-09-15 21:18:10 UTC
*** Bug has been marked as fixed ***.
Comment 6 Hugo Costelha 2005-09-16 00:37:57 UTC
Thanks. Best wishes.

Hugo
Comment 7 Daniel Franke 2006-01-05 11:07:10 UTC
Jeroen,
I just found this relative path in my kileprj:
masterDocument=../../../../../daniel/dissertation/thesis/tex/thesis.tex

Since thesis.tex and thesis.kileprj reside within the same directory, I'd expect either "masterDocument=thesis.tex" or "masterDocument=./thesis.tex", not an (almost) full path?!

The problem is quite similar to my comment #3, a second box doesn't have that subdirectory "daniel" -- changing that path to thesis.tex, without the preceding '..'s, works as expected.

Thanks for your work!
Daniel

P.S. running gentoo, kile-1.9b2 ebuilds