-
-
Notifications
You must be signed in to change notification settings - Fork 68
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
[Bug]: Path inspector left and right-click issues #347
Comments
Thanks @Gregg8 for spotting this. |
When you said "paths returned by devtools", I initially interpreted that to mean "paths returned by I get mixed results (which might also be useful info when you're working on this):
I am not set up with a dev version of 10x and not sure how much time I have to do that. I'm hoping with all the above detail, you would be able to set up some test data to reproduce the issues. Note: While testing that, I found another thing I'd consider to be an issue (have added it above):
|
This would mean that the issue is in how we merge paths after receiving them from devtools which would point to this line. |
After some digging it seems like issues 1(Vectors can cause incorrect path to be generated) and 2(Sets can cause incorrect path to be generated) are an effect of this line in |
More details about these issues.
When you click the values in the vector the path displayed should be a number/index. That means, that instead of the following paths
I should get For issue 2, I am polishing a fix to devtools that should include extra code implementation for sets. Sets are not currently handled correctly in the implementation of paths. e.g {:a 2
:c #{2 3 [4 5]}
:b 3} The current implementation will have the values I cannot reproduce issue 3 yet and I am still having issues reproducing issue 4 consistently. More details will come later. |
The following tasks are highlighted in this issue,
I have attached a PR that fixes most of the issues mentioned above except 2;
|
Have been testing the items you checked off and they all now look good to me 👍 Outstanding issuesExpand arrow stops working
Copy REPL command fails
Further feedback:
Finally...Just a comment (and possibly an enhancement request), I note that in terms of path inspector nesting, we're a bit stuck in terms of lists. Comparing
I haven't looked up why Since the path in the inspector is used with I note that |
Thanks @Gregg8 for the feedback.
|
Tested
|
|
Note: with our new code in place, I retested |
I think I've narrowed down all the issues still open here. Let's open a new ticket if anything else comes up. I did a rewrite of the popup menu, since it was made of all imperative interop stuff. Now it's standard reagent/re-frame: 9c27b45 My takeaways so far:
|
Firstly, I must say I love this feature.
Congrats @MawiraIke for doing the hard work!
1 - Vectors can cause incorrect path to be generated
Steps I used to reproduce:
Take for example, this path which I manually constructed and works...
[:vega/specs :curve-lines "layer" 0 "mark" "size"]
(1) I started with a blank inspector and started clicking down the tree...
Clicked on
:vega/specs
:=>
[:vega/specs]
Then clicked on
:curve-lines
:=>
[:vega/specs :curve-lines]
Then clicked on
layer
:=>
[:vega/specs :curve-lines "layer"]
Then clicked on
mark
:=>
[:vega/specs :curve-lines 0 "mark"]
This is the point at which it failed:
(2) Starting again (from a blank inspector) I click on item 2...
Clicked on
:curve-lines
:=>
[:vega/specs :curve-lines]
Then clicked on
layer
:=>
["layer"]
This time it removed all 2 elements before appending
(3) Starting again, I click on item 3,
layer
:=>
[:vega/specs :curve-lines "layer"]
Then clicked on
mark
:=>
[0 "mark"]
(4) Starting again, I click on item 4,
mark
and this works:=>
[:vega/specs :curve-lines "layer" 0 "mark"]
(5) Starting again, I click on item 5,
size
and this works:=>
[:vega/specs :curve-lines "layer" 0 "mark" "size"]
So it seems to have a problem with vector/array boundaries when you are already nested down the tree.
2 - Sets can cause incorrect path to be generated
Steps I used to reproduce:
[:curves/processing-step :job/task-ids]
:job/task-ids
correctly produces[:curves/processing-step :job/task-ids]
[:curves/processing-step :job/task-ids :job/task-ids]
3 - The
Copy REPL command
failsSteps I used to reproduce:
app-db
itself4 - Expand arrow becomes unclickable
Steps I used to reproduce:
5 - Current path is erased when you
right-click > Copy path
Steps I used to reproduce:
right-click > Copy path
while I'm nested in the tree, it clears the nested path to empty and returns me back to the full app-db10x Version
1.2.1
Reagent Version
1.1.0
React Version
17.0.2-0
re-frame Version
1.2.0
What browsers are you seeing the problem on?
Chrome
The text was updated successfully, but these errors were encountered: