Skip to content
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

Failed to start Solargraph: Error: [IndexError] index 268435456 too big #656

Open
Goniff opened this issue May 8, 2023 · 2 comments
Open

Comments

@Goniff
Copy link

Goniff commented May 8, 2023

Hello,

I was trying out Solargraph in VScode today and ran into the above issue. I've tried several solutions I found online, and none of them helped. I wish I could provide more information

I have looked at both:

@adamlwatson
Copy link

Having this same issue. I've add the "max_files: 0" option to the .solargraph.yml file to no avail. Anyone know of a fix for this?

@castwide
Copy link
Owner

This appears to be a limitation of array sizes in Ruby. I can reproduce the error in irb like this:

irb(main):001:0> x = Array.new
=> []
irb(main):002:0> x[268_435_456] = 0
(irb):2:in `<main>': index 268435456 too big (IndexError)
        from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/irb-1.6.3/exe/irb:9:in `<top (required)>'
        from C:/Ruby31-x64/bin/irb:25:in `load'
        from C:/Ruby31-x64/bin/irb:25:in `<main>'

If you can provide a stack trace or a repo that causes the error, I might be able to find a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants