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

Ci against ruby27 #253

Merged
merged 5 commits into from
Jan 1, 2020
Merged

Ci against ruby27 #253

merged 5 commits into from
Jan 1, 2020

Conversation

yahonda
Copy link
Contributor

@yahonda yahonda commented Dec 26, 2019

This pull request runs CI against Ruby 2.7. There are some issues with this pull request. Let me work on later.

@yahonda
Copy link
Contributor Author

yahonda commented Dec 26, 2019

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

@yahonda
Copy link
Contributor Author

yahonda commented Dec 28, 2019

lsegal/yard#1296 should be a better fix.

```
/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)
@castwide
Copy link
Owner

castwide commented Jan 1, 2020

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 benchmark library being moved to a gem. I can fix that one if you're happy with everything else.

@castwide castwide mentioned this pull request Jan 1, 2020
@yahonda
Copy link
Contributor Author

yahonda commented Jan 1, 2020

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.

@castwide castwide merged commit f3a4483 into castwide:master Jan 1, 2020
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

Successfully merging this pull request may close these issues.

2 participants