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.83k stars 345 forks source link

Biber refuses to compile in texstudio but works in terminal #2096

Closed jjayez closed 2 years ago

jjayez commented 2 years ago

Environment

Description

After an update of Texstudio and texlive (2021) I see the following error description: "Usage: biber [options] file[.bcf] biber [options] --tool Creates "file.bbl" using control file "file.bcf" (".bcf" extension is optional). Normally use with biblatex requires no options as they are all set in biblatex and passed via the ".bcf" file In "tool" mode (see B<--tool> option), takes a datasource (defaults to "bibtex" datasource) and outputs a copy of the datasource with any command-line or config file options applied. Please run "biber --help" for option details" This is totally cryptic to me. There is absolutely no problem with xelatex filename;biber filename;biber filename;xelatex filename in a terminal

muzimuzhi commented 2 years ago

That info normally means biber is called with wrong option or argument. Have you changed the setting for Biber command? Or can you provide an example? I see no problems with one of my local files using biber. image

jjayez commented 2 years ago

Thank you for answering. I can't detect any particular problem with the call. What I have: image

My .bib file is in biblatex format and my declaration is standard: \usepackage[style=authoryear,sorting=nyt,backend=biber]{biblatex} \addbibresource{filename.bib}

I also tried with pdflatex instead of xelatex as the default engine. No change (as expected).

muzimuzhi commented 2 years ago

Why closed? It seems not resolved yet.

jjayez commented 2 years ago

Sorry, a mistake

muzimuzhi commented 2 years ago

After clicking "Tools - Commands - Biber", what do you see in the "Messages" panel? For example I get image followed by normal biber stdout.

jjayez commented 2 years ago

I see Process started: biber "Semantics_Crash_Course" and later on INFO - Looking for bibtex format file 'Semantics_Crash_Course.bib' for section 0 This line does not make sense to me. My .bib file is bibaltex complying ...

jjayez commented 2 years ago

I just tested on another computer (same versions of texstudio and texlive, same Ubunu 20.04, same files) and it works ...

muzimuzhi commented 2 years ago

I see Process started: biber "Semantics_Crash_Course" and later on INFO - Looking for bibtex format file 'Semantics_Crash_Course.bib' for section 0 This line does not make sense to me. My .bib file is bibaltex complying ...

It seems the biber program is working. What do you get in its log .blg? Do you still get the initially reported message

Usage: biber [options] file[.bcf] biber [options] --tool [...]

Other random guesses: Does deleting all the aux files help? Do the output of texstudio's "Help - Check LaTeX Installation" on two computers the same? Since you've find the files works on another computer, providing an example may not help much ...

jjayez commented 2 years ago

After some fiddling, it turned out that declaring the full path of biber (/usr/local/texlive/2021/bin/x86_64-linux/biber) creates the problem. I replaced it with txs///biber and the problem disappeared. I probably missed something important in the user manual ... Thank you for your patience

zararash commented 5 months ago

Solution:

Another way to solve this issue is to add:

txs:///compile | txs:///biber | txs:///compile | txs:///view to your "Build and View" section, which you can access it here: Options > Configure TeXstudio > Build