aleksiares@unit:~/wasteland/sokol_dev$ yard
/usr/local/rvm/gems/ruby-2.2.0/gems/yard-0.9.5/lib/yard/core_ext/file.rb:56:in `initialize': Permission denied @ rb_sysopen - .yardoc/processing (Errno::EACCES)
from /usr/local/rvm/gems/ruby-2.2.0/gems/yard-0.9.5/lib/yard/core_ext/file.rb:56:in `open'
from /usr/local/rvm/gems/ruby-2.2.0/gems/yard-0.9.5/lib/yard/core_ext/file.rb:56:in `open!'
from /usr/local/rvm/gems/ruby-2.2.0/gems/yard-0.9.5/lib/yard/serializers/yardoc_serializer.rb:52:in `lock_for_writing' from /usr/local/rvm/gems/ruby-2.2.0/gems/yard-0.9.5/lib/yard/registry_store.rb:197:in `lock_for_writing'
from /usr/local/rvm/gems/ruby-2.2.0/gems/yard-0.9.5/lib/yard/registry.rb:208:in `lock_for_writing'
from /usr/local/rvm/gems/ruby-2.2.0/gems/yard-0.9.5/lib/yard/cli/yardoc.rb:251:in `run'
from /usr/local/rvm/gems/ruby-2.2.0/gems/yard-0.9.5/lib/yard/cli/command.rb:13:in `run'
from /usr/local/rvm/gems/ruby-2.2.0/gems/yard-0.9.5/lib/yard/cli/command_parser.rb:71:in `run'
from /usr/local/rvm/gems/ruby-2.2.0/gems/yard-0.9.5/lib/yard/cli/command_parser.rb:53:in `run'
from /usr/local/rvm/gems/ruby-2.2.0/gems/yard-0.9.5/bin/yard:12:in `<top (required)>'
from /usr/local/rvm/gems/ruby-2.2.0/bin/yard:23:in `load'
from /usr/local/rvm/gems/ruby-2.2.0/bin/yard:23:in `<main>'
from /usr/local/rvm/gems/ruby-2.2.0/bin/ruby_executable_hooks:15:in `eval'
from /usr/local/rvm/gems/ruby-2.2.0/bin/ruby_executable_hooks:15:in `<main>'
您好,自我记录代码存在问题,没有出错的概念,可以提供帮助。
答案 0 :(得分:0)
您当前的用户似乎对当前目录中的.yardoc/processing
文件没有读写权限。
Yard使用这些文件来发信号通知院子正在使用的其他工具,因此必须能够在那里写。请检查您的文件权限,并确保您当前的用户能够写入此目录。