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

Generates invalid helptags for README #67

Closed
d12bb opened this issue Dec 21, 2022 · 8 comments · Fixed by #55 or #1054
Closed

Generates invalid helptags for README #67

d12bb opened this issue Dec 21, 2022 · 8 comments · Fixed by #55 or #1054
Labels
bug Something isn't working

Comments

@d12bb
Copy link

d12bb commented Dec 21, 2022

Describe the bug
After installing mason-null-ls.nvim, I tried using Lazy's feature of generating help tags when no are present in a plugin. While :help mason-null-ls<tab> shows plenty, which correlate perfectly with the headers in its README, one can't open them: "Tag not found: mason-null-ls.nvim-setup@en". Notably, that "@en" isn't present in the completions.

Which version of Neovim are you using?

❯ nvim --version 
NVIM v0.8.1
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by brew@Ventura-arm64.local

Features: +acl +iconv +tui

To Reproduce
Steps to reproduce the behavior:

  1. Use repro.lua below
  2. Wait for Lazy to install
  3. :h mason-null-ls.nvim-setup
  4. E426: tag not found: mason-null-ls.nvim-setup@en

Expected Behavior
Opens Readme at Nvim Setup heading.

Details

Lazy log

lazy.nvim (H) Install (I) Update (U) Sync (S) Clean (X) Check (C) Log (L) Restore (R) Profile (P) Debug (D) Help (?)

Total: 5 plugins

Breaking Changes (1)
● lazy.nvim 2.56ms  init.lua
b7c489b fix(loader): lua modules can be links instead of files. Fixes #66 (16 minutes ago)
7a57ea2 chore(build): auto-generate vimdoc (36 minutes ago)
c228908 fix(health): don't show warning on module=false (37 minutes ago)
b68f94b ci: Update issue templates (65 minutes ago)
bbebb67 ci: Update issue templates (67 minutes ago)
95fc814 chore(build): auto-generate vimdoc (84 minutes ago)
876f7bd feat(loader): allow to add extra paths to rtp reset. Fixes #64 (85 minutes ago)
a345649 fix(cache): if we can't load from the cache modpath, find path again instead of erroring right away (2 hours ago)
bbace14 fix(git): only mark a plugin as dirty if an update changed the commit HEAD. Fixes #62 (2 hours ago)
a939243 fix(checker): allow git checks only for non-pinned plugins (#61) (2 hours ago)
57bea32 chore(build): auto-generate vimdoc (2 hours ago)
ff24f49 fix(loader): source rtp /plugin files after loading start plugins. Fixes (2 hours ago)
b802729 chore(build): auto-generate vimdoc (5 hours ago)
9dfefac docs: fixed indentation of auto-generated code blocks (5 hours ago)
71b2e2f docs: lazy works on all OSs now (5 hours ago)
232232d fix(ui): install command can have plugins as a parameter (5 hours ago)
4ca3039 feat(loader): warn when mapleader is changed after init (6 hours ago)
540847b fix: strip / from dirs. Fixes #60 (6 hours ago)
86eaa11 fix(git): dereference tag refs. Fixes #54 (7 hours ago)
e95da35 feat(util): utility method to get sync process output (7 hours ago)
3c3a711 chore(build): auto-generate vimdoc (8 hours ago)
44f80a7 feat(plugin): allow plugin files only without a main plugin module. Fixes #53 (8 hours ago)
f5734f5 chore(build): auto-generate vimdoc (8 hours ago)
3814883 fix(ui): set current win only when its valid (8 hours ago)
3a7b8c8 chore(main): release 5.1.0 (#30) (17 hours ago)
3606d62 fix: add after directories to rtp to make after/ftplugin and others work. Fixes #47 (17 hours ago)
b193f96 fix(spec): only process a spec once (18 hours ago)
7be46bc style: removed unused requires (18 hours ago)
897d6df fix: add filetype to window buffer. (#41) (19 hours ago)
14300b3 chore(build): auto-generate vimdoc (19 hours ago)
78e9d6c docs: add a note about mapleader (19 hours ago)
06ac8bd perf(ui): clear existing extmarks before rendering (20 hours ago)
ffcd0ab fix(loader): source filetype.lua before plugins. Fixes #35 (20 hours ago)
9d12cdc fix(git): don't run git log for submodules. Fixes #33 (21 hours ago)
06ffcf5 chore(build): auto-generate vimdoc (21 hours ago)
7fb0652 docs: added docs on update checker (21 hours ago)
1f86cb3 chore(build): auto-generate vimdoc (21 hours ago)
3cffb2a docs: added change detection to the readme (21 hours ago)
6c767a6 feat: added options to configure change detection. Fixes #32 (21 hours ago)
cd162f3 chore(build): auto-generate vimdoc (21 hours ago)
941df31 feat(ui): make the windoww size configurable. Fixes #34 (21 hours ago)
5298441 fix: use nvim_feekeys instead of nvim_input for keys handler. Fixes #28 (22 hours ago)
2927b05 docs: added lincense (23 hours ago)
4d78203 chore(main): release 5.0.1 (#17) (24 hours ago)
1371a14 fix(build): use the shell to execute build commands (24 hours ago)
ffabe91 fix(cache): if mod is loaded already in the loader, then return that (24 hours ago)
316503f fix: dont autoload cached modules when module=false (25 hours ago)
992c679 fix: always set Config.me regardless of reset rtp (25 hours ago)
df6c986 fix: add neovim libs to rtp for treesitter parsers etc (26 hours ago)
49b69b7 chore(build): auto-generate vimdoc (27 hours ago)
e9d3a73 fix: default logs are now since 3 days ago to be in line with the docs (27 hours ago)
4234322 chore(build): auto-generate vimdoc (27 hours ago)
6e32759 fix: deepcopy lazyspec before processing (27 hours ago)
ec0f8d0 docs: added config.dev.path to the example (27 hours ago)
6404d42 fix: move re-sourcing check to the top (27 hours ago)
ddf36d7 fix: checker should not error on non-existing dirs (27 hours ago)
50ba619 test: fix tests (27 hours ago)
f78d8bf fix: show error when merging, but continue (27 hours ago)
b8a0055 chore(build): auto-generate vimdoc (28 hours ago)
1754056 fix: use jobstart instead of system to open urls (28 hours ago)
5ecc988 docs: use https to bootstrap lazy (28 hours ago)
ae644a6 fix: only run updated checker for installed plugins. Fixes #16 (29 hours ago)
7225b05 chore(build): auto-generate vimdoc (29 hours ago)
17fd57a docs: added docs for statusline and count (29 hours ago)
48a596e chore(build): auto-generate vimdoc (30 hours ago)
dfe8a65 docs: removed extra performance section (30 hours ago)
1fa2d87 docs: moved my dots to structuring plugins (30 hours ago)
9916318 chore(build): auto-generate vimdoc (30 hours ago)
abe026a docs: added section on performance (30 hours ago)
82aea47 chore(build): auto-generate vimdoc (30 hours ago)
72d66cd docs: updated lua stuff (30 hours ago)
ca43018 chore(build): auto-generate vimdoc (30 hours ago)
36cb7ea docs: migration guide (30 hours ago)
2f59ead chore(main): release 5.0.0 (#12) (30 hours ago)
dbcf675 chore(build): auto-generate vimdoc (30 hours ago)
b906ad9 docs: added windows to supported platforms (30 hours ago)
cb87aa3 ci: run tests on linux only for nw (32 hours ago)
75a36f3 chore(build): auto-generate vimdoc (32 hours ago)
af87108 fix(util): fixed double slashes (32 hours ago)
62c1542 fix(cache): normalize paths (32 hours ago)
bb1c2f4 feat: added support for Windows (33 hours ago)
198963f feat: utility method to normalize a path (33 hours ago)
a189883 fix: check for installed plugins with plain find (33 hours ago)
833b387 chore(build): auto-generate vimdoc (2 days ago)
ff89319 docs: removed dots from features (2 days ago)
b7bf18a style: spelling (2 days ago)
66dad89 chore(build): auto-generate vimdoc (2 days ago)
0c0b8b7 docs: todo (2 days ago)
92fd0d4 docs: updated installation and structuring plugins (2 days ago)
1baa92f docs: added docs on <cr> and <K> (2 days ago)
d827d8a docs: collapse semver examples (2 days ago)
1e16363 chore(build): auto-generate vimdoc (2 days ago)
980cfa9 docs: added config example when not using a Nerd Font (2 days ago)
713dcb6 build: added markdownlint config (2 days ago)
706fe6f chore(build): auto-generate vimdoc (2 days ago)
5ed9855 feat: added completion for all lazy commands (2 days ago)
b462787 docs: added optional plugins to docs for commands and methods (2 days ago)
f29f3d2 chore(build): auto-generate vimdoc (2 days ago)
1efa710 feat: added module=false to skip auto-loading of plugins on require (2 days ago)
55d194c chore(build): auto-generate vimdoc (2 days ago)
bac34cc docs: added section on uninstalling (2 days ago)
c065ca2 chore(build): auto-generate vimdoc (2 days ago)
2dd6230 feat: added :Lazy load foobar.nvim to load a plugin (2 days ago)
8a0da3b config: move lazy cache to state/nvim/lazy/cache (2 days ago)
7eb6034 chore(build): auto-generate vimdoc (2 days ago)
6567580 chore: todo (2 days ago)
6f00cde docs: typos (2 days ago)
faac2dd perf(cache): cache loadfile and no find modpaths without package.loaders (2 days ago)
32f2b71 fix(cache): do a fast check to see if a cached modpath is still valid. find it again otherwise (2 days ago)
1fe43f3 fix(ui): focus Lazy window when auto-installing plugins in VimEnter (2 days ago)
d4aee27 feat!: removed the LazyUpdate etc commands. sub-commands only from now on (2 days ago)
b89e6bf perf: lazy-load the commands available on the lazy module (3 days ago)

Log (2)
● mason.nvim 0.02ms  start
28408c8 Revert "fix(spawn): always expand cmd if PATH is not modified (#773)" (#783) (3 hours ago)
8240d7d fix(powershell): use pwsh if available (#782) (5 hours ago)
dd04b41 fix(spawn): always expand cmd if PATH is not modified (#773) (26 hours ago)
f21b829 chore: update generated code (#780) (30 hours ago)
d265534 feat(expr): use same context for value & filter evaluation (#778) (32 hours ago)
2531376 feat(functional): add trim_start and assoc (#779) (32 hours ago)
ca77c84 feat: add expr module (#775) (2 days ago)
3ccd16b feat(registry): add nil (#774) (2 days ago)
582fe9e feat(functional): add list.reduce (#772) (2 days ago)
2db93f7 fix(functional): spread function args in _.apply (#770) (2 days ago)
e1556b8 Revert "chore: use pwsh instead of powershell (#706)" (#769) (2 days ago)
20eedd7 chore: update generated code (#768) (2 days ago)

● null-ls.nvim 0.1ms  start
    db1c7cb chore: autogen metadata and docs (2 days ago)
    6c80a53 feat: add `standardts` builtin formatting (#1303) (2 days ago)
    52fe59b chore: autogen metadata and docs (2 days ago)
    45cdd7c feat(builtins): add gomodifytags support in code actions (#1294) (2 days ago)
    f1182c2 refactor: use native neovim 0.8 fs utils (#1166) (3 days ago)

Clean (1)
○ lazy.nvim

Loaded (1)
● mason-null-ls.nvim 0.03ms  start

repro.lua
local root = vim.fn.fnamemodify("./.repro", ":p")

-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
	vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end

-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
	vim.fn.system({
		"git",
		"clone",
		"--filter=blob:none",
		"--single-branch",
		"https://github.com/folke/lazy.nvim.git",
		lazypath,
	})
end
vim.opt.runtimepath:prepend(lazypath)

-- install plugins
local plugins = {
	"williamboman/mason.nvim",
	"jose-elias-alvarez/null-ls.nvim",
	"jayp0521/mason-null-ls.nvim",
}
require("lazy").setup(plugins, {
	root = root .. "/plugins",
})

-- add anything else here
vim.opt.termguicolors = true
state/nvim/lazy/readme/doc/mason-null-ls.nvim.md
`mason-null-ls` bridges `mason.nvim` with the `null-ls` plugin - making it easier to use both plugins together.


# Introduction

`mason-null-ls.nvim` closes some gaps that exist between `mason.nvim` and `null-ls`. Its main responsibilities are:

-   provide extra convenience APIs such as the `:NullLsInstall` command
-   allow you to (i) automatically install, and (ii) automatically set up a predefined list of sources
-   translate between `null-ls` source names and `mason.nvim` package names (e.g. `haml_lint` <-> `haml-lint`)

It is recommended to use this extension if you use `mason.nvim` and `null-ls`.
Please read the whole README.md before jumping to [Setup](#setup).

**Note: this plugin uses the `null-ls` source names in the APIs it exposes - not `mason.nvim` package names.


# Requirements

-   neovim `>= 0.7.0`
-   [`mason.nvim`](https://github.com/williamboman/mason.nvim)
-   [`null-ls.nvim`](https://github.com/jose-elias-alvarez/null-ls.nvim)


# Installation

## [Packer](https://github.com/wbthomason/packer.nvim)

```lua
use {
    "williamboman/mason.nvim",
    "jose-elias-alvarez/null-ls.nvim",
    "jayp0521/mason-null-ls.nvim",
}
```

## vim-plug

```vim
Plug 'williamboman/mason.nvim'
Plug 'jose-elias-alvarez/null-ls.nvim'
Plug 'jayp0521/mason-null-ls.nvim'
```

# Commands

Available after calling `setup`.

-   `:NullInstall [...]` - installs the provided sources
-   `:NullUninstall  ...` - uninstalls the provided sources


# Configuration

You may optionally configure certain behavior of `mason-null-ls.nvim` when calling the `.setup()` function. Refer to
the [default configuration](#default-configuration) for a list of all available settings.

Example:

```lua
require("mason-null-ls").setup({
    ensure_installed = { "stylua", "jq" }
})
```

## Default configuration

```lua
local DEFAULT_SETTINGS = {
    -- A list of sources to install if they're not already installed.
    -- This setting has no relation with the `automatic_installation` setting.
    ensure_installed = {},
    -- Run `require("null-ls").setup`.
    -- Will automatically install masons tools based on selected sources in `null-ls`.
    -- Can also be an exclusion list.
    -- Example: `automatic_installation = { exclude = { "rust_analyzer", "solargraph" } }`
    automatic_installation = false,

	-- Whether sources that are installed in mason should be automatically set up in null-ls.
	-- Removes the need to set up null-ls manually.
	-- Can either be:
	-- 	- false: Null-ls is not automatically registered.
	-- 	- true: Null-ls is automatically registered.
	-- 	- { types = { SOURCE_NAME = {TYPES} } }. Allows overriding default configuration.
	-- 	Ex: { types = { eslint_d = {'formatting'} } }
	automatic_setup = false,
}
```

# Automatic Setup Usage

Automatic Setup is a need feature that removes the need to configure `null-ls` for supported sources.
Sources found installed in `mason` will automatically be setup for null-ls.

## Example Config

```lua
require("mason").setup()
require("mason-null-ls").setup({
    automatic_setup = true,
})
```

See the Default Configuration section to understand how the default dap configs can be overriden.


# Setup handlers usage

The `setup_handlers()` function provides a dynamic way of setting up sources and any other needed logic, It can also do that during runtime.

**NOTE:** When setting `automatic_setup = true`, the handler function needs to be called at a minimum like:
`require 'mason-null-ls'.setup_handlers()`. When passing in a custom handler function for the the default or a source,
then the automatic_setup function one won't be invoked. See below to keep original functionality inside the custom handler.

```lua
local null_ls = require 'null-ls'

require ('mason-null-ls').setup({
    ensure_installed = {'stylua', 'jq'}
})

require 'mason-null-ls'.setup_handlers {
    function(source_name, methods)
      -- all sources with no handler get passed here
    end,
    stylua = function(source_name, methods)
      null_ls.register(null_ls.builtins.formatting.stylua)
    end,
}

-- will setup any installed and configured sources above
null_ls.setup()
```

# Setup

There are primarily 2 paths to setup.

## Primary Source of Truth is `mason-null-ls`

This involves making sure tools are installed through `mason-null-ls` when available.

```lua
require("mason").setup()
require("mason-null-ls").setup({
    ensure_installed = {
        -- Opt to list sources here, when available in mason.
    },
    automatic_installation = false,
    automatic_setup = true, -- Recommended, but optional
})
require("null-ls").setup(
    sources = {
        -- Anything not supported by mason.
    }
)

require 'mason-null-ls'.setup_handlers() -- If `automatic_setup` is true.
```


## Primary Source of Truth is `null-ls`.
```lua
require("mason").setup()
require("null-ls").setup(
    sources = {
        -- all sources go here.
    }
)
require("mason-null-ls").setup({
    ensure_installed = nil,
    automatic_installation = true,
    automatic_setup = false,
})
```

Note: This is my personal preference.


# Available Null-ls sources


| Filetype                                                                                                                              | Source name            |
|---------------------------------------------------------------------------------------------------------------------------------------|------------------------|
| blade                                                                                                                                 | `blade_formatter`      |
| bzl                                                                                                                                   | `buildifier`           |
| c cpp                                                                                                                                 | `cpplint`              |
| c cpp cs java cuda                                                                                                                    | `clang_format`         |
| clj                                                                                                                                   | `joker`                |
| cs                                                                                                                                    | `csharpier`            |
| django jinja.html htmldjango                                                                                                          | `djlint`               |
| dockerfile                                                                                                                            | `hadolint`             |
| elm                                                                                                                                   | `elm_format`           |
| eruby                                                                                                                                 | `erb_lint`             |
| gitcommit                                                                                                                             | `gitlint`              |
| go                                                                                                                                    | `gofumpt`              |
| go                                                                                                                                    | `goimports`            |
| go                                                                                                                                    | `goimports_reviser`    |
| go                                                                                                                                    | `golangci_lint`        |
| go                                                                                                                                    | `golines`              |
| go                                                                                                                                    | `revive`               |
| go                                                                                                                                    | `staticcheck`          |
| haml                                                                                                                                  | `haml_lint`            |
| javascript typescript                                                                                                                 | `rome`                 |
| javascript javascriptreact typescript typescriptreact                                                                                 | `xo`                   |
| javascript javascriptreact typescript typescriptreact vue                                                                             | `eslint_d`             |
| javascript javascriptreact typescript typescriptreact vue css scss less html json jsonc yaml markdown markdown.mdx graphql handlebars | `prettier`             |
| javascript javascriptreact typescript typescriptreact vue css scss less html json jsonc yaml markdown markdown.mdx graphql handlebars | `prettierd`            |
| jinja.html htmldjango                                                                                                                 | `curlylint`            |
| json                                                                                                                                  | `fixjson`              |
| json                                                                                                                                  | `jq`                   |
| kotlin                                                                                                                                | `ktlint`               |
| lua                                                                                                                                   | `luacheck`             |
| lua                                                                                                                                   | `selene`               |
| lua                                                                                                                                   | `stylua`               |
| markdown                                                                                                                              | `alex`                 |
| markdown                                                                                                                              | `markdownlint`         |
| markdown                                                                                                                              | `write_good`           |
| markdown org                                                                                                                          | `cbfmt`                |
| markdown tex                                                                                                                          | `proselint`            |
| markdown tex asciidoc                                                                                                                 | `vale`                 |
| php                                                                                                                                   | `phpcbf`               |
| php                                                                                                                                   | `psalm`                |
| proto                                                                                                                                 | `buf`                  |
| proto                                                                                                                                 | `protolint`            |
| python                                                                                                                                | `autopep8`             |
| python                                                                                                                                | `black`                |
| python                                                                                                                                | `blue`                 |
| python                                                                                                                                | `flake8`               |
| python                                                                                                                                | `isort`                |
| python                                                                                                                                | `mypy`                 |
| python                                                                                                                                | `pylint`               |
| python                                                                                                                                | `vulture`              |
| python                                                                                                                                | `yapf`                 |
| ruby                                                                                                                                  | `rubocop`              |
| ruby                                                                                                                                  | `standardrb`           |
| sh                                                                                                                                    | `shellcheck`           |
| sh                                                                                                                                    | `shellharden`          |
| sh                                                                                                                                    | `shfmt`                |
| solidity                                                                                                                              | `solhint`              |
| sql                                                                                                                                   | `sqlfluff`             |
| sql                                                                                                                                   | `sql_formatter`        |
| toml                                                                                                                                  | `taplo`                |
| vim                                                                                                                                   | `vint`                 |
| yaml                                                                                                                                  | `actionlint`           |
| yaml                                                                                                                                  | `yamlfmt`              |
| yaml                                                                                                                                  | `yamllint`             |
| yaml json                                                                                                                             | `cfn_lint`             |
|                                                                                                                                       | `codespell`            |
|                                                                                                                                       | `cspell`               |
|                                                                                                                                       | `editorconfig_checker` |
|                                                                                                                                       | `misspell`             |
|                                                                                                                                       | `textlint`             |


state/nvim/lazy/readme/doc/tags
!_TAG_FILE_ENCODING	utf-8	//
mason-null-ls.nvim-introduction	mason-null-ls.nvim.md	/# Introduction
mason-null-ls.nvim-requirements	mason-null-ls.nvim.md	/# Requirements
mason-null-ls.nvim-installation	mason-null-ls.nvim.md	/# Installation
mason-null-ls.nvim-packer-https-github-com-wbthomason-packer-nvim	mason-null-ls.nvim.md	/## [Packer](https://github.com/wbthomason/packer.nvim)
mason-null-ls.nvim-vim-plug	mason-null-ls.nvim.md	/## vim-plug
mason-null-ls.nvim-commands	mason-null-ls.nvim.md	/# Commands
mason-null-ls.nvim-configuration	mason-null-ls.nvim.md	/# Configuration
mason-null-ls.nvim-default-configuration	mason-null-ls.nvim.md	/## Default configuration
mason-null-ls.nvim-automatic-setup-usage	mason-null-ls.nvim.md	/# Automatic Setup Usage
mason-null-ls.nvim-example-config	mason-null-ls.nvim.md	/## Example Config
mason-null-ls.nvim-setup-handlers-usage	mason-null-ls.nvim.md	/# Setup handlers usage
mason-null-ls.nvim-setup	mason-null-ls.nvim.md	/# Setup
mason-null-ls.nvim-primary-source-of-truth-is-mason-null-ls	mason-null-ls.nvim.md	/## Primary Source of Truth is `mason-null-ls`
mason-null-ls.nvim-primary-source-of-truth-is-null-ls	mason-null-ls.nvim.md	/## Primary Source of Truth is `null-ls`.
mason-null-ls.nvim-available-null-ls-sources	mason-null-ls.nvim.md	/# Available Null-ls sources
@d12bb d12bb added the bug Something isn't working label Dec 21, 2022
@folke folke closed this as completed in 2fd78fb Dec 21, 2022
@folke
Copy link
Owner

folke commented Dec 21, 2022

This took a while to debug since it worked in my config. Apparantly the tags file needs to be sorted, otherwise tags can't be found unless you have smartcase enabled.

All fixed now

@gotgenes
Copy link

gotgenes commented Jul 14, 2023

I'm still experiencing this issue after updates with lazy.nvim with :h lazy.nvim.txt:

Vim(help):E432: Tags file not sorted: /Users/chris/.local/state/nvim/lazy/readme/doc/tags

I have to manually remove the tags file. The next time lazy.nvim is updated, the error returns.

@folke
Copy link
Owner

folke commented Jul 16, 2023

@gotgenes I can't reproduce this, would be great if you could upload a gist with that tags file, so I can have a look

@folke folke reopened this Jul 16, 2023
@gotgenes
Copy link

@folke Sure thing! https://gist.github.com/gotgenes/5adb3512d8aec5d83c77416ba1e17b6d

I appreciate you taking a look at this.

@folke
Copy link
Owner

folke commented Jul 19, 2023

I still can't reproduce this with that tags file. Did you chnage any settings related to tags? Like 'tagcase'?

@gotgenes
Copy link

Thanks for continuing to look into this:

  • Output from :set tagcase? is tagcase=followic.
  • Output from :set ignorecase? is noignorecase.
  • Output from :set smartcase? is smartcase.

@aaronkollasch
Copy link

I had this issue related to a plugin with a capitalized help tag - looking at your tags file it could be Jenkinsfile. When I removed the rows for that plugin, the error went away.

Without changing the plugin, a fix that worked for me is :set tagcase=ignore.

Before that, I had tagcase=followic, noignorecase, and nosmartcase.

@jalvesaq
Copy link

I'm also seeing this error. In my case, the issue is caused by R-Vim-runtime, and it's fixed if I manually sort the tags file because tags beginning with upper case letters should be at the top of the file. The workaround :set tagcase=ignore also fixes the problem. To replicate the issue, you must have at least one plugin whose name starts with an upper case letter and, maybe, put this in your init.lua (ignorecase is false by default):

vim.o.ignorecase = false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants