Hannah-Sten / TeXiFy-IDEA

LaTeX support for the IntelliJ platform by JetBrains.
https://hannah-sten.github.io/TeXiFy-IDEA
MIT License
896 stars 89 forks source link

Autocomplete seems not to work #2018

Closed xannasavin closed 3 years ago

xannasavin commented 3 years ago

Hey,

I'm new to latex and texify, but so far I like it a lot. However, I was really missing an autocomplete feature like for other markups and thought it was missing - but obviously it is not - > https://github.com/Hannah-Sten/TeXiFy-IDEA/wiki/Autocomplete

If I start typing a command startting with \ I would expect the autocomplete window to open, but nothing happens. Is there anything that needs to be enabled? It's no matter if I'm in the main.tex, the .cls or any chapter.tex file.

I don't think it's a bug, rather something missing on my end, but who knows.

Thanks for your help!

Specs: TeXiFy IDEA 0.7.9 WebStorm 2021.2 Win10

Anything else needed?

PHPirates commented 3 years ago

If I start typing a command starting with \ I would expect the autocomplete window to open, but nothing happens.

That's in fact as it is, if you just type a \ then indeed the autocomplete popup does not show. You can either make it show by continuing typing, for example typing \sec should show commands like \section in the popup, or by hitting ctrl+space explicitly.

If this is not what you meant, please be very precise, as the information I get from you is the only information I have.

xannasavin commented 3 years ago

Hey @PHPirates,

thank you for coming back.

I think I was indeed not precise enough here, of course I started typing e.g. \auto expecting e.g. "autocite" to appear, or \enq (enquote), and also the mentioned \sec(tion) - but the autocomplete never shoes up at all. To remember all commands is a bit hard, especially if you are new to Latex as you might guess ><

So I was wondering, if there is a setting I might have missed or something similar.

The project was of course created as Latex project, and e.g. a duplicate import of a package is highlighted.

In other projects (e.g. PHP or HTML) the autocomplete shows up, so it seems to be specific to the Latex projects I created (two at this time).

I already cleared the cache as described in the Wiki article mentioned above but that did not solve the issue...

PHPirates commented 3 years ago

Autocompletion should always work, there is nothing you should need to setup for that. I also can't remember any previous bug report about command autocompletion not working, so I'll just shoot a few questions.

xannasavin commented 3 years ago

Are you using MiKTeX, and if yes, which version?

No, I am using TeX Live after some recommendations. https://tug.org/texlive/ TeX Live Installationsprogramm 2021-08-05 10 33 38

However, after your questions I tested a bit around and figured, that the Project was for some reason not correctly setup. I exchanged the workspace.xml with the xml of a newly created Latex workspace, and now the autocompletion shows up. (It has tons of options, but that's a different story 😅 ) Thank you for guiding me to the correct place with your questions!

Have a great day :)