Skip to content

"Find Next" has no effect #724

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

Closed
per1234 opened this issue Dec 27, 2021 · 7 comments
Closed

"Find Next" has no effect #724

per1234 opened this issue Dec 27, 2021 · 7 comments
Assignees
Labels
conclusion: resolved Issue was resolved criticality: low Of low impact topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@per1234
Copy link
Contributor

per1234 commented Dec 27, 2021

Describe the bug

The Edit > Find Next menu item is intended to find the next occurrence of the chosen text.

🐛 It currently has no effect.

To Reproduce

  1. Select File > New from the Arduino IDE menus.
  2. Select Edit > Find from the Arduino IDE menus.
    The "Find" UI opens with void pre-filled.
  3. Select Edit > Find Next from the Arduino IDE menus.
    🐛 Nothing happens.
  4. Select Edit > Find Next from the Arduino IDE menus.
    🐛 Nothing happens.
  5. Select Edit > Find Previous from the Arduino IDE menus.
    🙂 The occurrence of void at line 1 is selected.
  6. Select Edit > Find Previous from the Arduino IDE menus.
    🙂 The occurrence of void at line 6 is selected.
  7. In the "Find" UI, click the icon.
    🙂 The occurrence of void at line 1 is selected.

Expected behavior

The same behavior from Edit > Find Next as from Edit > Find Previous, except in the opposite direction.

Desktop

Initial report

  • OS: Windows 10
  • IDE Version: 2.0.0-rc3
    Date: 2021-12-22T15:46:56.004Z
  • Arduino CLI Version: 0.20.2 [13783819]

Last checked with

  • OS: Windows 10
  • Version: 2.0.0-rc3-snapshot-9ecff86
    Date: 2022-02-15T15:53:31.454Z
    CLI Version: 0.21.0 [10107d24]
@per1234 per1234 added topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project labels Dec 27, 2021
@ubidefeo
Copy link

@per1234
I have tested this one on a recent PR build and it is working form the UI's arrows but the shortcut (CMD+G on Mac) is not honoured

@ubidefeo ubidefeo added this to the arduino-ide rc5 milestone Feb 17, 2022
@ubidefeo ubidefeo added the criticality: low Of low impact label Feb 17, 2022
@ubidefeo
Copy link

investigate if it's a bug/regression from Monaco editor, since when hitting the shortcut the popup opens with ? of X (see screenshot)
/Users/ubidefeo/Library/Application Support/CleanShot/media/media_ky5DPu4DMW/CleanShot 2022-02-17 at 11.55.31@2x.pngCleanShot 2022-02-17 at 11.55.31@2x.png

@per1234
Copy link
Contributor Author

per1234 commented Feb 17, 2022

it is working form the UI's arrows

Same here, as I reported in step (7) in the instructions.

the shortcut (CMD+G on Mac) is not honoured

Same for me on Windows (Ctrl+G). I notice that there is a shortcut collision with the default shortcut for Go to Line/Column... (did anyone bother to check this stuff?), but even after I change Go to Line/Column... shortcut to something else Ctrl+G still doesn't do a "Find Next". Ctrl+Shift+G works just fine for "Find Previous".

when hitting the shortcut the popup opens with ? of X

@ubidefeo which shortcut?

@ubidefeo does it also happen with the File > New sketch, or only with that "NiclaShopSensor" sketch?

@msujew
Copy link
Contributor

msujew commented Mar 15, 2022

I fixed this and accidentally pushed to main ca1c240 directly. Please revert it, if you notice it does not work as expected or you want me to create a PR for this.

Additionally, you should probably mark main to be protected.

@AlbyIanna
Copy link
Contributor

Thanks for the suggestion @msujew. I agree, we should protect main.

The commit seems pretty clean to me. If it works, I'd leave it there.

@per1234 @ubidefeo would you please help me give it a try?

@AlbyIanna
Copy link
Contributor

I tested ca1c240 and it solves the issue for me.
Anyone interested in testing it can find the build here

@per1234
Copy link
Contributor Author

per1234 commented Mar 16, 2022

Closing as fixed by ca1c240

Thanks @msujew!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: resolved Issue was resolved criticality: low Of low impact topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

5 participants