-
Notifications
You must be signed in to change notification settings - Fork 286
Having two while-loops in a file breaks symbol location #444
Comments
I am not against switching to your fork in the interim. I'd like it to be published to NPM though. FYI I am not planning on supporting |
@peret sorry if that was unclear. If you can publish your fork to NPM we can switch the project to use it (you can submit a PR for that too!) |
Whoops, definitely didn't mean to close this issue 😅 Looks like I just randomly hit the button. |
ruby-method-locate 0.0.6 has been published. Thanks for your PR @peret. Sorry it took SOOOO long. |
Sweet, I'll get it updated here |
The extension will need a version bump (post |
Yes I know |
You're just too quick for me. 😉 |
Your environment
vscode-ruby
version: 0.20.0Expected behavior
vscode-ruby can locate all method names in a file.
Actual behavior
Under some conditions, when using rubyLocate for locating symbols, not all symbols are listed. E.g. in this file:
the extension will not find
second_method
for symbol lookup. If you remove one of the while-loops, it'll work. I tracked this down to a bug in the parsing of while(-modifiers) in ruby-method-locate and also provided a fix: HookyQR/ruby-method-locate#1Unfortunately, it looks like that repository might not be maintained anymore? It looks like @HookyQR used to be a contributor to this repo as well, but wasn't active in a while?
I'm creating this issue here because it's really annoying behavior in vscode-ruby and I want to move this along.
For example, would you be willing to use my fork of ruby-method-locate, if we can't get the PR in the original repo merged?
Thanks!
The text was updated successfully, but these errors were encountered: