Open kevin-atnos opened 1 year ago
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 :( But I will give a try to the fork, thanks :)
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!