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
{{ message }}
Repository navigation
Completion on user-defined functions doesn't work. #27
But why this limitation (the server only caches user functions when a file is opened or saved)? Other language servers I have worked on don't require this.
Is it possible/does it make sense to make it in-memory as well?
It is partly because R is unfortunately too slow. And a more economical reason is to save cpu power. Caching functions on the fly requires a lot of cpu power (related to R being slow). It is particularly important for laptop users.
With that said, it is totally possible to make a setting to allow online caching. I am not a big fan of it and I would still recommend users turning it off, even if it exists, to save battery life.
It would be expensive at the moment to cache workspace symbols on every key stroke. I'm wondering if it makes sense and if it's possible to cache every N seconds, something like cache interval option?
Activity
randy3k commentedon Aug 27, 2018
Ya, it is supported in v0.2.4.
randy3k commentedon Aug 27, 2018
Ai, there are actually a few bugs in v0.2.4. Please install the current master and try again.
I will publish another release in a week.
hifall commentedon Aug 27, 2018
So glad to see that this feature will be improved soon.
Awesome stuff! 👍
randy3k commentedon Aug 27, 2018
Actually, I just picked up the development today, langauageserver has not been updated for a while.
hifall commentedon Aug 27, 2018
I see.
I think this project definitely brings much value to many members of the R community. It certainly does to me.
hifall commentedon Sep 10, 2018
Now that 0.2.5 is released, is this supposed to be fixed?
randy3k commentedon Sep 10, 2018
It has not yet submitted to CRAN because CRAN was off. You need to install it via GitHub for now.
hifall commentedon Sep 10, 2018
Okay. I will wait until it's on CRAN then.
randy3k commentedon Sep 11, 2018
V0.2.5 is out
hifall commentedon Sep 11, 2018
Doesn't seem working for me -- still unable to see a user-defined function appear in the completion list.
randy3k commentedon Sep 11, 2018
It works for me. Note that the server only caches user functions when a file is opened or saved.
hifall commentedon Sep 12, 2018
I see.
But why this limitation (the server only caches user functions when a file is opened or saved)? Other language servers I have worked on don't require this.
Is it possible/does it make sense to make it in-memory as well?
randy3k commentedon Sep 12, 2018
It is partly because R is unfortunately too slow. And a more economical reason is to save cpu power. Caching functions on the fly requires a lot of cpu power (related to R being slow). It is particularly important for laptop users.
With that said, it is totally possible to make a setting to allow online caching. I am not a big fan of it and I would still recommend users turning it off, even if it exists, to save battery life.
renkun-ken commentedon Sep 10, 2019
It would be expensive at the moment to cache workspace symbols on every key stroke. I'm wondering if it makes sense and if it's possible to cache every N seconds, something like cache interval option?
renkun-ken commentedon Dec 9, 2019
1e1c74d should fix this.