Comments (9)
Hey Matthias, syntastic delegates the syntax checking off to external programs. In this case it is shelling out to lacheck
. I dont have much experience with lacheck (and havent used latex in a long time) so I cant really give much advice. The man page for lacheck states that the tool is rather imprecise... it could be a good idea to email this bug to the maintainers. Their email is at the bottom of man lacheck
.
Meanwhiel, you can disable the tex syntax checker by putting let loaded_tex_syntax_checker
in your vimrc.
Hope this is somewhat helpful :)
from syntastic.
let loaded_tex_syntax_checker = 0 was the solution, thanks for your very fast response. This is a little work arround, but I can live quite good with it. I know how much work is in this great vim plugin. Hope in a several years I can understand the vim syntax.
Matthias
from syntastic.
Hi Matthias,
I would suspect that vim's current working directory is not correctly set for your path command. lacheck
is executed from vim's current working dir, so it probably does not find your files for that reason.
You can check the current directory with :pwd
and try to set the directory with :cd
to where you would compile your tex file.
Just a guess :-)
from syntastic.
Hey Kongo, this was a good test. But it is only working with relativ path of the current directory and all files which are below in the directory - you can not just define a path to some style information which are above the directory where the tex-files are. See the example, what I mean:
%% config
\def\home{../../styles} % go above don't work
%% documentclass
\input{\home/documentclass_normal_oneside}
%% generell-styling
\input{\home/style_proggen}
%% meta-tags for pdf
\input{tex/metatags.tex} % go down, works
Thanks for your guess :).
from syntastic.
Hi again,
it's probably a dumb question but did you try to run lacheck <filename>
from the command line to check if lacheck
is capable of resolving your path logic at all?
Cheers
Gregor
from syntastic.
Hio Gregor,
this works :), how silly I am sometimes. Still don't know now to go on.
Cheers
Matthias
from syntastic.
Hi,
it appears to me that lacheck
is indeed not able to expand your \def
command. I am by far no expert in tex or lacheck but I tried to following:
\def\foo{/tmp}
\input{\foo/bar.tex}
Running that with lacheck
on the command line throws an error but the following does work:
\input{/tmp/bar.tex}
That means that lacheck
simply does not interpret those \def
commands properly.
Gregor
from syntastic.
Hey Gregor,
\def\home{../../styles}
doesn't work and
\renewcommand{\home}{../../styles}
isn't working either. Thanks for your help, Gregor.
Matthias
from syntastic.
I've contacted the author of the package (https://github.com/scrooloose/syntastic/wiki/TeX:---lacheck> and see what will be the outcome.
from syntastic.
Related Issues (20)
- Location list flashes then disappears HOT 1
- Checkers problem HOT 2
- Assembly files of different architecture(s): how? HOT 1
- How highlight full word (not line) warning or error in code? HOT 2
- Multiple error windows opened for the same project. HOT 2
- Syntastic Not finding checker [merlin] HOT 2
- syntastic checker output: python: can''t open file HOT 2
- Garbled characters appear in the sidebar HOT 3
- plase patch please
- loc_list should be closed when 'WinLeave' is detected. HOT 4
- How can I disable Syntastic active mode if opened read-only (via "view" command) HOT 2
- Bad configuration
- Pylint comments are not disabling errors HOT 1
- Only one character is underlined, not the whole error HOT 1
- Squiggles start at the wrong place when there are tab characters before them HOT 1
- Integrate with GH workflow linter HOT 1
- Find shared/library headers HOT 1
- strange behavior of loc_list related to `g:syntastic_cpp_checkers` HOT 1
- Add new checker script for Ruff HOT 2
- syntastic: error: checker ansible/ansible_lint: can't parse version string (abnormal termination?) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from syntastic.