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

GUI: autocomplete runs function (!) #7604

Closed
Tom-Willemsen opened this issue Feb 2, 2023 · 7 comments
Closed

GUI: autocomplete runs function (!) #7604

Tom-Willemsen opened this issue Feb 2, 2023 · 7 comments
Assignees
Labels
2 bug no_release_notes Tickets that do not need release notes, use sparingly! urgent

Comments

@Tom-Willemsen
Copy link
Contributor

In the ibex gui scripting console type:

def x():
    print("hello")

Then x(). (to trigger the autocomplete) - the GUI prints "Hello" in a loop - this is very bad if e.g. the function has some effects that should not run immediately.

Worse, if x() does time.sleep(...) it hangs the GUI for that amount of time.

I think we probably need to fix this one and deploy a hotfix in time for cycle...

@Tom-Willemsen Tom-Willemsen added this to Ready in IBEX Project Board via automation Feb 2, 2023
@github-actions github-actions bot added the ready label Feb 2, 2023
@Tom-Willemsen
Copy link
Contributor Author

See if we can simply disable autocomplete as a hotfix for instruments.

@KathrynBaker KathrynBaker added this to the SPRINT_2023_02_02 milestone Feb 2, 2023
@rerpha
Copy link
Contributor

rerpha commented Feb 3, 2023

i tried giving this a go, i dont think its as simple as just setting an ipython autosuggest/turning jedi off, and also seems to be limited to the client scripting perspective (couldnt reproduce in a standalone genie_python.bat). I think setting autocomplete to off can be done by some pydev prefs, but im not sure on how to actually set them in a good way

@rerpha rerpha moved this from Ready to In Progress in IBEX Project Board Feb 6, 2023
@github-actions github-actions bot added in progress and removed ready labels Feb 6, 2023
@rerpha
Copy link
Contributor

rerpha commented Feb 6, 2023

pydev pr: ISISComputingGroup/Pydev#4
ibex gui: ISISComputingGroup/ibex_gui#1525

I have updated the p2 repo to the pydev branch in the first PR.

next steps for this ticket:

  • create a patch release for the client for this change
  • decide who to actually deploy it to (just SANS/REFL, or all insts running v12.0.1?)

@Tom-Willemsen
Copy link
Contributor Author

In a meeting with myself, @ThomasLohnert @FreddieAkeroyd @KathrynBaker we decided:

  • We will create a patch release with the hotfix above to disable autocomplete.
  • We will patch this on all TS2 instruments as a priority
  • We will prioritise looking for a better fix for TS1 instruments
    • If we find a better fix - great - we will deploy that to TS1 in time for beam
    • If we don't find a better fix, we will deploy the hotfix above to TS1 instruments closer to beam start

@Tom-Willemsen Tom-Willemsen added the 8 label Feb 7, 2023
@Tom-Willemsen
Copy link
Contributor Author

Tom-Willemsen commented Feb 7, 2023

Deploys (TS2):

  • WISH
  • LARMOR
  • INTER
  • POLREF
  • SANS2D
  • ZOOM
  • IMAT
  • LET
  • NIMROD

TS1:

  • LOQ
  • MUSR
  • RIKENFE
  • ALF

@rerpha rerpha self-assigned this Jul 7, 2023
@rerpha rerpha added 2 and removed 8 labels Jul 7, 2023
@rerpha
Copy link
Contributor

rerpha commented Jul 7, 2023

We are going to close this ticket as we are happy that we've patched to everyone that needs the issue, which has been present since very early days of the GUI. Ticket will be created for the implementation of a solution (probably in PyDev) as well as a task for checking that we are deploying it or the workaround to the next release group in summer.

@rerpha rerpha closed this as completed Jul 7, 2023
IBEX Project Board automation moved this from Ready to Review Complete Jul 7, 2023
@FreddieAkeroyd
Copy link
Member

Having installed pvdev into a standalone eclipse, the behaviour is definitely there. As noted in #7850:

@rerpha rerpha added the no_release_notes Tickets that do not need release notes, use sparingly! label Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2 bug no_release_notes Tickets that do not need release notes, use sparingly! urgent
Projects
None yet
Development

No branches or pull requests

4 participants