논쟁 중에 약간 곤혹스러워 보인다
12681 단어 lydown
묘사
안녕!설치를 확인하려고 했는데lydown --version
를 평가할 때 다음과 같은 오류가 발생했습니다.{"format"=>:pdf, "path"=>"--version", "source_filename"=>"--version", "output_filename"=>"--version"}
Processing score...
/Library/Ruby/Gems/2.0.0/gems/lydown-0.10.0/lib/lydown/work.rb:56:in `process_work_files': Could not read --version (LydownError)
from /Library/Ruby/Gems/2.0.0/gems/lydown-0.10.0/lib/lydown/work.rb:20:in `initialize'
from /Library/Ruby/Gems/2.0.0/gems/lydown-0.10.0/lib/lydown/cli/compiler.rb:174:in `new'
from /Library/Ruby/Gems/2.0.0/gems/lydown-0.10.0/lib/lydown/cli/compiler.rb:174:in `create_work_from_opts'
from /Library/Ruby/Gems/2.0.0/gems/lydown-0.10.0/lib/lydown/cli/compiler.rb:24:in `process'
from /Library/Ruby/Gems/2.0.0/gems/lydown-0.10.0/lib/lydown/cli/commands.rb:64:in `compile'
from /Library/Ruby/Gems/2.0.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
from /Library/Ruby/Gems/2.0.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
from /Library/Ruby/Gems/2.0.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
from /Library/Ruby/Gems/2.0.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
from /Library/Ruby/Gems/2.0.0/gems/lydown-0.10.0/bin/lydown:5:in `<top (required)>'
from /usr/local/bin/lydown:23:in `load'
from /usr/local/bin/lydown:23:in `<main>'
리다운 파일을 컴파일하려고 했을 때 비슷한 결과를 얻었습니다.Ales:Desktop alestsurko$ lydown -O --pdf HelloWorld.lydown
{"format"=>:pdf, "open_target"=>true, "path"=>"--pdf", "source_filename"=>"--pdf", "output_filename"=>"--pdf"}
Processing score...
/Library/Ruby/Gems/2.0.0/gems/lydown-0.10.0/lib/lydown/work.rb:56:in `process_work_files': Could not read --pdf (LydownError)
from /Library/Ruby/Gems/2.0.0/gems/lydown-0.10.0/lib/lydown/work.rb:20:in `initialize'
from /Library/Ruby/Gems/2.0.0/gems/lydown-0.10.0/lib/lydown/cli/compiler.rb:174:in `new'
from /Library/Ruby/Gems/2.0.0/gems/lydown-0.10.0/lib/lydown/cli/compiler.rb:174:in `create_work_from_opts'
from /Library/Ruby/Gems/2.0.0/gems/lydown-0.10.0/lib/lydown/cli/compiler.rb:24:in `process'
from /Library/Ruby/Gems/2.0.0/gems/lydown-0.10.0/lib/lydown/cli/commands.rb:64:in `compile'
from /Library/Ruby/Gems/2.0.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
from /Library/Ruby/Gems/2.0.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
from /Library/Ruby/Gems/2.0.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
from /Library/Ruby/Gems/2.0.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
from /Library/Ruby/Gems/2.0.0/gems/lydown-0.10.0/bin/lydown:5:in `<top (required)>'
from /usr/local/bin/lydown:23:in `load'
from /usr/local/bin/lydown:23:in `<main>'
토론 #1
이 문제는 이후 버전에서 해결되었다(나는 한동안 루비게이지의 버전을 업데이트하지 않았다).lydown gem을 다시 설치하고 유효한지 알려 주십시오.토론 #2
네, 지금 리다운이 실행 중입니다!버전 번호와 REPL 버전도 사용할 수 있는 걸로 알고 있습니다.하지만 난 아직 번역할 수가 없어...pdf 목표에 대해 다음과 같은 정보를 얻었습니다.
Ales:Desktop alestsurko$ lydown -O --pdf helloworld.lydown
Processing score...
/Library/Ruby/Gems/2.0.0/gems/lydown-0.12.1/lib/lydown/work.rb:56:in `process_work_files': Could not read --pdf (LydownError)
from /Library/Ruby/Gems/2.0.0/gems/lydown-0.12.1/lib/lydown/work.rb:20:in `initialize'
from /Library/Ruby/Gems/2.0.0/gems/lydown-0.12.1/lib/lydown/cli/compiler.rb:176:in `new'
from /Library/Ruby/Gems/2.0.0/gems/lydown-0.12.1/lib/lydown/cli/compiler.rb:176:in `create_work_from_opts'
from /Library/Ruby/Gems/2.0.0/gems/lydown-0.12.1/lib/lydown/cli/compiler.rb:24:in `process'
from /Library/Ruby/Gems/2.0.0/gems/lydown-0.12.1/lib/lydown/cli/commands.rb:74:in `compile'
from /Library/Ruby/Gems/2.0.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
from /Library/Ruby/Gems/2.0.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
from /Library/Ruby/Gems/2.0.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
from /Library/Ruby/Gems/2.0.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
from /Library/Ruby/Gems/2.0.0/gems/lydown-0.12.1/bin/lydown:8:in `<top (required)>'
from /usr/local/bin/lydown:23:in `load'
from /usr/local/bin/lydown:23:in `<main>'
이것에 대해:Ales:Desktop alestsurko$ lydown -O --png helloworld.lydown
Processing score...
helloworld.lydown
Parse:========================================================================================================================================:100%
NoMethodError: undefined method `local_variable_set' for #<Binding:0x007f833c48a898>
/Library/Ruby/Gems/2.0.0/gems/lydown-0.12.1/lib/lydown/templates.rb:33:in `block in template_binding'
/Library/Ruby/Gems/2.0.0/gems/lydown-0.12.1/lib/lydown/templates.rb:33:in `each'
/Library/Ruby/Gems/2.0.0/gems/lydown-0.12.1/lib/lydown/templates.rb:33:in `template_binding'
/Library/Ruby/Gems/2.0.0/gems/lydown-0.12.1/lib/lydown/templates.rb:10:in `render'
(erb):29:in `block in template_binding'
(erb):28:in `each'
(erb):28:in `template_binding'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/erb.rb:846:in `eval'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/erb.rb:846:in `block in result'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/erb.rb:847:in `call'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/erb.rb:847:in `result'
/Library/Ruby/Gems/2.0.0/gems/lydown-0.12.1/lib/lydown/templates.rb:13:in `render'
/Library/Ruby/Gems/2.0.0/gems/lydown-0.12.1/lib/lydown/work.rb:43:in `to_lilypond'
/Library/Ruby/Gems/2.0.0/gems/lydown-0.12.1/lib/lydown/cli/compiler.rb:125:in `run_compile_job'
/Library/Ruby/Gems/2.0.0/gems/lydown-0.12.1/lib/lydown/cli/compiler.rb:92:in `process_jobs'
/Library/Ruby/Gems/2.0.0/gems/lydown-0.12.1/lib/lydown/cli/compiler.rb:27:in `process'
/Library/Ruby/Gems/2.0.0/gems/lydown-0.12.1/lib/lydown/cli/commands.rb:74:in `compile'
/Library/Ruby/Gems/2.0.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
/Library/Ruby/Gems/2.0.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
/Library/Ruby/Gems/2.0.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
/Library/Ruby/Gems/2.0.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
/Library/Ruby/Gems/2.0.0/gems/lydown-0.12.1/bin/lydown:8:in `<top (required)>'
/usr/local/bin/lydown:23:in `load'
/usr/local/bin/lydown:23:in `<main>'
midi와lilypond에 대해 나는 png과 유사한 것을 얻었다.토론 #셋
저는 방금 버전 0.12.2를 출시했는데 적어도 그 중의 몇 가지 문제를 해결할 수 있습니다.너는 여기에 너의 Hello World 내용을 포함할 수 있니?lydown 파일?이렇게 하면 나는 나의 기계에서 그것을 운행해 볼 수 있다.곤란에 부딪혀서 미안해요. 한동안 착륙을 못했어요...토론 #4
여전히 성공하지 못했다...pdf와 png목표에 대해 다음과 같은 정보를 얻었습니다.
Ales:Desktop alestsurko$ lydown -O --pdf helloworld.lydown
Processing score...
Parse:===================================================================================================================================:100%
NoMethodError: undefined method `local_variable_set' for #<Binding:0x007fe95bfdc450>
/Library/Ruby/Gems/2.0.0/gems/lydown-0.12.2/lib/lydown/templates.rb:33:in `block in template_binding'
/Library/Ruby/Gems/2.0.0/gems/lydown-0.12.2/lib/lydown/templates.rb:33:in `each'
/Library/Ruby/Gems/2.0.0/gems/lydown-0.12.2/lib/lydown/templates.rb:33:in `template_binding'
/Library/Ruby/Gems/2.0.0/gems/lydown-0.12.2/lib/lydown/templates.rb:10:in `render'
(erb):29:in `block in template_binding'
(erb):28:in `each'
(erb):28:in `template_binding'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/erb.rb:846:in `eval'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/erb.rb:846:in `block in result'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/erb.rb:847:in `call'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/erb.rb:847:in `result'
/Library/Ruby/Gems/2.0.0/gems/lydown-0.12.2/lib/lydown/templates.rb:13:in `render'
/Library/Ruby/Gems/2.0.0/gems/lydown-0.12.2/lib/lydown/work.rb:43:in `to_lilypond'
/Library/Ruby/Gems/2.0.0/gems/lydown-0.12.2/lib/lydown/cli/compiler.rb:133:in `run_compile_job'
/Library/Ruby/Gems/2.0.0/gems/lydown-0.12.2/lib/lydown/cli/compiler.rb:100:in `process_jobs'
/Library/Ruby/Gems/2.0.0/gems/lydown-0.12.2/lib/lydown/cli/compiler.rb:35:in `process'
/Library/Ruby/Gems/2.0.0/gems/lydown-0.12.2/lib/lydown/cli/commands.rb:75:in `compile'
/Library/Ruby/Gems/2.0.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
/Library/Ruby/Gems/2.0.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
/Library/Ruby/Gems/2.0.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
/Library/Ruby/Gems/2.0.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
/Library/Ruby/Gems/2.0.0/gems/lydown-0.12.2/bin/lydown:8:in `<top (required)>'
/usr/local/bin/lydown:23:in `load'
/usr/local/bin/lydown:23:in `<main>'
Ales:Desktop alestsurko$ lydown -O --png helloworld.lydown
Processing score...
Parse:===================================================================================================================================:100%
NoMethodError: undefined method `local_variable_set' for #<Binding:0x007fca437543c8>
/Library/Ruby/Gems/2.0.0/gems/lydown-0.12.2/lib/lydown/templates.rb:33:in `block in template_binding'
/Library/Ruby/Gems/2.0.0/gems/lydown-0.12.2/lib/lydown/templates.rb:33:in `each'
/Library/Ruby/Gems/2.0.0/gems/lydown-0.12.2/lib/lydown/templates.rb:33:in `template_binding'
/Library/Ruby/Gems/2.0.0/gems/lydown-0.12.2/lib/lydown/templates.rb:10:in `render'
(erb):29:in `block in template_binding'
(erb):28:in `each'
(erb):28:in `template_binding'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/erb.rb:846:in `eval'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/erb.rb:846:in `block in result'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/erb.rb:847:in `call'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/erb.rb:847:in `result'
/Library/Ruby/Gems/2.0.0/gems/lydown-0.12.2/lib/lydown/templates.rb:13:in `render'
/Library/Ruby/Gems/2.0.0/gems/lydown-0.12.2/lib/lydown/work.rb:43:in `to_lilypond'
/Library/Ruby/Gems/2.0.0/gems/lydown-0.12.2/lib/lydown/cli/compiler.rb:133:in `run_compile_job'
/Library/Ruby/Gems/2.0.0/gems/lydown-0.12.2/lib/lydown/cli/compiler.rb:100:in `process_jobs'
/Library/Ruby/Gems/2.0.0/gems/lydown-0.12.2/lib/lydown/cli/compiler.rb:35:in `process'
/Library/Ruby/Gems/2.0.0/gems/lydown-0.12.2/lib/lydown/cli/commands.rb:75:in `compile'
/Library/Ruby/Gems/2.0.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
/Library/Ruby/Gems/2.0.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
/Library/Ruby/Gems/2.0.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
/Library/Ruby/Gems/2.0.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
/Library/Ruby/Gems/2.0.0/gems/lydown-0.12.2/bin/lydown:8:in `<top (required)>'
/usr/local/bin/lydown:23:in `load'
/usr/local/bin/lydown:23:in `<main>'
다음은 파일입니다.helloworld.txt
(GitHub에서.lydown을 업로드할 수 없기 때문에 확장자를 변경했습니다.)
내용은 자술한 문서에서 나온다.md
토론 #5
어떤 버전의 루비가 있습니까?ruby -v
나는 문제의 소재를 알았다.Ruby 2.1.0 이전 버전이 있습니다.나는 루비 2.0.0에서 버전 0.12.3을 테스트했기 때문에 너는 매우 좋을 것이다.나는 이전 버전의 루비로 리다운을 실행하는 것을 권장하지 않는다.그래서 당신은 지금 가도 되겠지만
토론 #6
파일을 업데이트해야 한다는 것을 주의하세요.자술한 파일의 예는 이미 유행이 지났다. (리다운 문법은 상대적으로 8도 음계와 의외의 음계에 약간의 변화가 있다.)다음은 업데이트된 예입니다.\key:D \time:2/4
4d''\"Hello world!" 6cbag 3fgag6fd 4e
만약 이것이 당신을 도와 문제를 해결할 수 있다면 저에게 알려 주세요.helloworld
만세!정말 쓸모가 있다!감사합니다!토론 #7
잘됐다!만약 또 다른 문제가 있거나, 단지 개선 건의일 뿐이라면, 저에게 알려 주십시오.Reference
이 문제에 관하여(논쟁 중에 약간 곤혹스러워 보인다), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://github.com/ciconia/lydown/issues/58텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)