defuz / RustAutoComplete

A SublimeText binding for RACER (Rust auto completion tool)
MIT License
105 stars 20 forks source link

It's not an issue, but a request. #6

Closed denis631 closed 9 years ago

denis631 commented 10 years ago

I've only started today with Rust, so If I'm wrong, or my code is wrong, don't judge me :) As I understood my autocompletion works screenshot from 2014-10-05 15 42 43

Still something is wrong (or maybe rust is updating too quickly :) ), cause when I try to test the code you've written no suggestions are shown (like new, with_hasher etc.) screenshot from 2014-10-05 15 44 11

What I find cool, is that it also searches your current file for autocompletion. That's awesome. It would be great, if autocompletion could show the return type of the function. I'm sure it's a good feature. screenshot from 2014-10-05 15 56 53

No autocompletion for println, or stuff like to_string etc. screenshot from 2014-10-05 16 22 49 screenshot from 2014-10-05 16 23 00

P.S. I didn't want to write it in Issue section, but I couldn't find your mail. Thanks in advance.

glennw commented 10 years ago

Hi, sorry for the delay in replying. The sublime plugin actually just calls RACER (https://github.com/phildawes/racer) to do the completion. It might be worth posting this in the RACER issues list, or perhaps building RACER and running it from the command line to check if there's a bug in the autocomplete tool not parsing the results correctly.

Also - it may be the case that you don't have the right path to the rust library source code in the settings, which may be why it's not completing library functions.

glennw commented 9 years ago

Did you check if you have the right path to the library source code?

denis631 commented 9 years ago

The path is good, since it shows me the autocompletion, just not for everything ... Seems the problem is with Racer, not with the plugin for sublime.

denis631 commented 9 years ago

Will the RustAutoComplete plugin for sublime get this feature, which the author of the racer, wrote in his blog about half a year ago ? http://phildawes.net/blog/ racer4

glennw commented 9 years ago

I don't have time to work on it actively at the moment - PRs are always welcome of course :) I may get some time in the next few months to work on it again.