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

Rnw files cause a message error on macos with neovim 0.9.0 #2695

Closed
jpasquier opened this issue Apr 25, 2023 · 3 comments
Closed

Rnw files cause a message error on macos with neovim 0.9.0 #2695

jpasquier opened this issue Apr 25, 2023 · 3 comments
Labels

Comments

@jpasquier
Copy link

jpasquier commented Apr 25, 2023

Description

When I open a rnoweb file, I get the following error message:

Error detected while processing BufReadPost Autocommands for "*":
Error executing lua callback: ...brew/Cellar/neovim/0.9.0/share/nvim/runtime/filetype.lua:21: Error executing lua: ...brew/Cellar/neovim/0.9.0/share/nvim/runtime/filetype.lua:22: BufReadPost Autocommands for "*"..FileType Autocommands for "*"..function <SNR>2_LoadIndent[14]..script /Users/u0189152/.brew/Cellar/neovim/0.9.0/share/nvim/runtime/indent/rnoweb.vim, line 21: Vim(let):E475: Invalid argument: VimtexIndent(v:lnum)
stack traceback:
        [C]: in function 'nvim_cmd'
        ...brew/Cellar/neovim/0.9.0/share/nvim/runtime/filetype.lua:22: in function <...brew/Cellar/neovim/0.9.0/share/nvim/runtime/filetype.lua:21>
        [C]: in function 'nvim_buf_call'
        ...brew/Cellar/neovim/0.9.0/share/nvim/runtime/filetype.lua:21: in function <...brew/Cellar/neovim/0.9.0/share/nvim/runtime/filetype.lua:10>
stack traceback:
        [C]: in function 'nvim_buf_call'
        ...brew/Cellar/neovim/0.9.0/share/nvim/runtime/filetype.lua:21: in function <...brew/Cellar/neovim/0.9.0/share/nvim/runtime/filetype.lua:10>
Press ENTER or type command to continue

Is that related to issue #759 (closed)?

Steps to reproduce

minimal.vim:

call plug#begin('~/.local/share/nvim/plugged')
Plug 'lervag/vimtex'
call plug#end()

minimal.Rnw:

\documentclass{article}
\begin{document}
\end{document}

Expected behavior

No error message

Actual behavior

Error message (see above)

Do you use a latexmkrc file?

No

VimtexInfo

System info:
  OS: macOS 12.6.3 (21G419)
  Vim version: NVIM v0.9.0
  Has clientserver: true
  Servername: /var/folders/cm/hv6w580n247gnkdjfqgpf9wdkk3cvh/T/nvim.u0189152/Lah5Tl/nvim.11940.0

VimTeX project: minimal
  base: minimal.Rnw
  root: /Users/u0189152
  tex: 
  main parser: fallback current file
  document class: 
  compiler: latexmk
    engine: -pdf
    options:
      -verbose
      -file-line-error
      -synctex=1
      -interaction=nonstopmode
    callback: 1
    continuous: 1
    executable: latexmk
  viewer: Skim
  qf method: LaTeX logfile
@jpasquier jpasquier added the bug label Apr 25, 2023
lervag added a commit that referenced this issue Apr 25, 2023
This was a regression bug caused by 5670425.

refer: #2695, #759
@lervag
Copy link
Owner

lervag commented Apr 25, 2023

Sorry, this was a regression from my side. Fixed now.

@lervag lervag closed this as completed Apr 25, 2023
@jpasquier
Copy link
Author

Thank you very much!

@lervag
Copy link
Owner

lervag commented Apr 26, 2023

My pleasure :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants