-
-
Notifications
You must be signed in to change notification settings - Fork 158
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
Ci against ruby27 #253
Ci against ruby27 #253
Conversation
RSpec fails with Ruby 2.7. https://travis-ci.org/castwide/solargraph/jobs/629586594#L915-L927 Failures:
916
917 1) Solargraph::TypeChecker ignores undefined return types from external libraries
918 Failure/Error: expect(checker.strict_type_problems).to be_empty
919 expected `[#<Solargraph::TypeChecker::Problem:0x0000000003b2ce30 @location=#<Solargraph::Location test.rb, #<So...tion 5, 27>>>, @message="Unresolved method signature Benchmark.measure", @pin=nil, @suggestion=nil>].empty?` to return true, got false
920 # ./spec/type_checker_spec.rb:187:in `block (2 levels) in <top (required)>'
921
922Finished in 24.61 seconds (files took 1.92 seconds to load)
923676 examples, 1 failure
924
925Failed examples:
926
927rspec ./spec/type_checker_spec.rb:175 # Solargraph::TypeChecker ignores undefined return types from external libraries |
lsegal/yard#1296 should be a better fix. |
* Ruby 2.7.0 Released https://www.ruby-lang.org/en/news/2019/12/25/ruby-2-7-0-released/
``` /home/travis/.rvm/rubies/ruby-2.7.0/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require': cannot load such file -- e2mmap (LoadError) ``` https://www.ruby-lang.org/en/news/2019/12/25/ruby-2-7-0-released/ ``` The following libraries are no longer bundled gems. Install corresponding gems to use these features. * CMath (cmath gem) * Scanf (scanf gem) * Shell (shell gem) * Synchronizer (sync gem) * ThreadsWait (thwait gem) * E2MM (e2mmap gem) ```
``` /home/travis/.rvm/rubies/ruby-2.7.0/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require': cannot load such file -- irb/slex (LoadError) ``` Refer ruby/ruby@efbca15 lsegal/yard#1290 (comment)
Thanks a lot for working on this. Do you expect to push any more commits? It looks to me like the only failing spec is an errant TypeChecker warning due to the |
Thanks for the update. As long as you are going to fix the TypeChecker failure with benchmark gem, I have no plan to push any more commits. |
This pull request runs CI against Ruby 2.7. There are some issues with this pull request. Let me work on later.