texstudio-org / texstudio

TeXstudio is a fully featured LaTeX editor. Our goal is to make writing LaTeX documents as easy and comfortable as possible.
http://www.texstudio.org/
GNU General Public License v3.0
2.82k stars 345 forks source link

.cwl not used, siunitx does not know separate-uncertainty #647

Closed jonasstein closed 5 years ago

jonasstein commented 5 years ago

Environment

Actual behavior

separate-uncertainty is highlighted like an unknown command.

image

The completion file seems to define it properly in https://github.com/texstudio-org/texstudio/blob/master/completion/siunitx.cwl#L194

The completion files are activated in the current configuration. image

I try to track the bug on my system. I could not find the place, where the completion/siunitx.cwl file was installed on my local system. Where should it be?

timhoffm commented 5 years ago

The default completions are bundled with the resource mechanism and compiled into the binary.

The above parameter was just added (https://github.com/texstudio-org/texstudio/commit/bd3514052877b799b827a4289429600ae37fe356#diff-074c200e53f072e37de646dc02b2bff2), so it will not be in your defaults. You can download the above file and place it in your settings completion/user folder (http://texstudio.sourceforge.net/manual/current/usermanual_en.html#CWLDESCRIPTION) or build a new binary from master.

jonasstein commented 5 years ago

Thank you.