Skip to content

Error message when open .Rnw file #759

@xu-cheng

Description

@xu-cheng

The problem

When open any file with .Rnw as the suffix, neovim will show following error message for a short moment.

"test.Rnw" 5L, 62C
Error detected while processing /usr/local/Cellar/neovim/HEAD-4566f7c/share/nvim/runtime/indent/rnoweb
.vim:
line   13:
E475: Invalid argument: VimtexIndent(v:lnum)

FYI, .Rnw file basically is a combination of normal LaTeX file and R codes.

Step to produce

  1. Create test.Rnw file with following content:
\documentclass{article}

\begin{document}
test
\end{document}
  1. Create test.vim with following content:
set nocompatible
let &rtp  = '~/.config/nvim/plugged/vimtex,' . &rtp
let &rtp .= ',~/.config/nvim/plugged/vimtex/after'
filetype plugin indent on
syntax enable
  1. Startup neovim by: nvim -u test.vim test.Rnw. You will see a flashed error message. In case of message disappearing too quickly, you can run :mess to view it.

Other Info

This is tested with the latest neovim running on macOS. If any other information is required, please let me know.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions