uninitialized constant Grape::Formatter::Base (NameError)
Open
Nobody has claimed this yet.
bug?
- Dominant language
- Ruby
- Stars
- 10k
- Forks
- 1.2k
- Avg merge
- 14h 38m
- Merged PRs (30d)
- 92
Description
I'm not sure where I should open the issue (see linked issue: https://github.com/berkshelf/berkshelf-api/issues/210) but running into the following with berkshelf-api (depending on grape-msgpack):
/opt/berkshelf-api # berks-api /opt/berkshelf-api/config.json
/usr/lib/ruby/gems/2.2.0/gems/grape-msgpack-0.1.2/lib/grape/msgpack.rb:39:in `<top (required)>': uninitialized constant Grape::Formatter::Base (NameError)
from /usr/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /usr/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /usr/lib/ruby/gems/2.2.0/gems/grape-msgpack-0.1.2/lib/grape-msgpack.rb:1:in `<top (required)>'
from /usr/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /usr/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /usr/lib/ruby/gems/2.2.0/gems/berkshelf-api-2.1.3/lib/berkshelf/api/endpoint.rb:2:in `<top (required)>'
from /usr/lib/ruby/gems/2.2.0/gems/berkshelf-api-2.1.3/lib/berkshelf/api.rb:23:in `require_relative'
from /usr/lib/ruby/gems/2.2.0/gems/berkshelf-api-2.1.3/lib/berkshelf/api.rb:23:in `<module:API>'
from /usr/lib/ruby/gems/2.2.0/gems/berkshelf-api-2.1.3/lib/berkshelf/api.rb:10:in `<module:Berkshelf>'
from /usr/lib/ruby/gems/2.2.0/gems/berkshelf-api-2.1.3/lib/berkshelf/api.rb:9:in `<top (required)>'
from /usr/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /usr/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /usr/lib/ruby/gems/2.2.0/gems/berkshelf-api-2.1.3/lib/berkshelf/api/srv_ctl.rb:72:in `start'
from /usr/lib/ruby/gems/2.2.0/gems/berkshelf-api-2.1.3/lib/berkshelf/api/srv_ctl.rb:58:in `run'
from /usr/lib/ruby/gems/2.2.0/gems/berkshelf-api-2.1.3/bin/berks-api:5:in `<top (required)>'
from /usr/bin/berks-api:23:in `load'
from /usr/bin/berks-api:23:in `<main>'
Any idea ? Much appreciated!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the error through the berks-api entry point and inspect grape-msgpack-0.1.2/lib/grape/msgpack.rb, especially the reported reference to Grape::Formatter::Base. Review the linked berkshelf-api issue for context and compare the installed Grape and grape-msgpack versions. Done means identifying a compatible dependency or a confirmed fix for the startup failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100