mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[Gradle] build script error parser description: add empty line after location info IDEA-209457
GitOrigin-RevId: 165e58a19193312759892b6e46d5da0491f69269
This commit is contained in:
committed by
intellij-monorepo-bot
parent
f6ea290b17
commit
6fbeea6cb6
+1
-1
@@ -44,7 +44,7 @@ class GradleBuildScriptErrorParser : BuildOutputParser {
|
||||
|
||||
val description = StringBuilder()
|
||||
if (location != null) {
|
||||
description.appendln(location)
|
||||
description.appendln(location).appendln()
|
||||
}
|
||||
var reason = reader.readLine() ?: return false
|
||||
val parentId: Any
|
||||
|
||||
+4
-3
@@ -74,15 +74,16 @@ open class GradleOutputParsersMessagesImportingTest : BuildViewMessagesImporting
|
||||
" :buildSrc:testClasses\n" +
|
||||
" :buildSrc:test\n" +
|
||||
" :buildSrc:check\n" +
|
||||
" :buildSrc:build\n";
|
||||
" :buildSrc:build\n"
|
||||
}
|
||||
|
||||
expectedExecutionTree += " -build.gradle\n" +
|
||||
" Something's wrong!"
|
||||
assertSyncViewTreeEquals(expectedExecutionTree)
|
||||
|
||||
val filePath = FileUtil.toSystemDependentName(myProjectConfig.path)
|
||||
assertSyncViewSelectedNode("Something's wrong!",
|
||||
"Build file '${myProjectConfig.path}' line: 1\n" +
|
||||
"Build file '$filePath' line: 1\n\n" +
|
||||
"A problem occurred evaluating root project 'project'.\n" +
|
||||
"> Failed to apply plugin [class 'example.SomePlugin']\n" +
|
||||
" > Something's wrong!\n")
|
||||
@@ -248,7 +249,7 @@ open class GradleOutputParsersMessagesImportingTest : BuildViewMessagesImporting
|
||||
|
||||
@Test
|
||||
fun `test startup build script errors with column info`() {
|
||||
importProject("apply plugin: 'java'" +
|
||||
importProject("apply plugin: 'java'\n" +
|
||||
"dependencies { \n" +
|
||||
" testCompile group: 'junit', name: 'junit', version: '4.12\n" +
|
||||
"}")
|
||||
|
||||
Reference in New Issue
Block a user