You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
...solargraph somehow gets confused about the arity of print_reverse, and throws an error Not enough arguments to #print_reverse (please ignore the typo in the documentation comment...):
The additional comma in the signature indicates that solargraph believes that there is indeed an invisible second argument to print_reverse. I'm not that familiar with ruby so there might actually be, however the code above works fine for me, and prints c\nb\na\n as expected, so I guess it's acceptable ruby?
(This is lsp-mode in emacs, I don't know how to trigger the behaviour at the cli alone, sorry)
The issue happened to me for various functions, all using for-loops in a bigger project.
I'm not 100% sure whether this is a valid bug or what information you need in detail, so please do ping me if you need more information.
Hello,
Thank you for this nice languageserver!
When analyzing the following code:
...solargraph somehow gets confused about the arity of
print_reverse
, and throws an errorNot enough arguments to #print_reverse
(please ignore the typo in the documentation comment...):The additional comma in the signature indicates that solargraph believes that there is indeed an invisible second argument to
print_reverse
. I'm not that familiar with ruby so there might actually be, however the code above works fine for me, and printsc\nb\na\n
as expected, so I guess it's acceptable ruby?(This is lsp-mode in emacs, I don't know how to trigger the behaviour at the cli alone, sorry)
The issue happened to me for various functions, all using
for
-loops in a bigger project.I'm not 100% sure whether this is a valid bug or what information you need in detail, so please do ping me if you need more information.
Thank you for taking interest,
Simon
Additional Information:
ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-linux]
0.39.13
26.3
, lsp-mode20200804.1536
Edit: Forgot to add my
.solargraph.yml
. Basically the default one, but withtypecheck:typed
:The text was updated successfully, but these errors were encountered: