-
Notifications
You must be signed in to change notification settings - Fork 155
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
Error SystemStackError
when ruby-lsp tries to index .crt file
#2090
Comments
Added this file to
I suppose this issue happens because I'am indexing everything inside |
Thank you for the issue report. There are certain occasions where you may want to index files with different extensions. For example, we may want to index RBI/RBS files to enhance the index information with type information (currently doesn't work, but it might in the future). I don't believe the index should enforce that all included files must have a Ruby extension. I think the fix here is to restrict your glob pattern to Ruby files. included_patterns:
- ".bundle/**/*.rb" Also, please note that we're discussing the existence of this |
@vinistock Thank you for quick response! But maybe you are right, it is better for the editor to provide this type of information (on what to index) |
They aren't indeed, but trying to handle this from the index would mean some sort of allowlist of file extensions, which may not be worth maintaining or at least it's unclear to me at this moment. If you take a look at the file associations configuration for the VS Code extension, there are numerous extensions that should be associated to Ruby. Which ones should be indexed? For example, what if some Maybe in the future we can be more opinionated about which extensions other than |
Description
Reproduction steps
bundle init
gem 'aws-sdk-core', '3.132.0'
into Gemfilebundle install --path=.bundle
.index.yml
with:ruby-lsp-doctor
stack level too deep (SystemStackError)
errorHere are logs from this run:
The text was updated successfully, but these errors were encountered: