Bug 263141 - Autocompletion of user-defined commands included via symbolic links does not work
Summary: Autocompletion of user-defined commands included via symbolic links does not ...
Status: RESOLVED WORKSFORME
Alias: None
Product: kile
Classification: Applications
Component: general (show other bugs)
Version: 2.1b4
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Michel Ludwig
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-14 13:41 UTC by Jonas
Modified: 2023-02-01 05:04 UTC (History)
2 users (show)

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


Attachments
example project exhibiting the problem (972 bytes, application/x-compressed-tar)
2011-02-18 12:05 UTC, Jonas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonas 2011-01-14 13:41:33 UTC
Version:           2.1b4 (using KDE 4.5.95) 
OS:                Linux

Normally when typing the beginning of a command that is defined in one of the abbreviation files or in the latex file, a little dropdown menu appeared offering completions. Now this menu only appears if manually invoked with ctrl+space.

I tried to turn autocompletion off an on again in the settings and it didn't help. I also tried deleting all configuration files.

Can this be related to the fact that I updated to a new RC of kde? I don't remember when it last worked.

Reproducible: Always
Comment 1 Jonas 2011-01-14 13:43:37 UTC
I forgot to write: the completion of labels when I write \ref{ and the first letter still works. the same for \cite{.
Comment 2 Michel Ludwig 2011-01-14 13:44:23 UTC
Please update to Kile 2.1 beta 5. This should be fixed there.
Comment 3 Jonas 2011-01-14 17:49:19 UTC
ok, now it works. thanks!
Comment 4 Jonas 2011-01-14 18:24:21 UTC
sorry, i have to correct myself again. for macros included with \input{}, autocompletion only works if the path is relative.

this is a problem, since the quickpreview function only works if the macro-file is included with absolute paths!
Comment 5 Michel Ludwig 2011-01-16 22:25:10 UTC
(In reply to comment #4)
> sorry, i have to correct myself again. for macros included with \input{},
> autocompletion only works if the path is relative.
> 
> this is a problem, since the quickpreview function only works if the macro-file
> is included with absolute paths!

I'm not aware of the fact that Kile would also consider commands defined in included files for auto completion. 

Can you please provide a test case which would show the correct and wrong behaviour (both with quick preview and auto completion)? Thanks.
Comment 6 Jonas 2011-02-18 12:05:41 UTC
Created attachment 57346 [details]
example project exhibiting the problem
Comment 7 Jonas 2011-02-18 12:07:05 UTC
Sorry for the late reply.

Yes, kile does autocompletion for macros defined in other files, as long as the other file is part of the project. This is useful and important. It only works with relative paths, but this is not a problem.

With respect to the quick preview, I did some experimenting and I noticed that Kile is able to generate quick previews of math environments which use macros defined in external files (I don't think it's important whether they are in the project) as long as these files are included with absolute path, or relative path without '..'. This means that the macro file has to be in a subdirectory of the project directory, which can be a problem when you want to share a macro file between several projects.

So I think the thing that needs fixing is that quick preview can not deal with '..' in relative paths.

I put an example project in the attachment.
Comment 8 Michel Ludwig 2011-02-18 22:29:01 UTC
Thanks for the example project.

Can you maybe update to Kile 2.1 beta 5? The auto completion works here in all of the cases.

The quick preview indeed doesn't work here in exactly the cases you have identified.
Comment 9 Jonas 2011-03-04 18:09:57 UTC
Ok, the problem does not seem to be absolute paths but rather symbolic links. For me, autocompletion works if the macro file is included with absolute path free of symbolic links, but not if the path contains a symbolic link.
Comment 10 Richard Ssekibuule 2011-04-28 18:43:55 UTC
Autocompletion not working for me too. Worse still latex symbols in kile cannot be used. Clicking on them does not produce the corresponding latex code in the editor.
Comment 11 Michel Ludwig 2011-05-02 10:55:59 UTC
(In reply to comment #10)
> Autocompletion not working for me too. Worse still latex symbols in kile cannot
> be used. Clicking on them does not produce the corresponding latex code in the
> editor.

For the sake of correct bookkeeping, the issues you are reporting are tracked in two different bug reports: 266708 and 272212.
Comment 12 Richard Ssekibuule 2011-05-02 12:25:53 UTC
This is different from the issues I reported, I do not have any custom
commands or symbolic links for kile.

On Mon, May 2, 2011 at 11:56 AM, Michel Ludwig <michel.ludwig@kdemail.net>wrote:

> https://bugs.kde.org/show_bug.cgi?id=263141
>
>
> Michel Ludwig <michel.ludwig@kdemail.net> changed:
>
>           What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>            Summary|autocompletion does not     |Autocompletion of
>                   |work                        |user-defined commands
>                   |                            |included via symbolic links
>                   |                            |does not work
>
>
>
>
> --- Comment #11 from Michel Ludwig <michel ludwig kdemail net>  2011-05-02
> 10:55:59 ---
> (In reply to comment #10)
> > Autocompletion not working for me too. Worse still latex symbols in kile
> cannot
> > be used. Clicking on them does not produce the corresponding latex code
> in the
> > editor.
>
> For the sake of correct bookkeeping, the issues you are reporting are
> tracked
> in two different bug reports: 266708 and 272212.
>
> --
> Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You are on the CC list for the bug.
>
Comment 13 Jonas 2012-05-15 18:50:11 UTC
the discussed problems still exist (on kile 2.1.0) -- quick preview fails if files
are included with
\input{../shared/macros.tex}
where the path contains ".." ,
and autocompletion fails for macros defined in files where
the \input{} directive contains symbolic links.
Comment 14 Andrew Crouthamel 2018-11-09 01:09:19 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 15 Andrew Crouthamel 2018-11-20 04:12:17 UTC
Dear Bug Submitter,

This is a reminder that 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? This bug will be moved back to REPORTED Status for manual review later, which may take a while. If you are able to, please lend us a hand.

Thank you for helping us make KDE software even better for everyone!
Comment 16 Justin Zobel 2023-01-02 07:43:44 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 17 Bug Janitor Service 2023-01-17 05:14:34 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 18 Bug Janitor Service 2023-02-01 05:04:13 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!