Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

texlive: chktex cannot find its configuration file #10377

Closed
abbradar opened this issue Oct 13, 2015 · 17 comments · Fixed by #99093
Closed

texlive: chktex cannot find its configuration file #10377

abbradar opened this issue Oct 13, 2015 · 17 comments · Fixed by #99093
Labels
0.kind: bug 6.topic: TeX Issues regarding texlive and TeX in general

Comments

@abbradar
Copy link
Member

I've hit the same bug as described in https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=225213. The root of the problem seems to be missing configuration file which should be placed somewhere and made accessible by chktex. It is used by, for example, tex-mode in Emacs.

cc @vcunat

@jagajaga
Copy link
Member

cc @vcunat

@vcunat
Copy link
Member

vcunat commented Mar 13, 2016

I'm just getting this warning:

chktex: WARNING -- Could not find global resource file.

Otherwise the output seems normal to me, but I've never really used the utility.

@vcunat
Copy link
Member

vcunat commented Mar 13, 2016

Oh, I see, -v is still a problem, as it used to be in Debian.

@vcunat
Copy link
Member

vcunat commented Mar 13, 2016

Actually, that config file is provided by chktex package, so if I include it in texlive.combine, it works fine even with -v.

Still, it's a bit confusing that the core provides chktex binary but doesn't fully support it.

@vcunat
Copy link
Member

vcunat commented Mar 13, 2016

I currently can't see a simple way how to improve that.

@romildo
Copy link
Contributor

romildo commented Apr 7, 2016

I am not able to use chktex on emacs because it does not accept the option --verbosity=0. In the command line I get:

$ chktex --verbosity=0
chktex: WARNING -- Could not find global resource file.
chktex: ERROR -- Illegal verbosity level.

Is it related to this issue, or should I report a new issue?

@romildo

This comment has been minimized.

@vcunat

This comment has been minimized.

@vcunat

This comment has been minimized.

@Profpatsch
Copy link
Member

triage: this might have been fixed in the meantime, is that so?

@veprbl veprbl added the 6.topic: TeX Issues regarding texlive and TeX in general label Feb 17, 2019
@asymmetric
Copy link
Contributor

@Profpatsch it's still necessary to explicitly add the chktex package, otherwise the problem persists.

@veprbl
Copy link
Member

veprbl commented Nov 11, 2019

Could anyone, please, provide steps to reproduce?

@veprbl
Copy link
Member

veprbl commented Dec 27, 2019

The "chktex -v" works for me, I have texlive.combined.scheme-full installed with nix-env.

@veprbl veprbl closed this as completed Dec 27, 2019
@andersk
Copy link
Contributor

andersk commented Sep 19, 2020

chktex -v works in texlive.combined.scheme-medium but not texlive.combined.scheme-small.

$ nix-shell --pure -p texlive.combined.scheme-small --run 'chktex -v /dev/null'
chktex: WARNING -- Could not find global resource file.
chktex: ERROR -- Illegal verbosity level.
$ nix-shell --pure -p texlive.combined.scheme-medium --run 'chktex -v /dev/null'
ChkTeX v1.7.6 - Copyright 1995-96 Jens T. Berger Thielemann.
Compiled with POSIX extended regex support.
No errors printed; No warnings printed; No user suppressed warnings; No line suppressed warnings.
$ nix-info
system: "x86_64-linux", multi-user?: yes, version: nix-env (Nix) 2.3.7, channels(root): "nixos-21.03pre243690.441a7da8080", channels(anders): "", nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

@Narice
Copy link
Contributor

Narice commented Jan 25, 2021

This issue still persists as of today under the tetex scheme. the addition of the chktex package is mandatory to not get this error.
I was getting this error in emacs:
chktex: WARNING -- Could not find global resource file.
chktex: ERROR -- Illegal verbosity level.

I didn't thought that this was a NixOS related issue so this thread was quite hard to stumble upon.

@veprbl
Copy link
Member

veprbl commented Jan 26, 2021

@Narice I can't reproduce:

# nix-shell -p texlive.combined.scheme-tetex --run ": | chktex -v" -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/9ce1caa63c9c806e705cd0d282a4aa920dce76fd.tar.gz
ChkTeX v1.7.6 - Copyright 1995-96 Jens T. Berger Thielemann.
Compiled with POSIX extended regex support.
No errors printed; No warnings printed; No user suppressed warnings; No line suppressed warnings.

@veprbl
Copy link
Member

veprbl commented Jan 26, 2021

I guess I forgot --pure. If I include that then it just gives "chktex: command not found". So how do I trigger the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug 6.topic: TeX Issues regarding texlive and TeX in general
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants