[Gradle] build script error parser description: add empty line after location info IDEA-209457

GitOrigin-RevId: 165e58a19193312759892b6e46d5da0491f69269
This commit is contained in:
Vladislav.Soroka
2019-10-09 10:05:57 +00:00
committed by intellij-monorepo-bot
parent f6ea290b17
commit 6fbeea6cb6
2 changed files with 5 additions and 4 deletions
@@ -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
@@ -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" +
"}")