Closed datanoise closed 2 years ago
After a bit of digging it seems that it is caused by leftover printouts in the code:
lib/solargraph/source.rb line 48:
def initialize code, filename = nil, version = 0
@code = normalize(code)
@repaired = code
@filename = filename
@version = version
@domains = []
begin
@node, @comments = Solargraph::Parser.parse_with_comments(@code, filename)
@parsed = true
rescue Parser::SyntaxError, EncodingError => e
-> puts "[#{e.class}] #{e.message}"
-> puts e.backtrace
@node = nil
@comments = {}
@parsed = false
ensure
@code.freeze
end
end
Interestingly, I don't see these two puts
are committed in the repository but they are in the published gem file.
Sorry about that. Those should output to a proper logger instead. I'll fix it in a patch ASAP.
I'm not sure how that code wound up in the release (it's not even in my local repo), but it's removed in v0.47.1.
The version 0.47 breaks neovim lsp client when you type colon between brackets:
type
:
results: