2

我将冰糕从 v0.5.5569 更新到 v0.5.5753。在更新之前,我在运行时出现了 0 个错误bundle exec srb tc,但是在更新之后我得到了Errors: 66。我决定跑步bundle exec srb rbi update会有所帮助。但它失败了RuntimeError,这是回溯:

Generating /tmp/d20200612-571-3e8xq8/reflection.rbi with 13952 modules and 216 aliases
Printing your code's symbol table into /tmp/d20200612-571-3e8xq8/from-source.json
Printing /tmp/d20200612-571-3e8xq8/reflection.rbi's symbol table into /tmp/d20200612-571-3e8xq8/reflection.json
Traceback (most recent call last):
    6: from /usr/local/bundle/gems/sorbet-0.5.5753/bin/srb-rbi:237:in `<main>'
    5: from /usr/local/bundle/gems/sorbet-0.5.5753/bin/srb-rbi:196:in `main'
    4: from /usr/local/bundle/gems/sorbet-0.5.5753/bin/srb-rbi:121:in `init'
    3: from /usr/local/bundle/gems/sorbet-0.5.5753/bin/srb-rbi:232:in `block in make_step'
    2: from /usr/local/bundle/gems/sorbet-0.5.5753/lib/hidden-definition-finder.rb:38:in `main'
    1: from /usr/local/bundle/gems/sorbet-0.5.5753/lib/hidden-definition-finder.rb:47:in `main'
/usr/local/bundle/gems/sorbet-0.5.5753/lib/hidden-definition-finder.rb:151:in `write_constants': /tmp/d20200612-571-3e8xq8/reflection.rbi had unexpected errors. Check this file for a clue: /tmp/d20200612-571-3e8xq8/reflection.json.err (RuntimeError)
root@e50175f33244:/webapp# cat /tmp/d20200612-571-3e8xq8/reflection.json.err
/tmp/d20200612-571-3e8xq8/reflection.rbi:397297: Parent of class `Net::SSH::Transport::Kex::EcdhSHA2NistP256` redefined from `Net::SSH::Transport::Kex::Abstract5656` to `Net::SSH::Transport::Kex::DiffieHellmanGroup1SHA1` https://srb.help/5012
      397297 |class Net::SSH::Transport::Kex::EcdhSHA2NistP256 < Net::SSH::Transport::Kex::DiffieHellmanGroup1SHA1
                                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

我可以以某种方式修复它,还是我唯一的选择是暂时停留在 v0.5.5569 上?

4

1 回答 1

1

不确定是什么问题,但我认为值得注意的是,我们最终升级到v0.5.5869并且不再看到此错误。

于 2020-10-19T11:54:12.097 回答