Skip to content

Error when running RubyLspLog #18

Closed
@christopher-b

Description

@christopher-b

The error:

Error executing Lua callback: ...al/share/nvim/lazy/ruby-lsp.nvim/lua/ruby-lsp/logger.lua:68: 'replacement string' item contains newlines
stack traceback:
        [C]: in function 'nvim_buf_set_lines'
        ...al/share/nvim/lazy/ruby-lsp.nvim/lua/ruby-lsp/logger.lua:68: in function 'show_logs'
        ...ocal/share/nvim/lazy/ruby-lsp.nvim/lua/ruby-lsp/init.lua:98: in function <...ocal/share/nvim/lazy/ruby-lsp.nvim/lua/ruby-lsp/init.lua:97>

In my log file, I noticed \ns at the end of each quoted entry:

[ERROR][2025-04-11 11:17:11] ...p/_transport.lua:36     "rpc"   "/home/cbennell/.local/share/mise/installs/ruby/3.4.1/bin/ruby-lsp"     "stderr"        "The Gemfile's dependencies are satisfied\n"

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