Bug 364238 - cite command not showing bibliography entries
Summary: cite command not showing bibliography entries
Status: RESOLVED FIXED
Alias: None
Product: kile
Classification: Applications
Component: general (other bugs)
Version First Reported In: 2.9.60
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Michel Ludwig
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-12 12:57 UTC by S. Umar
Modified: 2018-01-23 18:45 UTC (History)
1 user (show)

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


Attachments
screen image (26.50 KB, image/png)
2018-01-22 22:01 UTC, S. Umar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description S. Umar 2016-06-12 12:57:35 UTC
I am using the development version of kile updated from git. The problem is when I use
a bibliogrpahy file and type \cite{ and use ctrl+space I am getting a long list of irrelevant words
and sprinkled in between just a few of the real bib entries. The words shown seem to be from the tex file and tex comands e.g. abstract, etc. The same file works fine under texstudio and typing \cite{ shows all the bib entries. I am using revtex style that imports natbib.

Reproducible: Always

Steps to Reproduce:
1. type \cite{
2. press ctrl+space
3. list of words appear
Comment 1 S. Umar 2016-06-20 14:49:15 UTC
Hi, as a side note, in biblatex.cwl file in three instances the "fi" of "file" is in a different
character set. I don't think this is intentional.

Forgot to say that I am using natbib.sty.
Thanks
Comment 2 S. Umar 2016-12-09 16:35:50 UTC
This issue is still there in latest git snapshot.
Comment 3 merlin 2017-01-07 09:23:49 UTC
There are two different aspects:

1) To remove all the irrelevant words of the tex file from those lists (cite, ref), you have to disable autocompletion of katepart ( settings > editor > edit) and only use the autocompletion of kile.

2) Typing \cite{ and use ctrl+space will only work at this moment, if you are working with a project. So setup a kile project, add your tex file and your bibliography file and everthing will be ok.
Comment 4 Michel Ludwig 2018-01-22 19:33:28 UTC
I cannot reproduce this problem any more on the master branch ('832ddf9e4623ca04bad27ecd76b7197f7ee01e43').
Comment 5 S. Umar 2018-01-22 22:01:53 UTC
Created attachment 110058 [details]
screen image
Comment 6 S. Umar 2018-01-22 22:03:26 UTC
As seen in the image I am still seeing this with the git just pulled (after the biblatex.cwl fi correction). I use revtex style that uses natbib and I am on Fedora Linux.
Comment 7 Michel Ludwig 2018-01-23 04:48:29 UTC
(In reply to S. Umar from comment #6)
> As seen in the image I am still seeing this with the git just pulled (after
> the biblatex.cwl fi correction). I use revtex style that uses natbib and I
> am on Fedora Linux.

Are you working with Kile projects or just with a single file?
Comment 8 S. Umar 2018-01-23 14:11:21 UTC
A single file. Am I not using it correctly?
Comment 9 Michel Ludwig 2018-01-23 17:21:58 UTC
(In reply to S. Umar from comment #8)
> A single file. Am I not using it correctly?

Unfortunately, Kile is limited at the moment in the sense that it doesn't parse bibliography files outside of projects.

So, I'd suggest that you create a project to which you add the file you are working on and also the bibliography file. Then the citation auto-completion should work fine.
Comment 10 S. Umar 2018-01-23 18:45:57 UTC
Hi, that worked with one caveat. Hitting ctrl+space brings up the bibtexkeys from the bib file but after the last bibtexkey the other unrelated things follow.