wxMaxima-developers / wxmaxima

A gui for the computer algebra system Maxima built with wxWidgets
https://wxMaxima-developers.github.io/wxmaxima/
Other
461 stars 96 forks source link

Cursor is not displayed in cells when editing code #1783

Open IInatas opened 1 year ago

IInatas commented 1 year ago

Dear Wxmaxima Team,

thanks for working constantly on this great piece of software. I discover a problem using the latest version (see below) with Manjaro. When the cursor is placed in a cell with the mouse, it is visible. Moving the cursor with the cursor keys only shifts the cursor marker invisibly - i.e. the cursor stroke remains, but editing takes place at the desired position.

regards, Marcus Menzel

build_info(version="5.46.0",timestamp="2023-04-05 13:12:48",host="x86_64-unknown-linux-gnu",lisp_name="SBCL",lisp_version="2.3.3",maxima_userdir="/home/marcus/.maxima",maxima_tempdir="/tmp",maxima_objdir="/home/marcus/.maxima/binary/5_46_0/sbcl/2_3_3",maxima_frontend="wxMaxima",maxima_frontend_version="23.05.1_GTK3") Screenshot_20230530_124708

hugodiniz commented 1 year ago

Detect same problem.

yurytch commented 11 months ago

Looks like a graphical toolkit problem. I have both horizontal ('post-cell') and vertical (editing) forms of cursor visible . My instance of wxMaxima is compiled against wxGTK3 3.0.5.

gunterkoenigsmann commented 11 months ago

Besides wxDC (that is used for drawing the cursor rectangle) the bug could be in wxTimer, in that case...

gunterkoenigsmann commented 11 months ago

...or we somehow use more timers than Windows allows us to, sometimes: Windows is said to be very restrictive in that respect.

Famondir commented 11 months ago

Having the same problem on Windows 11 x64 with latest Maxima and wxMaxima 23.051 (build 22621). The cursor stays visible if I placed it with the mouse and moves (coorectly?) if I use up or down key. But with left and right key it does not move at all. But if I press up or down again I can see that it has changed position left or right (but not visible).

Okay. It seems to be more complicated. In my first 8 to 12 statements I define matrices and the cursor works. When I go to statements after 11 (I define functions there) the cursor does not work. When I go back to statements in between 8 and 11 from 12+ it does not work. When I go back to statements 8 and before it works again. From there I con go to statements up to 11 with working cursor.

Ardhanm commented 9 months ago

Same happens to me on wxMaxima 23.05.1. I can move the cursor left and right while on the first 8 statements. From there on, it doesn't work. Any advance on this issue? Thank you.

Update: I just installed wxMaxima 23.08.0 and configured the path to Maxima inside prior wxMaxima 23.05.1 installation path. Now the cursor seems to work perfectly fine.

gunterkoenigsmann commented 9 months ago

I had to change the code that displays the cursor after that release. Let's hope for the best: on my computer I don't see that problem.

Which operating system are you using?

Ardhanm commented 9 months ago

Windows 11

silverus777 commented 6 months ago

maxima Hello everyone, I can confirm the issue and add more info. In my case the problem has do to something with window content scroll position. It look like area being updated is misplaced. Displacement grows with position of vertical scroll bar of window content:

  1. When it is top position, everything is ok,
  2. When moved one notch down, only part of height of the cursor is being updated* (in small window).
  3. When moved forward down, entire cursor stops being updated. *In big window (full screen) one notch down is enough to stop updating of entire cursor.

It would be great if you could figure this out! ( wxMaxima 23.05.1, Windows 11 23H2 )