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
Error detected while processing BufWinEnter Autocommands for "*": #3330
Comments
@lmckiwo Could you please check again with the latest |
Beautiful! Thank you very much! |
Hey @lmckiwo @cpea2506 I'm getting the exact same issue when trying to open Dockerfiles that have Error detected while processing nvim_exec()..BufWinEnter Autocommands for "*":
E5108: Error executing lua ...rvim/site/pack/packer/start/lir.nvim/lua/lir/actions.lua:68: Vim(append):E5248: Invalid character in group name
stack traceback:
[C]: in function 'cmd'
...rvim/site/pack/packer/start/lir.nvim/lua/lir/actions.lua:68: in function 'func'
...vim/site/pack/packer/start/lir.nvim/lua/lir/mappings.lua:60: in function 'execute_keymap'
[string ":lua"]:1: in main chunk
Press ENTER or type command to continue
LunarVim version
Neovim version (>= 0.8.0)NVIM v0.8.1
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by brew@Monterey
Features: +acl +iconv +tui
See ":help feature-compile"
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/usr/local/Cellar/neovim/0.8.1/share/nvim" Operating system/versionMacOS Monterey 12.6.1 Steps to reproduce
Support info Language client log: /Users/patrick.mazulo/.local/state/nvim/lsp.log
Detected filetype: dockerfile
1 client(s) attached to this buffer:
Client: dockerls (id: 1, pid: nil, bufnr: [1])
filetypes: dockerfile
autostart: true
root directory: Running in single file mode.
cmd: docker-langserver --stdio
Configured servers list: dockerls, pyright __ _ ___
/ / __ ______ ____ _____| | / (_)___ ___
/ / / / / / __ \/ __ `/ ___/ | / / / __ `__ \
/ /___/ /_/ / / / / /_/ / / | |/ / / / / / / /
/_____/\__,_/_/ /_/\__,_/_/ |___/_/_/ /_/ /_/
Buffer info
* filetype:
* bufnr: 4
* treesitter status: inactive
Active client(s)
* name: dockerls
* id: 1
* supported filetype(s): dockerfile
* attached buffers: 1
* root_dir pattern: 1
* capabilities: foldingRangeProvider | documentFormattingProvider | documentSymbolProvider
definitionProvider | hoverProvider | codeActionProvider
documentHighlightProvider | documentRangeFormattingProvider
Automatic LSP info
* Skipped servers: [angularls, ansiblels, csharp_ls, cssmodules_ls, denols, ember, emmet_ls, eslint, glint, golangci_lint_ls, gradle_ls, graphql, jedi_language_server, ltex, phpactor, psalm, pylsp, quick_lint_js, reason_ls, rome, ruby_ls, solang, solc, sorbet, sourcery, sqlls, sqls, stylelint_lsp, svlangserver, tflint, verible, vuels]
Formatters info
* Active:
* Supported: []
Linters info
* Active:
* Supported: []
Code actions info
* Active: # Had to format a little this log since it was containing some sensitive information
cat ~/.local/state/nvim/lsp.log
[INFO][2023-03-02 13:08:17] .../lua/vim/lsp.lua:1336 "LSP[dockerls]" "server_capabilities" { server_capabilities = { codeActionProvider = true, completionProvider = { resolveProvider = true, triggerCharacters = { "=", " ", "$", "-" } }, definitionProvider = true, documentFormattingProvider = true, documentHighlightProvider = true, documentLinkProvider = { resolveProvider = true }, documentOnTypeFormattingProvider = { firstTriggerCharacter = "\\", moreTriggerCharacter = { "`" } }, documentRangeFormattingProvider = true, documentSymbolProvider = true, executeCommandProvider = { commands = { "docker.command.convertToLowercase", "docker.command.convertToUppercase", "docker.command.removeExtraArgument", "docker.command.directiveToBackslash", "docker.command.directiveToBacktick", "docker.command.flagToChown", "docker.command.flagToCopyFrom", "docker.command.flagToHealthcheckInterval", "docker.command.flagToHealthcheckRetries", "docker.command.flagToHealthcheckStartPeriod", "docker.command.flagToHealthcheckTimeout", "docker.command.convertToAS", "docker.command.removeEmptyContinuationLine" } }, foldingRangeProvider = true, hoverProvider = true, renameProvider = { prepareProvider = true }, signatureHelpProvider = { triggerCharacters = { "-", "[", ",", " ", "=" } }, textDocumentSync = { change = 2, openClose = true, save = { includeText = false }, willSave = false, willSaveWaitUntil = false } }}
[DEBUG][2023-03-02 13:08:17] .../vim/lsp/rpc.lua:285 "rpc.send" { jsonrpc = "2.0", method = "textDocument/didOpen", params = { textDocument = { languageId = "dockerfile", text = '# syntax=docker/dockerfile:1.3\nFROM local/my-image:build as project-consumer\n\nWORKDIR /app\n\nENV SERVICE=project-consumer\n\nCOPY . .\nENV PYTHONPATH "${PYTHONPATH}:/app"\n\nENTRYPOINT ["python3", "-m", consumer.main"]\n\nFROM project-consumer as project-consumer-dev\n\nRUN --mount=type=cache,target=/root/.cache/pip,id=pip \\\n pip install --upgrade pip && \\\n pip install --cache-dir /root/.cache/pip -r requirements/dev.txt \\n\n\nRUN rm -rf ./requirements\n', uri = "file:///Users/mazulo/Dev/project/my_project/docker/Dockerfile.project-web-frontend", version = 0 } }}
[DEBUG][2023-03-02 13:08:17] .../vim/lsp/rpc.lua:388 "rpc.receive" { id = 0, jsonrpc = "2.0", method = "client/registerCapability", params = { registrations = { { id = "13720c91-9323-4a90-b605-d37fa7bb9c6e", method = "workspace/didChangeConfiguration", registerOptions = vim.empty_dict() } } }}
[DEBUG][2023-03-02 13:08:17] .../vim/lsp/rpc.lua:388 "rpc.receive" { id = 1, jsonrpc = "2.0", method = "workspace/configuration", params = { items = { { scopeUri = "file:///Users/mazulo/Dev/project/my_project/docker/Dockerfile.project-web-frontend", section = "docker.languageserver.diagnostics" } } }}
[DEBUG][2023-03-02 13:08:17] .../lua/vim/lsp.lua:1381 "LSP[dockerls]" "client.request" 1 "textDocument/documentSymbol" { textDocument = { uri = "file:///Users/mazulo/Dev/project/my_project/docker/Dockerfile.project-web-frontend" }} <function 1> 1
[DEBUG][2023-03-02 13:08:17] .../vim/lsp/rpc.lua:285 "rpc.send" { id = 2, jsonrpc = "2.0", method = "textDocument/documentSymbol", params = { textDocument = { uri = "file:///Users/mazulo/Dev/project/my_project/docker/Dockerfile.project-web-frontend" } }}
[WARN][2023-03-02 13:08:17] ...lsp/handlers.lua:113 "The language server dockerls triggers a registerCapability handler despite dynamicRegistration set to false. Report upstream, this warning is harmless"
[DEBUG][2023-03-02 13:08:17] .../vim/lsp/rpc.lua:403 "server_request: callback result" { result = vim.NIL, status = true}
[DEBUG][2023-03-02 13:08:17] .../vim/lsp/rpc.lua:285 "rpc.send" { id = 0, jsonrpc = "2.0", result = vim.NIL}
[DEBUG][2023-03-02 13:08:17] .../vim/lsp/rpc.lua:403 "server_request: callback result" { result = { vim.NIL }, status = true}
[DEBUG][2023-03-02 13:08:17] .../vim/lsp/rpc.lua:285 "rpc.send" { id = 1, jsonrpc = "2.0", result = { vim.NIL }}
[DEBUG][2023-03-02 13:08:17] .../vim/lsp/rpc.lua:388 "rpc.receive" { id = 2, jsonrpc = "2.0", result = { { kind = 7, location = { range = { ["end"] = { character = 8, line = 0 }, start = { character = 2, line = 0 } }, uri = "file:///Users/mazulo/Dev/project/my_project/docker/Dockerfile.project-web-frontend" }, name = "syntax" }, { kind = 12, location = { range = { ["end"] = { character = 4, line = 1 }, start = { character = 0, line = 1 } }, uri = "file:///Users/mazulo/Dev/project/my_project/docker/Dockerfile.project-web-frontend" }, name = "FROM" }, { kind = 12, location = { range = { ["end"] = { character = 7, line = 3 }, start = { character = 0, line = 3 } }, uri = "file:///Users/mazulo/Dev/project/my_project/docker/Dockerfile.project-web-frontend" }, name = "WORKDIR" }, { kind = 12, location = { range = { ["end"] = { character = 3, line = 5 }, start = { character = 0, line = 5 } }, uri = "file:///Users/mazulo/Dev/project/my_project/docker/Dockerfile.project-web-frontend" }, name = "ENV" }, { kind = 12, location = { range = { ["end"] = { character = 3, line = 7 }, start = { character = 0, line = 7 } }, uri = "file:///Users/mazulo/Dev/project/my_project/docker/Dockerfile.project-web-frontend" }, name = "ARG" }, { kind = 12, location = { range = { ["end"] = { character = 3, line = 8 }, start = { character = 0, line = 8 } }, uri = "file:///Users/mazulo/Dev/project/my_project/docker/Dockerfile.project-web-frontend" }, name = "ARG" }, { kind = 12, location = { range = { ["end"] = { character = 4, line = 10 }, start = { character = 0, line = 10 } }, uri = "file:///Users/mazulo/Dev/project/my_project/docker/Dockerfile.project-web-frontend" }, name = "COPY" }, { kind = 12, location = { range = { ["end"] = { character = 3, line = 11 }, start = { character = 0, line = 11 } }, uri = "file:///Users/mazulo/Dev/project/my_project/docker/Dockerfile.project-web-frontend" }, name = "ENV" }, { kind = 12, location = { range = { ["end"] = { character = 10, line = 13 }, start = { character = 0, line = 13 } }, uri = "file:///Users/mazulo/Dev/project/my_project/docker/Dockerfile.project-web-frontend" }, name = "ENTRYPOINT" }, { kind = 12, location = { range = { ["end"] = { character = 4, line = 15 }, start = { character = 0, line = 15 } }, uri = "file:///Users/mazulo/Dev/project/my_project/docker/Dockerfile.project-web-frontend" }, name = "FROM" }, { kind = 12, location = { range = { ["end"] = { character = 3, line = 17 }, start = { character = 0, line = 17 } }, uri = "file:///Users/mazulo/Dev/project/my_project/docker/Dockerfile.project-web-frontend" }, name = "RUN" }, { kind = 12, location = { range = { ["end"] = { character = 3, line = 28 }, start = { character = 0, line = 28 } }, uri = "file:///Users/mazulo/Dev/project/my_project/docker/Dockerfile.project-web-frontend" }, name = "RUN" } }}
[DEBUG][2023-03-02 13:08:17] .../vim/lsp/rpc.lua:388 "rpc.receive" { jsonrpc = "2.0", method = "textDocument/publishDiagnostics", params = { diagnostics = {}, uri = "file:///Users/mazulo/Dev/project/my_project/docker/Dockerfile.project-web-frontend" }}
[DEBUG][2023-03-02 13:08:22] .../vim/lsp/rpc.lua:388 "rpc.receive" { jsonrpc = "2.0", method = "$/status/report", params = { text = "😺Lua", tooltip = "Workspace : /Users/mazulo/.local/share/lunarvim/lvim\nCached files: 353/353\nMemory usage: 162M" }}
[DEBUG][2023-03-02 13:09:27] .../lua/vim/lsp.lua:1381 "LSP[dockerls]" "client.request" 1 "textDocument/documentSymbol" { textDocument = { uri = "file:///Users/mazulo/Dev/project/my_project/docker/Dockerfile.project-web-frontend" }} <function 1> 1
[DEBUG][2023-03-02 13:09:27] .../vim/lsp/rpc.lua:285 "rpc.send" { id = 3, jsonrpc = "2.0", method = "textDocument/documentSymbol", params = { textDocument = { uri = "file:///Users/mazulo/Dev/project/my_project/docker/Dockerfile.project-web-frontend" } }}
[DEBUG][2023-03-02 13:09:27] .../vim/lsp/rpc.lua:388 "rpc.receive" { id = 3, jsonrpc = "2.0", result = { { kind = 7, location = { range = { ["end"] = { character = 8, line = 0 }, start = { character = 2, line = 0 } }, uri = "file:///Users/mazulo/Dev/project/my_project/docker/Dockerfile.project-web-frontend" }, name = "syntax" }, { kind = 12, location = { range = { ["end"] = { character = 4, line = 1 }, start = { character = 0, line = 1 } }, uri = "file:///Users/mazulo/Dev/project/my_project/docker/Dockerfile.project-web-frontend" }, name = "FROM" }, { kind = 12, location = { range = { ["end"] = { character = 7, line = 3 }, start = { character = 0, line = 3 } }, uri = "file:///Users/mazulo/Dev/project/my_project/docker/Dockerfile.project-web-frontend" }, name = "WORKDIR" }, { kind = 12, location = { range = { ["end"] = { character = 3, line = 5 }, start = { character = 0, line = 5 } }, uri = "file:///Users/mazulo/Dev/project/my_project/docker/Dockerfile.project-web-frontend" }, name = "ENV" }, { kind = 12, location = { range = { ["end"] = { character = 3, line = 7 }, start = { character = 0, line = 7 } }, uri = "file:///Users/mazulo/Dev/project/my_project/docker/Dockerfile.project-web-frontend" }, name = "ARG" }, { kind = 12, location = { range = { ["end"] = { character = 3, line = 8 }, start = { character = 0, line = 8 } }, uri = "file:///Users/mazulo/Dev/project/my_project/docker/Dockerfile.project-web-frontend" }, name = "ARG" }, { kind = 12, location = { range = { ["end"] = { character = 4, line = 10 }, start = { character = 0, line = 10 } }, uri = "file:///Users/mazulo/Dev/project/my_project/docker/Dockerfile.project-web-frontend" }, name = "COPY" }, { kind = 12, location = { range = { ["end"] = { character = 3, line = 11 }, start = { character = 0, line = 11 } }, uri = "file:///Users/mazulo/Dev/project/my_project/docker/Dockerfile.project-web-frontend" }, name = "ENV" }, { kind = 12, location = { range = { ["end"] = { character = 10, line = 13 }, start = { character = 0, line = 13 } }, uri = "file:///Users/mazulo/Dev/project/my_project/docker/Dockerfile.project-web-frontend" }, name = "ENTRYPOINT" }, { kind = 12, location = { range = { ["end"] = { character = 4, line = 15 }, start = { character = 0, line = 15 } }, uri = "file:///Users/mazulo/Dev/project/my_project/docker/Dockerfile.project-web-frontend" }, name = "FROM" }, { kind = 12, location = { range = { ["end"] = { character = 3, line = 17 }, start = { character = 0, line = 17 } }, uri = "file:///Users/mazulo/Dev/project/my_project/docker/Dockerfile.project-web-frontend" }, name = "RUN" }, { kind = 12, location = { range = { ["end"] = { character = 3, line = 28 }, start = { character = 0, line = 28 } }, uri = "file:///Users/mazulo/Dev/project/my_project/docker/Dockerfile.project-web-frontend" }, name = "RUN" } }}
[DEBUG][2023-03-02 13:09:34] .../lua/vim/lsp.lua:1381 "LSP[dockerls]" "client.request" 1 "textDocument/documentHighlight" { position = { character = 24, line = 28 }, textDocument = { uri = "file:///Users/mazulo/Dev/project/my_project/docker/Dockerfile.project-web-frontend" }} <function 1> 1
[DEBUG][2023-03-02 13:09:34] .../vim/lsp/rpc.lua:285 "rpc.send" { id = 4, jsonrpc = "2.0", method = "textDocument/documentHighlight", params = { position = { character = 24, line = 28 }, textDocument = { uri = "file:///Users/mazulo/Dev/project/my_project/docker/Dockerfile.project-web-frontend" } }}
[DEBUG][2023-03-02 13:09:34] .../vim/lsp/rpc.lua:388 "rpc.receive" { id = 4, jsonrpc = "2.0", result = {}} Screenshots |
Problem description
After installation, I've noticed that for certain filenames, i get the following error:
Error detected while processing BufWinEnter Autocommands for "*":
E5248: Invalid character in group name
Error executing lua callback: ....local/share/lunarvim/lvim/lua/lvim/core/breadcrumbs.lua:107: Invalid highlight name: FileIconColordevops-tools
stack traceback:
[C]: in function 'nvim_set_hl'
....local/share/lunarvim/lvim/lua/lvim/core/breadcrumbs.lua:107: in function 'get_filename'
....local/share/lunarvim/lvim/lua/lvim/core/breadcrumbs.lua:173: in function 'get_winbar'
....local/share/lunarvim/lvim/lua/lvim/core/breadcrumbs.lua:218: in function <....local/share/lunarvim/lvim/lua/lvim/core/breadcrumbs.lua:214>
Error in packer_compiled: ...m/site/pack/packer/start/packer.nvim/lua/packer/load.lua:110: Vim(append):E5248: Invalid character in group name
Please check your config for correctness
I can't really isolate what the issue is, but this seems to be happening with my Dockerfile name only..
lvim Dockerfile.ops <-- is ok, no error.
lvim Dockerfile.ops-1 <-- error
lvim Dockerfile.ops_1 <-- is ok, no error.
At first, i thought it is the hyphen, but i've tested this with "non Dockerfile" names, and they are fine.
LunarVim version
rolling-b6dd175
Neovim version (>= 0.8.0)
NVIM v0.8.0-1210-gd367ed9b2
Operating system/version
Ubuntu 20.04
Steps to reproduce
support info
Screenshots
No response
The text was updated successfully, but these errors were encountered: