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

IMPORTANT: selector extraction DOES NOT work anymore! #7165

Closed
Ducasse opened this issue Aug 23, 2020 · 6 comments · Fixed by #7660
Closed

IMPORTANT: selector extraction DOES NOT work anymore! #7165

Ducasse opened this issue Aug 23, 2020 · 6 comments · Fixed by #7660
Labels
Priority: Critical To fix or review as soon as possible Type: Bug

Comments

@Ducasse
Copy link
Member

Ducasse commented Aug 23, 2020

in P8

selecting between: 2 and: in the following and press Cmd-M find between:and:

1 between: 2
and: 3

This is not the case in P9.

@Ducasse Ducasse added Type: Bug Priority: Critical To fix or review as soon as possible labels Aug 23, 2020
@Ducasse
Copy link
Member Author

Ducasse commented Aug 23, 2020

A systematic analysis

in P8

in Playground
-selecting all expression works
-selecting between: 2 and: works
-placing caret inside between: or and: works

In calypso method pane replacing fully the method body
-selecting all expression works
-selecting between: 2 and: works
-placing caret inside between: or and: works

In calypso class pane replacing fully the class body
-selecting all expression works
-selecting between: 2 and: works
-placing caret inside between: or and: works

In calypso class comment pane replacing fully the comment
-selecting all expression works
-selecting between: 2 and: works
-placing caret inside between: or and: works

In calypso class comment pane replacing with a free text comment starting
-selecting all expression works
-selecting between: 2 and: works
-placing caret inside between: or and: works

@Ducasse
Copy link
Member Author

Ducasse commented Aug 23, 2020

in P9

in Playground
-selecting all expression DOES NOT work
-selecting between: 2 and: DOES NOT work
-placing caret inside between: or and: DOES NOT work

In calypso method pane replacing fully the method body
-selecting all expression DOES NOT work
-selecting between: 2 and: DOES NOT work
-placing caret inside between: or and: DOES NOT work

In calypso class pane replacing fully the class body
-selecting all expression works
-selecting between: 2 and: DOES NOT work
-placing caret inside between: or and: DOES NOT work different version

In calypso class comment pane replacing fully the comment
-selecting all expression works
-selecting between: 2 and: DOES NOT work
-placing caret inside between: or and: (because parseNode: is not implemented on comment)

In calypso class comment pane replacing with a free text comment starting
-selecting all expression works
-selecting between: 2 and: DOES NOT work
-placing caret inside between: or and: raise an error (because parseNode: is not implemented on comment)

@Ducasse Ducasse changed the title selector extraction is degraded IMPORTANT: selector extraction DOES NOT work anymore! Aug 23, 2020
@Ducasse
Copy link
Member Author

Ducasse commented Aug 23, 2020

I started to extract the logic of selector extraction from Rubric so that it can be reused in commands for example.
The first attempt is available at:
https://github.com/Ducasse/mybecher/tree/master/myBecher-Xtractor

GitHub
to hold experiences. Contribute to Ducasse/mybecher development by creating an account on GitHub.

@MarcusDenker
Copy link
Member

this seems to be a result of the parser related changed (it worked before I went on holidays)

@guillep
Copy link
Member

guillep commented Aug 25, 2020 via email

lesueur-philippe added a commit to lesueur-philippe/pharo that referenced this issue Aug 28, 2020
tesonep added a commit to lesueur-philippe/pharo that referenced this issue Aug 28, 2020
@tesonep
Copy link
Collaborator

tesonep commented Aug 28, 2020

I have just fixed the problem for Rubric and Calypso, the new tools have other logic and we need to integrate the existing logic on Rubric to work with it. We need to get the selection from the AST to correctly handling spaces and new lines.

Ducasse added a commit that referenced this issue Aug 29, 2020
…r-extraction-DOES-NOT-work-anymore

Quick fix of #7165.
@MarcusDenker MarcusDenker linked a pull request Nov 5, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: Critical To fix or review as soon as possible Type: Bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants