Skip to content
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

undefined method `children' for nil:NilClass (NoMethodError) #92

Closed
alisandagdelen opened this issue Nov 16, 2022 · 2 comments · Fixed by #93
Closed

undefined method `children' for nil:NilClass (NoMethodError) #92

alisandagdelen opened this issue Nov 16, 2022 · 2 comments · Fixed by #93
Assignees

Comments

@alisandagdelen
Copy link

/Users/alisandagdelen/.rvm/gems/ruby-3.0.0@latest/gems/kintsugi-0.6.2/lib/kintsugi/apply_change_to_project.rb:857:in find_file_in_group': undefined method children' for nil:NilClass (NoMethodError)
from /Users/alisandagdelen/.rvm/gems/ruby-3.0.0@latest/gems/kintsugi-0.6.2/lib/kintsugi/apply_change_to_project.rb:170:in apply_file_addition' from /Users/alisandagdelen/.rvm/gems/ruby-3.0.0@latest/gems/kintsugi-0.6.2/lib/kintsugi/apply_change_to_project.rb:148:in block in apply_file_changes'
from /Users/alisandagdelen/.rvm/gems/ruby-3.0.0@latest/gems/kintsugi-0.6.2/lib/kintsugi/apply_change_to_project.rb:143:in each' from /Users/alisandagdelen/.rvm/gems/ruby-3.0.0@latest/gems/kintsugi-0.6.2/lib/kintsugi/apply_change_to_project.rb:143:in apply_file_changes'
from /Users/alisandagdelen/.rvm/gems/ruby-3.0.0@latest/gems/kintsugi-0.6.2/lib/kintsugi/apply_change_to_project.rb:66:in apply_main_group_change' from /Users/alisandagdelen/.rvm/gems/ruby-3.0.0@latest/gems/kintsugi-0.6.2/lib/kintsugi/apply_change_to_project.rb:46:in apply_change_to_project'
from /Users/alisandagdelen/.rvm/gems/ruby-3.0.0@latest/gems/kintsugi-0.6.2/lib/kintsugi/merge.rb:93:in apply_change_and_copy_to_original_path' from /Users/alisandagdelen/.rvm/gems/ruby-3.0.0@latest/gems/kintsugi-0.6.2/lib/kintsugi/merge.rb:45:in resolve_conflicts'
from /Users/alisandagdelen/.rvm/gems/ruby-3.0.0@latest/gems/kintsugi-0.6.2/lib/kintsugi/cli.rb:203:in block in create_root_command' from /Users/alisandagdelen/.rvm/gems/ruby-3.0.0@latest/gems/kintsugi-0.6.2/lib/kintsugi.rb:26:in run'
from /Users/alisandagdelen/.rvm/gems/ruby-3.0.0@latest/gems/kintsugi-0.6.2/bin/kintsugi:10:in <top (required)>' from /Users/alisandagdelen/.rvm/gems/ruby-3.0.0@latest/bin/kintsugi:23:in load'
from /Users/alisandagdelen/.rvm/gems/ruby-3.0.0@latest/bin/kintsugi:23:in `

'

@byohay byohay self-assigned this Nov 21, 2022
@byohay
Copy link
Collaborator

byohay commented Nov 21, 2022

Hey @alisandagdelen, I think I was able to reproduce it. I'll submit a fix soon.
Thanks for finding this!

@byohay
Copy link
Collaborator

byohay commented Nov 23, 2022

@alisandagdelen I think I solved that problem, but unfortunately Kintsugi would still throw in such a case. This is because in "ours" change there's a file addition to a certain group, while in "theirs" change that group was removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants