Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Step Navigation Does Not Resolve Steps in Dependent Libraries #15

Closed
jennapederson opened this issue Jan 4, 2012 · 4 comments
Closed

Comments

@jennapederson
Copy link

Steps to reproduce:

  1. Open Eclipse project (Main Project) which has a dependent library which contains Java step definitions (we have a maven dependency set up for a library of common steps).
  2. Create a story file in the Main Project which refers to a step which is defined in the dependent library.
  3. Verify that the step does not have a compilation marker next to it
  4. Nice to have: verify that the step can be navigated through to the downloaded source/class file (With M2Eclipse plugin, downloading sources will provide a source file to view)
@Arnauld
Copy link
Owner

Arnauld commented Jan 5, 2012

Thanks for your feedback, i'll definitively look at this as soon as possible.

FYI the corresponding code is within JavaAnalyzer.java where, for the moment, i'm only scanning IPackageFragmentRoot.K_SOURCE i.e. source folder

@Arnauld
Copy link
Owner

Arnauld commented Jan 12, 2012

Currently in master branch

Complete refactoring of the Java Scanner:

  • All the classpath is now scanned: source folders and libraries
  • Classes and packages scanned can be filtered to reduce overhead: a new preference page has been added to configure the filters. Filters can be setup globally through preferences, or by project through the project properties.
  • Step cache is now fully operational and not anymore recalculated each time: rebuild is triggered on JDT change, and the cache sub-hierarchy is only recalculated if required.

@Arnauld Arnauld closed this as completed Jan 12, 2012
@ghost ghost assigned Arnauld Jan 12, 2012
@Arnauld
Copy link
Owner

Arnauld commented Jan 12, 2012

4 Nice to have: verify that the step can be navigated through to the downloaded source/class file (With M2Eclipse plugin, downloading sources will provide a source file to view)

This should be automatically provided by the JDT and m2eclipse plugin for free

@Arnauld
Copy link
Owner

Arnauld commented Jan 13, 2012

FYI: JavaAnalyzer has been replaced by JavaScanner + methodcache package

JBehaveProject has been greatly simplied, and cache is marked dirty only JDT change. Rebuild is triggered if dirty and cache is queried.
Notice that MethodPerPackageFragmentRootCache maintains its own information, and when rebuild is triggered, it only traverse modified elements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants