-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doesn't have completion/docs for core Ruby modules/classes #1772
Comments
I feel like I must be doing something wrong, but I've poked around in settings and in the documentation and for the life of me I can't figure out what it is. |
Our indexer doesn't handle classes defined in C code yet, which is why they are missing. Constants coming from stdlib should be present as long as they're defined in Ruby. We are still exploring which path forward will lead to the best results. We can index RBS files, which contain all core definitions. However, there are gems with native extensions in the ecosystem that do not export RBS files, which would cause us to miss their declarations. We can try indexing the C files from the native extensions using something similar to what RDoc does, but it may still require authors to include the |
This issue is being marked as stale because there was no activity in the last 2 months |
+1 for this feature. I was just about to create an issue ticket. |
Operating System
Ubuntu
Ruby version
3.2
Project has a bundle
Ruby version manager being used
rbenv
Description
Since I started trying to use it, I've never seen the Ruby-LSP extension have autocomplete or docs (as portrayed in the documentation) for core Ruby modules/classes. I recorded this screencast of setting up a brand new Hello World ruby project in a vanilla VSCode Ruby devcontainer to demonstrate:
https://app.screencast.com/nxu9LQIS0YUWO?conversation=RU4ol9HhxOHuW72wMGEoFh
Steps:
IO
,Kernel
,File
...The text was updated successfully, but these errors were encountered: