Comments (2)
Can you try uninstalling and reinstalling? I can't seem to reproduce here.
from factory_bot_rails.
Hmm, it seems like the issue only occurs if Yard is installed... Here is the output from my console (starting with yard not installed).
~$ rvm all do gem uninstall factory_girl_rails
Successfully uninstalled factory_girl_rails-3.0.0
~$ rvm all do gem install factory_girl_rails
Fetching: factory_girl_rails-3.0.0.gem (100%)
Successfully installed factory_girl_rails-3.0.0
1 gem installed
Installing ri documentation for factory_girl_rails-3.0.0...
Installing RDoc documentation for factory_girl_rails-3.0.0...
~$ rvm all do gem install yard
Fetching: yard-0.7.5.gem (100%)
Successfully installed yard-0.7.5
1 gem installed
Installing ri documentation for yard-0.7.5...
Installing RDoc documentation for yard-0.7.5...
~$ rvm all do gem uninstall factory_girl_rails
Successfully uninstalled factory_girl_rails-3.0.0
~$ rvm all do gem install factory_girl_rails
Fetching: factory_girl_rails-3.0.0.gem (100%)
Successfully installed factory_girl_rails-3.0.0
1 gem installed
Installing ri documentation for factory_girl_rails-3.0.0...
Building YARD (yri) index for factory_girl_rails-3.0.0...
[error]: ParserSyntaxError: syntax error in `lib/generators/factory_girl/model/templates/fixtures.rb`:(4,14): syntax error, unexpected tOP_ASGN, expecting keyword_end
[error]: Stack trace:
/home/adam/.rvm/gems/ruby-1.9.3-p0/gems/yard-0.7.5/lib/yard/parser/ruby/ruby_parser.rb:517:in `on_parse_error'
/home/adam/.rvm/gems/ruby-1.9.3-p0/gems/yard-0.7.5/lib/yard/parser/ruby/ruby_parser.rb:49:in `parse'
/home/adam/.rvm/gems/ruby-1.9.3-p0/gems/yard-0.7.5/lib/yard/parser/ruby/ruby_parser.rb:49:in `parse'
/home/adam/.rvm/gems/ruby-1.9.3-p0/gems/yard-0.7.5/lib/yard/parser/ruby/ruby_parser.rb:15:in `parse'
/home/adam/.rvm/gems/ruby-1.9.3-p0/gems/yard-0.7.5/lib/yard/parser/source_parser.rb:438:in `parse'
/home/adam/.rvm/gems/ruby-1.9.3-p0/gems/yard-0.7.5/lib/yard/parser/source_parser.rb:361:in `parse_in_order'
Installing RDoc documentation for factory_girl_rails-3.0.0...
from factory_bot_rails.
Related Issues (20)
- factory_bot_rails 6.0 checklist HOT 2
- Invalid DateTime.now field on factory creation
- Multiple Tests Fail on Vanilla `bundle exec rake` HOT 2
- Model generation ignores --force-plural HOT 3
- Rails ignoring factory HOT 2
- Install fewer gems on Travis HOT 1
- Incompatibility with Rails 6.0.3? HOT 2
- Perform DB migration will make factory_bot looking for methods in the wrong place HOT 2
- Successive associations issue when migrating to rails 6.1 HOT 3
- Switch from Travis CI to GitHub Actions
- Duplicate factories problem HOT 5
- Automatically populate attributes and types when generating factories for existing models HOT 2
- Cannot create Factory with multiple traits got (ArgumentError Exception: wrong number of arguments (given 1, expected 0)) Ruby 3.0, Rails 6.1.72, factory_bot_rails 6.1.0 HOT 2
- Dead link in CONTRIBUTING.md HOT 2
- Release new version to allow upgrade to factory_bot 6.3.0 HOT 4
- The railtie included in #419 breaks compatibility with some gems "undefined method `config' for nil:NilClass" Factory Bot > 6.2.0 HOT 5
- 6.3.0: `NoMethodError: undefined method '<' for nil:NilClass` when using a factory with traits HOT 20
- undefined method `config' for nil:NilClass after upgrading to 6.4.0 HOT 16
- Ability to disable reject_primary_key_attributes per factory HOT 11
- RubyGems is not linking the CHANGELOG file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from factory_bot_rails.