-
Notifications
You must be signed in to change notification settings - Fork 588
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
Can't execute annotate
or bundle exec annotate
commands
#984
Comments
Do you have an example repo with the problem that you're facing? It might be easier to reproduce. Also, I created a fork that may be worth trying out https://github.com/drwl/annotaterb |
Not really :( |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello everyone!
I'm trying to install the
annotate
gem in a project running with Rails 6 (6.1.7.2) and Ruby 2 (2.7.7).I have added the gem in my
Gemfile
:I have
bundle
,bundle install
(and also triedbundle exec rails g annotate:install
).It seems to be installed:
I have my
auto_annotate_models.rake
file which has been created there:lib/tasks/auto_annotate_models.rake
I'm in the right folder (at the root of the project), but when I try the commands, I have weird errors and I can't understand what's wrong:
If I try to execute it with
bundle exec
as it is recommanded, I have another issue:It seems
test/dummy/Rakefile
is searched by anotherRakefile
we have in the root of our project:The root
Rakefile
content:If I try to create this strange
Rakefile
in/test/dummy/Rakefile
and re-run commands, here is what I get:I have also tried to remove these 2 lines from the main Rakefile but it seems to do nothing then when I execute the command.
Sooo, yeah, I'm stuck and I have no clue on what is going on and what I can do to fix this :D
Am I missing something?
If anyone has some ideas with this, I would be glad to try it!
Thank you!
The text was updated successfully, but these errors were encountered: