getgauge / Intellij-Plugin

Gauge IntelliJ IDEA plugin
Apache License 2.0
44 stars 28 forks source link

IntelliJ Community Edition 2019.2 using Gauge 0.3.16 plugin #391

Closed stevenmchaves closed 5 years ago

stevenmchaves commented 5 years ago

Expected behavior

I am expecting no issues when I attempt to execute the Spec in debug mode.

Actual behavior

java.lang.reflect.InvocationTargetException at jdk.internal.reflect.GeneratedMethodAccessor93.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at com.intellij.execution.process.ProcessHandler$2.invoke(ProcessHandler.java:214) at com.sun.proxy.$Proxy21.onTextAvailable(Unknown Source) at com.intellij.execution.process.ProcessHandler.notifyTextAvailable(ProcessHandler.java:188) at com.intellij.execution.process.ColoredProcessHandler.textAvailable(ColoredProcessHandler.java:83) at com.intellij.execution.process.ColoredProcessHandler.coloredTextAvailable(ColoredProcessHandler.java:57) at com.intellij.execution.process.AnsiEscapeDecoder.processTextChunk(AnsiEscapeDecoder.java:99) at com.intellij.execution.process.AnsiEscapeDecoder.escapeText(AnsiEscapeDecoder.java:63) at com.intellij.execution.process.ColoredProcessHandler.notifyTextAvailable(ColoredProcessHandler.java:46) at com.intellij.execution.process.BaseOSProcessHandler$SimpleOutputReader.onTextAvailable(BaseOSProcessHandler.java:179) at com.intellij.util.io.BaseOutputReader.sendText(BaseOutputReader.java:211) at com.intellij.util.io.BaseOutputReader.processInput(BaseOutputReader.java:195) at com.intellij.util.io.BaseOutputReader.readAvailableNonBlocking(BaseOutputReader.java:114) at com.intellij.util.io.BaseDataReader.readAvailable(BaseDataReader.java:77) at com.intellij.util.io.BaseDataReader.doRun(BaseDataReader.java:155) at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:208) at com.intellij.util.io.BaseDataReader.lambda$start$0(BaseDataReader.java:61) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:834) Caused by: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Invalid escape sequence at line 1 column 51 path $.message at com.google.gson.Gson.fromJson(Gson.java:902) at com.google.gson.Gson.fromJson(Gson.java:852) at com.google.gson.Gson.fromJson(Gson.java:801) at com.google.gson.Gson.fromJson(Gson.java:773) at com.thoughtworks.gauge.execution.runner.GaugeOutputToGeneralTestEventsProcessor.processServiceMessages(GaugeOutputToGeneralTestEventsProcessor.java:61) at com.intellij.execution.testframework.sm.runner.OutputToGeneralTestEventsConverter.processConsistentText(OutputToGeneralTestEventsConverter.java:102) at com.intellij.execution.testframework.sm.runner.OutputToGeneralTestEventsConverter$1.onTextAvailable(OutputToGeneralTestEventsConverter.java:59) at com.intellij.execution.testframework.sm.runner.OutputEventSplitter.flushInternal(OutputEventSplitter.kt:149) at com.intellij.execution.testframework.sm.runner.OutputEventSplitter.processInternal(OutputEventSplitter.kt:94) at com.intellij.execution.testframework.sm.runner.OutputEventSplitter.process(OutputEventSplitter.kt:68) at com.intellij.execution.testframework.sm.runner.OutputToGeneralTestEventsConverter.process(OutputToGeneralTestEventsConverter.java:85) at com.intellij.execution.testframework.sm.SMTestRunnerConnectionUtil$2.onTextAvailable(SMTestRunnerConnectionUtil.java:213) ... 24 more Caused by: com.google.gson.stream.MalformedJsonException: Invalid escape sequence at line 1 column 51 path $.message at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1559) at com.google.gson.stream.JsonReader.readEscapeCharacter(JsonReader.java:1550) at com.google.gson.stream.JsonReader.nextQuotedValue(JsonReader.java:1004) at com.google.gson.stream.JsonReader.nextString(JsonReader.java:815) at com.google.gson.internal.bind.TypeAdapters$16.read(TypeAdapters.java:418) at com.google.gson.internal.bind.TypeAdapters$16.read(TypeAdapters.java:406) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:129) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:220) at com.google.gson.Gson.fromJson(Gson.java:887) ... 35 more

Steps to reproduce

1. 2. 3.

Version information

Apoorva-GA commented 5 years ago

@stevenmchaves I am able to execute a spec in debug mode in IntelliJ Community Edition 2019.2 using Gauge 0.3.16 plugin.

Steps followed :

I am on MacOS Mojave and java 12.

Please check if you able to run a sample java project in debug mode like mentioned above also specify the details asked in the issue like steps to reproduce and version information.

stevenmchaves commented 5 years ago

I ended up removing some other plugins from IntelliJ that I was using and that solved the issue.