-
Notifications
You must be signed in to change notification settings - Fork 365
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
uninitialized constant RspecApiDocumentation::Writers::JsonWriter (NameError) #382
Comments
This is related to PR #359 |
Note: it also affects the |
I am seeing this when cloning the repository and change
to |
Experiencing this issue as well. |
rspec_api_documentation/api_documentation.rb:35:in `const_get': uninitialized constant RspecApiDocumentation::Writers::JsonWriter (NameError) The same for me too ! |
I see the same issue too |
I linked to the issue that probably created this above. If you are experiencing this check that out and see if it helps. My guess is there was some change between Ruby/Rails versions that flipped how this constant was interpreted and we will need to handle it with a check or alias the constant. If someone experiencing this can put up a sample app with the problem and pinned to the versions they are experiencing it with via a .ruby-version and Gemfile.lock maybe we can narrow it down. |
solution: change |
as @bf4 mention before this fix the issue for me. Here is my Gemfile.lock |
I merged #399, can everyone update to the git master branch and let me know if it solves your problems? If it does, I'll do a new release on rubygems. |
It works, thanks! |
I can confirm that it works on master. |
6.1.0 is out and has #399 in it. |
System info:
I have my specs set up in
spec/acceptance
, as required. When I runbundle exec rake docs:generate
, I get the following error:My configuration is set up as described in
rails_helper.rb
. This only occurs with trying to output as JSON - outputting as a different format, like HTML, works fine. I'm guessing it's not resolving the names correctly - it's looking for JsonWriter, not JSONWriter, as listed in the gem.The text was updated successfully, but these errors were encountered: