Comments (3)
First of all, thank you so much for this wonderful vim plugin! I couldn't think of writing
.tex
files without it.
Thanks for the kind words!
It's my first time opening a ticket on github, I hope the description will be to your liking! Please, tell me otherwise.
Yes, this is a good first ticket! Nice to see that you're using proper formatting and everything!
Two errors (E716, E116) come up when running
:VimtexTocOpen
(or:VimtexTocToggle
) in a file containing some\label
commands. The commands run smoothly in the same file without the\label
.Here is the error log:
Error detected while processing function 356[12]..361[5]..vimtex#parser#toc[13]..vimtex#parser#toc#parse[65]..509: line 4: E716: Key not present in Dictionary: "format, l:key, l:label), 'number' : '', 'file' : a:context.file, 'line' : a:context.lnum, 'level' : a:context.max_level - a:context.level.current, 'rank' : a:context.lnum_total, 'type' : 'label', }"
I can't reproduce this on my end. I've made a minor patch that might fix it. Before you update and test, please read my next reply and see if you can still reproduce with an updated minimal config.
It is relatively recent, and persists even when checking-out older commits. I therefore think it's because of my system, but I can't find the reason why, nor can debug vim scripts :'(
I tried with a minimal
vimrc
file, no other plugins, and with aminimal.tex
file as well.1. `vim -Nu "vimrc" mimimal.tex` 2. Run `:VimtexTocOpen` ---> fails
Can you try and reproduce with vim --clean -u test.vim minimal.tex
instead; where test.vim
is as given here:
set nocompatible
set runtimepath^=~/.vim/plugged/vimtex
set runtimepath+=~/.vim/plugged/vimtex/after
filetype plugin indent on
syntax enable
Can you still reproduce your problem now?
System info: OS: Debian GNU/Linux 11 (bullseye) Vim version: VIM 8.2 (1-2434) Has clientserver: true Servername: undefined (vim started without --servername)
Just in case you didn't already know of it, you should read :help vimtex-clientserver
.
from vimtex.
Hi,
Thanks you for your quick reply and your feedback!
I reproduced the steps you described, and I still got the error, but your patch fixed it! Thank you so much for your assistance, that's really wonderful.
Thanks again!
Oh thanks, I will look into the vimtex-clientserver
documentation, I'm not sure what it is.
I went ahead and closed the ticket, is this OK?
Cheers
from vimtex.
Thanks you for your quick reply and your feedback!
I reproduced the steps you described, and I still got the error, but your patch fixed it! Thank you so much for your assistance, that's really wonderful.
Thanks again!
Glad to hear it! It is still surprising to me that you could reproduce the problem, but let's not spend more energy on it if it works now :)
I went ahead and closed the ticket, is this OK?
Yes, perfect. And feel free to open new issues if you have other questions or problems.
from vimtex.
Related Issues (20)
- Use new synctex interactive mode to speed up synctex HOT 5
- Toggle to revert changes made in issue 2401 HOT 2
- Mainfile detection fails when \input is in enumerate environment HOT 4
- l:file not defined in function vimtex#compiler#compile_selected(type) HOT 4
- Setup text argument in user-defined command HOT 3
- Wrong TeXMathZone result from `vimtex#syntax#stack()` HOT 5
- Compilation failed when using xelatex HOT 2
- Compilation fail with option "-c" HOT 10
- Can't open .tex files... sort of? HOT 3
- Zathura issues with finding Window ID HOT 2
- Disabling "latexmk is not executable" message on startup HOT 3
- Cannot create directory: file already exists error when compiling HOT 7
- Continuous mode for OpenBSD fails due to option HOT 8
- citekey: link to BibDesk HOT 49
- Concealing subscript letters stopped working HOT 4
- [help] Is there possible way for another plugin to get mainfile path that vimtex finds? HOT 1
- Viewer (evince) opening on top of neovim instance instead of new window HOT 1
- Support for nofile buffers (e.g. AirLatex) HOT 3
- inverse search not working WSL HOT 9
- Inline math environment not detected as text object HOT 7
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 vimtex.