-
Notifications
You must be signed in to change notification settings - Fork 48
Description
Describe the bug
Get Failed to start gauge API: Timed out connecting to java each time when try to debug a spec using gauge java version 0.7.8 till to latest version 0.7.15 in Intellij IDEA.
Using the gauge-java version 0.7.7 it works as expected.
To Reproduce
Steps (or project) to reproduce the behavior:
- Initialize a gauge+maven+selenium project
- Try to debug a spec
- See error
"C:\Program Files\Gauge\bin\gauge.exe" run --machine-readable --hide-suggestion --simple-console C:/Workspace/SANDBOX/gauge-selenium-maven/specs/example.spec
Testing started at 5:31 PM ...
Runner Ready for Debugging
Listening for transport dt_socket at address: 51544
Error ----------------------------------
[Gauge]
Failed to start gauge API: Timed out connecting to java
Get Support ----------------------------
Docs: https://docs.gauge.org
Bugs: https://github.com/getgauge/gauge/issues
Chat: https://github.com/getgauge/gauge/discussions
Your Environment Information -----------
windows, 1.4.0, 5cc544c
html-report (4.1.0), java (0.7.15), reportportal (1.12.0), screenshot (0.1.0), spectacle (0.1.4)
Process finished with exit code 1
Screenshot
Logs
gauge.log
28-07-2021 17:42:35.334 [Gauge] [DEBUG] Created gauge_screenshots_dir at C:\Workspace\SANDBOX\gauge-selenium-maven\.gauge\screenshots
28-07-2021 17:42:35.338 [Gauge] [DEBUG] Plugin java is already installed.
28-07-2021 17:42:35.339 [Gauge] [DEBUG] Plugin html-report is already installed.
28-07-2021 17:42:35.340 [Gauge] [DEBUG] Parsing started.
28-07-2021 17:42:35.340 [Gauge] [DEBUG] Started concepts parsing.
28-07-2021 17:42:35.348 [Gauge] [DEBUG] 0 concepts parsing completed.
28-07-2021 17:42:35.348 [Gauge] [DEBUG] Started specifications parsing.
28-07-2021 17:42:35.349 [Gauge] [DEBUG] 1 specifications parsing completed.
28-07-2021 17:42:35.349 [Gauge] [DEBUG] Parsing completed.
28-07-2021 17:42:36.020 [Gauge] [DEBUG] Checking updates...
28-07-2021 17:42:36.025 [Gauge] [DEBUG] Downloading https://downloads.gauge.org/plugin/html-report?l=java&p=html-report,java,reportportal,screenshot,spectacle&o=windows&a=amd64
28-07-2021 17:42:36.378 [Gauge] [DEBUG] Downloading https://downloads.gauge.org/plugin/java?l=java&p=html-report,java,reportportal,screenshot,spectacle&o=windows&a=amd64
28-07-2021 17:42:36.510 [Gauge] [DEBUG] Downloading https://downloads.gauge.org/plugin/reportportal?l=java&p=html-report,java,reportportal,screenshot,spectacle&o=windows&a=amd64
28-07-2021 17:42:36.689 [Gauge] [DEBUG] Downloading https://downloads.gauge.org/plugin/screenshot?l=java&p=html-report,java,reportportal,screenshot,spectacle&o=windows&a=amd64
28-07-2021 17:42:36.857 [Gauge] [DEBUG] Downloading https://downloads.gauge.org/plugin/spectacle?l=java&p=html-report,java,reportportal,screenshot,spectacle&o=windows&a=amd64
28-07-2021 17:42:47.875 [java] [INFO] Runner Ready for Debugging
28-07-2021 17:42:48.604 [java] [INFO] Listening for transport dt_socket at address: 60747
28-07-2021 17:43:05.375 [Gauge] [CRITICAL] Failed to start gauge API: Timed out connecting to java
Expected behavior
Expect to break the execution on breakpoint.
Versions:
windows, 1.4.0, 5cc544c
html-report (4.1.0), java (0.7.15), reportportal (1.12.0), screenshot (0.1.0), spectacle (0.1.4)
-
Java version
openjdk version "11.0.2" 2019-01-15
OpenJDK Runtime Environment 18.9 (build 11.0.2+9)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode) -
Maven/Gradle version
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: C:\ProgramData\chocolatey\lib\maven\apache-maven-3.6.3\bin..
Java version: 11.0.2, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk-11.0.2
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
gauge -v
Gauge version: 1.4.0
Commit Hash: 5cc544c
Plugins
-------
html-report (4.1.0)
java (0.7.15)
reportportal (1.12.0)
screenshot (0.1.0)
spectacle (0.1.4)
Additionally want to demonstrate that using the version 0.7.7 I was able to debug the spec:

