Skip to content

semantic_tokens.lua:111: attempt to index local 'request' (a nil value) #36774

@petersid2022

Description

@petersid2022

Problem

Hello everyone, I have been getting this error message:

vim.schedule callback: ...local/share/nvim/runtime/lua/vim/lsp/semantic_tokens.lua:322: ...local/share/nvim/runti
me/lua/vim/lsp/semantic_tokens.lua:111: attempt to index local 'request' (a nil value)
stack traceback:
        [builtin#36]: at 0x6302c8b64250
        ...local/share/nvim/runtime/lua/vim/lsp/semantic_tokens.lua:322: in function 'handler'
        /usr/local/share/nvim/runtime/lua/vim/lsp/client.lua:752: in function ''
        vim/_editor.lua: in function <vim/_editor.lua:0>

multiple times per session (mainly when I use the language server but once it gets triggered once it keeps happening even when I scroll around).

It seems to be related to this 23ddb20

My nvim config is very simple:
https://gist.github.com/petersid2022/c17ce2adeb77f358d215df5e23885c04

Thanks in advance!

Steps to reproduce

  • Build neovim on 5299967
  • Have a working language server config.
  • Open file, let the language server attach to it properly and do something like vim.lsp.buf.definition()

Expected behavior

This shouldn't be happening :)

Nvim version (nvim -v)

v0.12.0-dev-1733+g5299967551

Vim (not Nvim) behaves the same?

no

Operating system/version

Ubuntu 24.04.3 LTS (wsl2, kernel 6.6.87.2-microsoft-standard-WSL2)

Terminal name/version

Windows Terminal Preview using tmux next-3.7

$TERM environment variable

tmux-256color

Installation

Build from source

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions