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

Speed up if tables are involved and changed highlighting of parameters in steps #26

Open
wants to merge 116 commits into
base: master
Choose a base branch
from

Conversation

debritod
Copy link

I made a bug fix in JBehaveStepsIndex. If tables where passed to steps, the plugin was slowed down to a felt freeze of the IDE. My change cuts the steptext till the beginning of the table. E.g.
"Given A table:
| a | b|
| c | d |
"
is cut down to: "Given A table:". Then this cut down text is matched against the stepdefinitions.
We had this problem, because we have more than 800 stepdefinitions and many tables. The tables have more than 4 rows and 4 columns.

The second change is a move of the parameters highlighting from UndefinedStepInspection to the StoryAnnotator (including a bug fix).

The third change includes some resolving of deprecation issues and null-pointer checking.

All those changes were done for Intellij 14.0.2 and JDK 1.7.0_71

@debritod
Copy link
Author

I changed the parser to have its own token for "GivenStories:". Now, the file-path of a GivenStory is a token and has its own text-style. You can ctrl+click it now and you will jump to the specified file. There is also a completion for GivenStories.
Additionally, I made the settings project based.

@debritod debritod closed this Feb 10, 2015
@debritod debritod reopened this Feb 10, 2015
@harley84
Copy link
Collaborator

Thanks, I'll take a look later.

On Tue, Feb 10, 2015, 12:59 Dinis de Brito e Cunha notifications@github.com
wrote:

Reopened #26 #26.


Reply to this email directly or view it on GitHub
#26 (comment).

debritod and others added 30 commits April 17, 2015 16:57
…ory step is contained in a java step. TokenMap doesn't resolve this, because it thinks, that the rest of the line is a parameter. This must be resolved in ParametrizedString.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants