충돌 문제에 [d]를 입력하는 중 오류 발생
9445 단어 homesick
묘사
$ homesick link
conflict /home/gq/.zshrc exists
Overwrite /home/gq/.zshrc? (enter "h" for help) [Ynaqdh] h
Y - yes, overwrite
n - no, do not overwrite
a - all, overwrite this and all others
q - quit, abort
d - diff, show the differences between the old and the new
h - help, show this help
Overwrite /home/gq/.zshrc? (enter "h" for help) [Ynaqdh] d
/usr/lib/ruby/vendor_ruby/homesick/utils.rb:153:in `block in collision_accepted?': undefined local variable or method `source' for #<Homesick::CLI:0x9a43748> (NameError)
from /usr/lib/ruby/vendor_ruby/thor/shell/basic.rb:254:in `block in file_collision'
토론 #1
에도 이런 문제가 있다. conflict /home/hugo/.gnupg/gpg.conf exists
Overwrite /home/hugo/.gnupg/gpg.conf? (enter "h" for help) [Ynaqdh] d
/usr/lib/ruby/gems/2.2.0/gems/homesick-1.1.2/lib/homesick/utils.rb:153:in `block in collision_accepted?': undefined local variable or method `source' for #<Homesick::CLI:0x000000013540c0> (NameError)
from /usr/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/shell/basic.rb:254:in `block in file_collision'
from /usr/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/shell/basic.rb:237:in `loop'
from /usr/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/shell/basic.rb:237:in `file_collision'
from /usr/lib/ruby/gems/2.2.0/gems/homesick-1.1.2/lib/homesick/utils.rb:153:in `collision_accepted?'
from /usr/lib/ruby/gems/2.2.0/gems/homesick-1.1.2/lib/homesick/actions/file_actions.rb:78:in `handle_symlink_action'
from /usr/lib/ruby/gems/2.2.0/gems/homesick-1.1.2/lib/homesick/actions/file_actions.rb:61:in `ln_s'
from /usr/lib/ruby/gems/2.2.0/gems/homesick-1.1.2/lib/homesick/utils.rb:201:in `block in symlink_each'
from /usr/lib/ruby/gems/2.2.0/gems/homesick-1.1.2/lib/homesick/utils.rb:188:in `block (2 levels) in each_file'
from /usr/lib/ruby/gems/2.2.0/gems/homesick-1.1.2/lib/homesick/utils.rb:162:in `each'
from /usr/lib/ruby/gems/2.2.0/gems/homesick-1.1.2/lib/homesick/utils.rb:162:in `block in each_file'
from /usr/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/actions.rb:184:in `block in inside'
from /usr/lib/ruby/2.2.0/fileutils.rb:127:in `chdir'
from /usr/lib/ruby/2.2.0/fileutils.rb:127:in `cd'
from /usr/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/actions.rb:184:in `inside'
from /usr/lib/ruby/gems/2.2.0/gems/homesick-1.1.2/lib/homesick/utils.rb:158:in `each_file'
from /usr/lib/ruby/gems/2.2.0/gems/homesick-1.1.2/lib/homesick/utils.rb:200:in `symlink_each'
from /usr/lib/ruby/gems/2.2.0/gems/homesick-1.1.2/lib/homesick/cli.rb:151:in `block (2 levels) in link'
from /usr/lib/ruby/gems/2.2.0/gems/homesick-1.1.2/lib/homesick/cli.rb:150:in `each'
from /usr/lib/ruby/gems/2.2.0/gems/homesick-1.1.2/lib/homesick/cli.rb:150:in `block in link'
from /usr/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/actions.rb:184:in `block in inside'
from /usr/lib/ruby/2.2.0/fileutils.rb:127:in `chdir'
from /usr/lib/ruby/2.2.0/fileutils.rb:127:in `cd'
from /usr/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/actions.rb:184:in `inside'
from /usr/lib/ruby/gems/2.2.0/gems/homesick-1.1.2/lib/homesick/cli.rb:143:in `link'
from /usr/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
from /usr/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
from /usr/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
from /usr/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
from /usr/lib/ruby/gems/2.2.0/gems/homesick-1.1.2/bin/homesick:9:in `<top (required)>'
from /usr/bin/homesick:23:in `load'
from /usr/bin/homesick:23:in `<main>'
시스템 정보:$ uname -a
Linux athena.barrera.io 3.19.0-1-ARCH #1 SMP PREEMPT Mon Feb 9 07:08:20 CET 2015 x86_64 GNU/Linux
$ ruby --version
ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux]
토론 #2
같은 문제가 발생했습니다.╭ zach@Zach-MBA ~/.homesick/repos/dotfiles ‹ruby-2.2.2@global› ‹master*›
╰ $ homesick symlink
identical /Users/zach/.bash
conflict /Users/zach/.bashrc exists
Overwrite /Users/zach/.bashrc? (enter "h" for help) [Ynaqdh] d
/Users/zach/.rvm/gems/ruby-2.2.2@global/gems/homesick-1.1.2/lib/homesick/utils.rb:153:in `block in collision_accepted?': undefined local variable or method `source' for #<Homesick::CLI:0x007f9adb1c7988> (NameError)
from /Users/zach/.rvm/gems/ruby-2.2.2@global/gems/thor-0.19.1/lib/thor/shell/basic.rb:254:in `block in file_collision'
from /Users/zach/.rvm/gems/ruby-2.2.2@global/gems/thor-0.19.1/lib/thor/shell/basic.rb:237:in `loop'
from /Users/zach/.rvm/gems/ruby-2.2.2@global/gems/thor-0.19.1/lib/thor/shell/basic.rb:237:in `file_collision'
from /Users/zach/.rvm/gems/ruby-2.2.2@global/gems/homesick-1.1.2/lib/homesick/utils.rb:153:in `collision_accepted?'
from /Users/zach/.rvm/gems/ruby-2.2.2@global/gems/homesick-1.1.2/lib/homesick/actions/file_actions.rb:78:in `handle_symlink_action'
from /Users/zach/.rvm/gems/ruby-2.2.2@global/gems/homesick-1.1.2/lib/homesick/actions/file_actions.rb:61:in `ln_s'
from /Users/zach/.rvm/gems/ruby-2.2.2@global/gems/homesick-1.1.2/lib/homesick/utils.rb:201:in `block in symlink_each'
from /Users/zach/.rvm/gems/ruby-2.2.2@global/gems/homesick-1.1.2/lib/homesick/utils.rb:188:in `block (2 levels) in each_file'
from /Users/zach/.rvm/gems/ruby-2.2.2@global/gems/homesick-1.1.2/lib/homesick/utils.rb:162:in `each'
from /Users/zach/.rvm/gems/ruby-2.2.2@global/gems/homesick-1.1.2/lib/homesick/utils.rb:162:in `block in each_file'
from /Users/zach/.rvm/gems/ruby-2.2.2@global/gems/thor-0.19.1/lib/thor/actions.rb:184:in `block in inside'
from /Users/zach/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/fileutils.rb:127:in `chdir'
from /Users/zach/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/fileutils.rb:127:in `cd'
from /Users/zach/.rvm/gems/ruby-2.2.2@global/gems/thor-0.19.1/lib/thor/actions.rb:184:in `inside'
from /Users/zach/.rvm/gems/ruby-2.2.2@global/gems/homesick-1.1.2/lib/homesick/utils.rb:158:in `each_file'
from /Users/zach/.rvm/gems/ruby-2.2.2@global/gems/homesick-1.1.2/lib/homesick/utils.rb:200:in `symlink_each'
from /Users/zach/.rvm/gems/ruby-2.2.2@global/gems/homesick-1.1.2/lib/homesick/cli.rb:147:in `block in link'
from /Users/zach/.rvm/gems/ruby-2.2.2@global/gems/thor-0.19.1/lib/thor/actions.rb:184:in `block in inside'
from /Users/zach/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/fileutils.rb:127:in `chdir'
from /Users/zach/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/fileutils.rb:127:in `cd'
from /Users/zach/.rvm/gems/ruby-2.2.2@global/gems/thor-0.19.1/lib/thor/actions.rb:184:in `inside'
from /Users/zach/.rvm/gems/ruby-2.2.2@global/gems/homesick-1.1.2/lib/homesick/cli.rb:143:in `link'
from /Users/zach/.rvm/gems/ruby-2.2.2@global/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
from /Users/zach/.rvm/gems/ruby-2.2.2@global/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
from /Users/zach/.rvm/gems/ruby-2.2.2@global/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
from /Users/zach/.rvm/gems/ruby-2.2.2@global/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
from /Users/zach/.rvm/gems/ruby-2.2.2@global/gems/homesick-1.1.2/bin/homesick:9:in `<top (required)>'
from /Users/zach/.rvm/gems/ruby-2.2.2@global/bin/homesick:23:in `load'
from /Users/zach/.rvm/gems/ruby-2.2.2@global/bin/homesick:23:in `<main>'
from /Users/zach/.rvm/gems/ruby-2.2.2@global/bin/ruby_executable_hooks:15:in `eval'
from /Users/zach/.rvm/gems/ruby-2.2.2@global/bin/ruby_executable_hooks:15:in `<main>'
╭ zach@Zach-MBA ~/.homesick/repos/dotfiles ‹ruby-2.2.2@global› ‹master*›
╰ $ homesick --version
1.1.2
토론 #셋
+1.OSX 우승미, 루비 2.1.5p273(ChefDK와 묶음)토론 #4
드디어 이 점을 볼 수 있는 기회가 왔습니다.https://github.com/JCook21/homesick/commit/75bf94dae51fb4ccf4a04aea7c95b0c36f61a3b6.@gerasiov, @Hobarera, @ZachBeta, @feoh 이 효과 검증하고 싶은 사람?토론 #5
파일이 디렉토리인 경우 실패: conflict /home/hugo/.config/todoman exists
Overwrite /home/hugo/.config/todoman? (enter "h" for help) [Ynaqdh] d
/usr/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/shell/color.rb:108:in `binread': Is a directory @ io_fread - /home/hugo/.confi
g/todoman (Errno::EISDIR)
일반 파일의 경우 diff는 파일 중 하나를 다른 파일의 경로와 비교합니다.호바레라: 난 이 일에 또 골치 아픈 일이 생겼어.https://github.com/JCook21/homesick/commit/1f015480c7b2718718428a6cf3e797bbc574c587.한번 봐주시겠어요?나는 가장 좋은 테스트 방법이 무엇인지 확실하지 않다. 왜냐하면 diffing 기능은 Thor에서 왔기 때문이다.기본 Thor: Shell::Basic::show diff 방법으로 구분 기호 링크를 지원해야 합니다. 현재 디렉터리를 검사하기 때문에 한두 번 테스트할 때가 된 것 같습니다.
토론 #6
현재 #146을 통합했으며 앞으로 며칠 동안 새로운 버전으로 업그레이드할 예정입니다.Reference
이 문제에 관하여(충돌 문제에 [d]를 입력하는 중 오류 발생), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://github.com/technicalpickles/homesick/issues/134텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)