Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

autocomplete not working inside methods #72

Closed
didacusAbella opened this issue Sep 28, 2016 · 11 comments
Closed

autocomplete not working inside methods #72

didacusAbella opened this issue Sep 28, 2016 · 11 comments
Assignees
Labels
autocomplete feature-request Adds currently unsupported functionality

Comments

@didacusAbella
Copy link

didacusAbella commented Sep 28, 2016

Your environment

  • vscode-ruby version: 0.8.0
  • Ruby version: 2.3.1p112
  • VS Code version: 1.5.3
  • Operating System: AntergosOS
  • Hardware (optional):

Make sure you have ruby, ruby-debug-ide and ruby-debug-basex19 installed before submitting your issue -- thank you !

Expected behavior

when i use a variable and call autocomplete it should list all methods of this variable

Actual behavior

autocomplete work only if the variable is outside the method

Steps to reproduce the problem

[1, 2, 3].e => inside a method does nothing
[1, 2, 3].e => outside methods autocomplete works as expected

@didacusAbella didacusAbella changed the title autocomplete working only outside class and methods autocomplete not working inside methods Sep 28, 2016
@HookyQR
Copy link
Contributor

HookyQR commented Oct 15, 2016

Seems rctools hasn't lived up to what we were hoping for. It's all we have right now, sorry.

@Mexxerio
Copy link

@HookyQR Did you look into using https://github.com/rsense/rsense instead of rctools?

@HookyQR
Copy link
Contributor

HookyQR commented Oct 16, 2016

@rebornix was looking into this early on. I have been focusing on staying an implementation that doesn't have to rely on ruby calls. That's a long way off though.

Pinging @mattn and @rebornix for this.

@sunnyrjuneja
Copy link

Just as a heads up, rsense is very dead. In case you're ready to maintain the project, I don't think it's worth integrating.

Not to hijack this thread but I just want to know if you can point me to where rctools is hosted. I did a quick google search and couldn't find anything.

@mattn
Copy link
Contributor

mattn commented Nov 3, 2016

Currently, I'm contributor of rcodetools. But still not fixed. Patches welcome!

https://github.com/rcodetools/rcodetools

@dgutov
Copy link

dgutov commented Nov 15, 2016

If I'm reading rcodetools' documentation right, it expects to be able to hook into your tests, and run the tests corresponding to the current class during completion, to analyze its methods.

Example: https://github.com/rcodetools/rcodetools/blob/8ac2a25c975d7377c10822b0159c43b3b5401340/test/data/rct-complete-TDC/completion_in_method__testscript.taf

Not sure I like this approach, personally.

@didacusAbella
Copy link
Author

Are there any updates for resolve this problem?

@rebornix rebornix added the feature-request Adds currently unsupported functionality label Aug 13, 2017
@hackhowtofaq
Copy link

FYI I find this promising https://github.com/castwide/solargraph

@castwide
Copy link
Contributor

castwide commented Feb 1, 2018

#248 should resolve this issue.

@mattn
Copy link
Contributor

mattn commented Feb 1, 2018

@castwide thank you. After I sent PR to enable completion on vscode with rcodetools, I became the maintainer of rcodetools, but since it is too old and flaky, I had hesitant to release fix.

@didacusAbella
Copy link
Author

Perfect. I'm very happy that @castwide extension is used in combination with this project. I close the issue because the problem is solved

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
autocomplete feature-request Adds currently unsupported functionality
Projects
None yet
Development

No branches or pull requests

9 participants