gpt4 book ai didi

bundler - 无法解析 Rubymine 2019.3 中的 RuboCop 响应

转载 作者:行者123 更新时间:2023-12-04 04:15:02 25 4
gpt4 key购买 nike

Rubymine 报告它无法解析我项目中 rubocop 的输出。

enter image description here

当我点击详细信息链接时,显示如下:

Error:Bundle complete! 13 Gemfile dependencies, 68 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
{"metadata":{"rubocop_version":"0.80.1","ruby_engine":"ruby","ruby_version":"2.6.3","ruby_patchlevel":"62","ruby_platform":"x86_64-darwin18"},"files":[{"path":"db/seeds.rb","offenses":[{"severity":"convention","message":"Missing frozen string literal comment.","cop_name":"Style/FrozenStringLiteralComment","corrected":false,"correctable":true,"location":{"start_line":1,"start_column":1,"last_line":1,"last_column":1,"length":1,"line":1,"column":1}},{"severity":"convention","message":"Line is too long. [103/80]","cop_name":"Layout/LineLength","corrected":false,"correctable":true,"location":{"start_line":1,"start_column":81,"last_line":1,"last_column":103,"length":23,"line":1,"column":81}},{"severity":"convention","message":"Line is too long. [111/80]","cop_name":"Layout/LineLength","corrected":false,"correctable":true,"location":{"start_line":2,"start_column":81,"last_line":2 ...

除了 JSON 之外,我假设问题与正在解析的额外 bundler 输出有关。关于如何解决此问题的任何想法?

最佳答案

有人说,如果将 Rubocop 升级到 0.88 或更高版本,它就会修复。我自己测试过,可以确认。

查看讨论:https://youtrack.jetbrains.com/issue/RUBY-26861

关于bundler - 无法解析 Rubymine 2019.3 中的 RuboCop 响应,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60879258/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com