Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

Provide quickfixes for illegal rule references (WIP) #1492

Closed
wants to merge 19 commits into from

Conversation

nbhusare
Copy link
Contributor

@nbhusare nbhusare commented Jul 21, 2020

  • Enhanced the quick-fix to handle case where a terminal-fragment is referenced as a hidden token in a Parser rule definition
  • Added method createChangeToIssueResolution() to avoid duplicate 'Change to' quick-fix if there are multiple/different fixes for an issue
  • Added quick-fix method fixUnresolvedEnumRule().

Signed-off-by: nbhusare neerajbhusare@gmail.com

createLinkingIssueResolutions(issue, acceptor);
createNewRule(ruleName, ruleType));

Optional<IssueResolution> iResolution = acceptor.getIssueResolutions().stream().filter(ir -> {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i am not sure if i like the after effect filtering
shouldnt
createLinkingIssueResolutions
be modified to ctreate resolutions for that matching methods rule type only

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@szarnekow what do you think?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd be in favor of adding another @Fix(UNRESOLVED_TERMINAL_RULE) and call createLinkingIssueResolutions() from there to make sure it is only invoked once for that issue code.

@cdietrich cdietrich requested a review from szarnekow July 24, 2020 06:50
Signed-off-by: nbhusare <neerajbhusare@gmail.com>
@nbhusare nbhusare changed the title Provide quickfixes for illegal rule references (WIP) Provide quickfixes for illegal rule references Jul 24, 2020
@nbhusare nbhusare changed the title Provide quickfixes for illegal rule references Provide quickfixes for illegal rule references (WIP) Jul 24, 2020
cdietrich and others added 10 commits July 29, 2020 07:05
…ultiple threads

Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
[eclipse#1494] fixed race condition on loading the Xtext index from multiple threads
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
…or tycho 2.0

Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
[eclipse/xtext#1816] harmonize includeSource to true in preparation for tycho 2.0
- Extend the 'Xtext UI Testing' test infrastructure by the
AbstractCodeMiningTest abstract class to provide a base infrastructure
for testing the code mining capabilities.
- Extend the Xtext Examples by CodeMiningTest test cases to
demonstrate the usage of the AbstractCodeMiningTest class.

Signed-off-by: Tamas Miklossy <miklossy@itemis.de>
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
Copy link
Contributor

@szarnekow szarnekow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, that was too fast from my side. Is this good to be reviewed or WIP?

@szarnekow szarnekow self-requested a review August 3, 2020 08:22
cdietrich and others added 6 commits August 3, 2020 13:21
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
Signed-off-by: Nico Prediger <mail@nicoprediger.de>
…ap_version

[releng] Bootstrap against 2.23.0.M2
removed obsolete org.eclipse.xtend.shared.ui.prefs
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
@nbhusare
Copy link
Contributor Author

@szarnekow The code changes are good to be reviewed. I haven't fixed the unit-tests which is why I have put WIP.

Signed-off-by: nbhusare <neerajbhusare@gmail.com>
@cdietrich
Copy link
Member

@nbhusare the 19 commits look wired? did you properly rebase on eclipse/master?

@nbhusare
Copy link
Contributor Author

nbhusare commented Aug 10, 2020

@cdietrich I had rebased correctly. In Eclipse, I saw that my branch was lagging behind some comments in remote after which I pulled which lead to this state.

@cdietrich
Copy link
Member

Bildschirmfoto 2020-08-10 um 11 40 43
there is this merge commit.
on rebases there should be no merges

@nbhusare
Copy link
Contributor Author

@cdietrich I am not sure. I don't merge except on the master (git fetch upstream, git merge upstrem/master, git push) after which I switch to the feature branch and do a git rebase master.

@nbhusare
Copy link
Contributor Author

@cdietrich Probably the git pull on the feature branch might have created the merge commit. I am not sure.

@nbhusare
Copy link
Contributor Author

@cdietrich I'll be discarding the branch after porting the changes to a new one.

@cdietrich
Copy link
Member

can you please try to clean that up

  • undo last commit (e.g. git reset HEAD~)
  • rebase on eclipse/master

or

  • move create a new branch from yours
  • on the pr branch, reset to origin master and cherry-pick your commit

or create a new branch?

@nbhusare
Copy link
Contributor Author

@cdietrich I have created a new branch - #1507
@szarnekow Please use pull/1507 for any further review.

@nbhusare nbhusare closed this Aug 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants