getgauge / Intellij-Plugin

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

gradle project. spec file error. #371

Closed yuqengo closed 5 years ago

yuqengo commented 5 years ago

Expected behavior

cursor on the spec file * Vowels in English language are "aeiou". 'Menu->Navigage->Go to'. go to src/test/StepImplementation.java @Step Annotation

Actual behavior

Cannot find declaration to go to 2019-01-27 18 17 02 2019-01-27 18 12 00

gauge run and gradle gauge is no problem

$ gauge run  
# Specification Heading
  ## Vowel counts in single word         ✔ ✔
  ## Vowel counts in multiple word       ✔ ✔

Successfully generated html-report to => /Users/***/reports/html-report/index.html
Specifications: 1 executed      1 passed        0 failed        0 skipped
Scenarios:      2 executed      2 passed        0 failed        0 skipped

Total time taken: 86ms

Telemetry
---------

This installation of Gauge collects usage data in order to help us improve your experience.
The data is anonymous and doesn't include command-line arguments.
To turn this message off opt in or out by running 'gauge telemetry on' or 'gauge telemetry off'.

Read more about Gauge telemetry at https://gauge.org/telemetry
$ gradle gauge
# Specification Heading
  ## Vowel counts in single word      ✔ ✔
  ## Vowel counts in multiple word    ✔ ✔

Successfully generated html-report to => /Users/***/reports/html-report/index.html
Specifications:     1 executed      1 passed        0 failed        0 skipped
Scenarios:      2 executed      2 passed        0 failed        0 skipped

Total time taken: 75ms

Telemetry
---------

This installation of Gauge collects usage data in order to help us improve your experience.
The data is anonymous and doesn't include command-line arguments.
To turn this message off opt in or out by running 'gauge telemetry on' or 'gauge telemetry off'.

Read more about Gauge telemetry at https://gauge.org/telemetry

BUILD SUCCESSFUL in 2s
2 actionable tasks: 2 executed

Steps to reproduce

  1. create gradle project build.gradle
    
    apply plugin: 'java'
    apply plugin: 'gauge'
    apply plugin: 'application'
    apply plugin: 'idea'

group 'foo' version '1.0-SNAPSHOT'

buildscript { repositories { mavenCentral() } dependencies { classpath 'com.thoughtworks.gauge.gradle:gauge-gradle-plugin:+' } }

repositories { mavenCentral() }

dependencies { compile( 'com.thoughtworks.gauge:gauge-java:+', 'junit:junit:4.12' ) }

  1. $ gauge init java
  2. install https://plugins.jetbrains.com/plugin/7535-gauge
  3. Restart intellij

Gauge version

$ gauge -v 
Gauge version: 1.0.4

Plugins
-------
html-report (4.0.6)
java (0.6.9)
screenshot (0.0.1)

intellij version

IntelliJ IDEA 2018.3.3 (Ultimate Edition)
Build #IU-183.5153.38, built on January 10, 2019
Subscription is active until August 1, 2019
JRE: 1.8.0_152-release-1343-b26 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.13.6
gaugebot[bot] commented 5 years ago

The fix should be available in nightly >= 6-2-2019

yuqengo commented 5 years ago

I used v0.3.15.nightly-2019-02-07. This problem is fixed. thank you !

Debashis9012 commented 5 years ago

This issue has been validated. Its working as excepted.

Version:

Gauge version: 1.0.5.nightly-2019-02-08
Commit Hash: 6971850

Plugins
-------
dotnet (0.1.1.nightly-2019-01-29)
html-report (4.0.7.nightly-2019-01-11)
java (0.7.1.nightly-2019-02-08)