小编Tod*_*odd的帖子

"分面项目问题(Java版本不匹配)"错误消息

Eclipse的"问题"选项卡显示此错误:

描述:Java编译器级别与已安装的Java项目构面的版本不匹配.
资源:灌浆
路径:[空白]
位置:未知
类型:分面项目问题(Java版本不匹配)

pom.xml有这个设置:

<plugins>
    <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
            <source>1.6</source>
            <target>1.6</target>
        </configuration>
    </plugin>
</plugins>
Run Code Online (Sandbox Code Playgroud)

设置还可能在哪里不匹配?

java eclipse maven-2 m2eclipse

70
推荐指数
3
解决办法
15万
查看次数

ActionView::Template::Error: 785: '' 处的意外标记

在运行rails test. 失败的测试可以是任何文件中的任何测试。

此错误通常发生在 CI/CD 过程中的测试环境中。在当地,这种情况很少发生。

这是一个完整的堆栈跟踪:

Error:
SitePositionsControllerTest#test_should_create_position_link:
ActionView::Template::Error: 785: unexpected token at ''
    app/views/layouts/site/application.html.erb:10
    test/controllers/site_positions_controller_test.rb:28:in `block (2 levels) in <class:SitePositionsControllerTest>'
    test/controllers/site_positions_controller_test.rb:27:in `block in <class:SitePositionsControllerTest>'
    test/test_helper.rb:64:in `block (3 levels) in run'
    test/test_helper.rb:63:in `block (2 levels) in run'
    test/test_helper.rb:62:in `block in run'
    test/test_helper.rb:54:in `run'

rails test test/controllers/site_positions_controller_test.rb:18
Run Code Online (Sandbox Code Playgroud)

ruby continuous-integration ruby-on-rails webpacker ruby-on-rails-6

10
推荐指数
1
解决办法
747
查看次数