FpDebug popup problem lazarus / 12-Debugger ---------------------------------------------------------------------- 440bx · 2024-04-27 00:01 Hello, In the attached screenshot, the top part shows how the "DistancesAddress" is displayed correctly. The bottom part shows it displayed incorrectly.  When there isn't enough space left at the bottom of the screen, some of the data seems to be scrolled off, e.g, the variable name is missing as are the first 3 of the array values (10, 10, 10) HTH. ---------------------------------------------------------------------- Martin_fr · 2024-04-27 07:21 Strange, I tried to reproduce. Win10. 64bit I get a hint with a scrollbar (and it is not scrolled). It is possible to enter the hint with the mouse and scroll it (or select/copy text from it). ---------------------------------------------------------------------- 440bx · 2024-04-27 08:10 Quote from: Martin_fr on April 27, 2024, 09:21:52 amStrange, I tried to reproduce. Win10. 64bit I get a hint with a scrollbar (and it is not scrolled). It is possible to enter the hint with the mouse and scroll it (or select/copy text from it). On Win 7 64 bit SP1, there is no scrollbar, it is not possible to enter the hint, it is not possible to select any of its text and definitely not scrolling it. ---------------------------------------------------------------------- WooBean · 2024-04-27 09:31 Quote from: 440bx on April 27, 2024, 10:10:33 amQuote from: Martin_fr on April 27, 2024, 09:21:52 amStrange, I tried to reproduce. Win10. 64bit I get a hint with a scrollbar (and it is not scrolled). It is possible to enter the hint with the mouse and scroll it (or select/copy text from it). On Win 7 64 bit SP1, there is no scrollbar, it is not possible to enter the hint, it is not possible to select any of its text and definitely not scrolling it. From the same environment as 440bx and Lazarus 3.99 (current trunk) I can see exactly what was described. I am used to such situation quite long time, but without pleasure. Long hints are not properly displayed, the "solution" is to scroll editor window to get a watched identifier at the top of editor window. ---------------------------------------------------------------------- Martin_fr · 2024-04-27 11:12 I don't know if AnchorDocking makes a diff... (I don't have that).  440bx image looks like he also does not have it => but better if he can confirm. In any way, this is the hint, not the debugger. What happens if (outside debugging) you hover over "TForm" which has a longer FpDoc entry. Then there would also be a hint of several lines. ---------------------------------------------------------------------- Martin_fr · 2024-04-27 11:59 Just tried, Windows 7 (though in a VM), 64bit todays 3.99. Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i //lots of empty lines program Project1;var foo: array[0..99] of integer;begin  foo[0]:=1;  foo[1]:=1;end.  Added lots of empty lines to get "foo" to the bottom. Hovering foo: Getting a scrollbar, and can enter the hint with my mouse. Did not try anchordocking. ---------------------------------------------------------------------- Martin_fr · 2024-04-27 12:04 Just to add, the ability to move the mouse over the hint depends on going there in a straight line (without too much jitter). Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TSourceEditorHintWindowManager.HideAutoHintAfterMouseMoved;const  MaxJitter = 3; If the hint is below the mouse, then if at any time you go up to a pos more than 3 pixel up from the closest y you had to the hint => then the hint closes. Same If you are outside further to the left (or right) than the hints borders. This may need fixes for DPI... ---------------------------------------------------------------------- 440bx · 2024-04-27 12:13 Quote from: Martin_fr on April 27, 2024, 01:12:31 pm440bx image looks like he also does not have it => but better if he can confirm. You're right.  I don't have anchor docking. ---------------------------------------------------------------------- Martin_fr · 2024-04-27 12:39 The I don't currently know what may be causing it. DPI settings? Though, I tried different ones. Something in the text? Maybe some text content is incorrectly measured. Try - TForm (no debug) - my sample code ---------------------------------------------------------------------- 440bx · 2024-04-27 13:00 I made a "short" (cannibalized) version of the program that exhibits the problem.  Hopefully, the problem will appear in your machine as well which would probably help determine the cause.  It's a complete project, that way we should have the same (or at least very similar) settings. The attached screenshot is from running the attached program and is there to show the "conditions" to trigger the problem. ETA: watch out: there is an ENDLESS LOOP in the program.  You'll have to forcefully terminate it (or fix it.) ETA: change line 305 to Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i       for hli := 0 to 1 dothat's gets rid of the infinite loop. ---------------------------------------------------------------------- Martin_fr · 2024-04-27 13:18 I tested on Win10 and 7 both 64bit => works fine here. For good measure, I also tested the current 3.2 release. Different distances to the screen bottom, even hiding part of the source edit behind the taskbar / and using a screen with taskbar on the side. ---------------------------------------------------------------------- Martin_fr · 2024-04-27 13:26 Maybe a font issue? Though I don't know which font the hint uses, if it follows the editor, or is system default, or  .... ---------------------------------------------------------------------- 440bx · 2024-04-27 13:50 Looking at WooBean's screenshot, he uses a different font and experiences the problem. One interesting thing in his screenshot is that the font in his popup window is different than the font in our popup window. At least we know it's something in the environment settings that causes the problem, not something in the source code. I tried it with v3.2 and there is no problem with that version.  It seems that some change in v3.99's code triggers the problem.  Attached is a screenshot of v3.2 and the popup window is as you described it in an earlier post. My guess at this time is that the problem is caused by an environment setting whose handling/code changed from v3.2 to v3.99 ---------------------------------------------------------------------- 440bx · 2024-04-27 20:26 @Martin, Just a thought and it is a long shot... my monitor resolution is 1920 x 1200 true color (32 bit) DPI is 100% (96 pixels per inch)  "Use Windows XP style DPI scaling" is checked and greyed, IOW, the current DPI setting prevents changing it. Maybe if you can set your monitor to those settings you'd experience the problem too ? (which might then help determine its exact cause in the code.) ---------------------------------------------------------------------- Martin_fr · 2024-04-27 21:39 I have already identical DPI settings on my Win 7 machine. The resolution is different, as is the screen size => and as I have set it to follow the size of the Window given by the VM, I did approximate your settings. Still getting the scrollbar. ------------------ There is somewhere a change in 3.99 about the hint size not being correct. (I am to busy to go looking). But then you should still be able to move the mouse over the hint. If you have code tool hints (with location of declaration), does it show the text for the declaration in blue / link)? ---------------------------------------------------------------------- 440bx · 2024-04-27 21:49 Quote from: Martin_fr on April 27, 2024, 11:39:39 pmIf you have code tool hints (with location of declaration), does it show the text for the declaration in blue / link)? Can you provide a screenshot of what you're referring to ?  I'm not clear about what you're asking. ---------------------------------------------------------------------- Martin_fr · 2024-04-27 23:04 New Projects, just added lines on top to scroll down. Mouse over "TForm" => then I can move the mouse over the hint, and the blue source location acts as link that I can click (it even has a hint to the hint). And this also would be another test, if you get a scrollbar. ---------------------------------------------------------------------- Martin_fr · 2024-04-27 23:16 Ok, so this is the one change I am aware off (there may be others). https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/40565 For this to be the cause, something would have to limit (reduce) the desired width of the hint. ---------------------------------------------------------------------- 440bx · 2024-04-27 23:24 What I get isn't the same as what you get. The screenshot shows what I get and, it isn't right.  For reference and in case it may be useful, I also placed an image of the "About Lazarus" to show what version exactly of trunk I am using (it's a few days old by now but, I don't think that makes a difference but... just in case.) ---------------------------------------------------------------------- Martin_fr · 2024-04-28 00:06 Quote from: 440bx on April 28, 2024, 01:24:18 amWhat I get isn't the same as what you get. Comparing plain text => yes. But otherwise no. You don't have - bold text - That bit of "TCustomForm" on the bottom should be blue, it isn't, you don't get colors. All you get are instead some "text symbols". In other word for some reason you don't get the html hint. I just tested, if I uninstall the package TurboPowerIProDSGN => then I get the same hint. I didn't think of it, because I recalled it being grey... But apparently that was tainted memory of mine... It is still existing functionality, it may be worth a report... I don't know much about it though. ---------------------------------------------------------------------- 440bx · 2024-04-28 00:37 I can create a bug report mentioning that the hint window does not always display its contents as expected if the window is too small to accommodate all the text to be displayed. I can put a reference to this thread for additional information and the screenshots showing the problem. Should I create such a bug report ? ---------------------------------------------------------------------- Martin_fr · 2024-04-28 00:50 If it indeed is that you don't have the package installed, and if the package fixes it, then yes. A bug report on "editor hint without TurboPowerIproDsgn, shows only partial content" ---------------------------------------------------------------------- 440bx · 2024-04-28 01:24 Installing the package makes the problem go away! Issue reported: 40931 link: https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/40931 ---------------------------------------------------------------------- JuhaManninen · 2024-04-28 05:38 Quote from: Martin_fr on April 28, 2024, 02:06:53 amI just tested, if I uninstall the package TurboPowerIProDSGN => then I get the same hint. I didn't think of it, because I recalled it being grey... But apparently that was tainted memory of mine... It is grey here on Linux with both LCL-GTK2 and LCL-QT5. Why is it yellow in some computers? A standard system hint window is used. I guess a user can configure it somehow. ---------------------------------------------------------------------- cdbc · 2024-04-28 07:43 Hi Juha The yellowish popup for comments, comes from installing the package:  TurboPowerIproDsgn in Lazarus. In my opinion, it's way better than the grey one. Mind you, I use comments on my types to document 'how to create my different interfaces, from plugins in libraries'. Regards Benny ---------------------------------------------------------------------- Martin_fr · 2024-04-28 08:53 Quote from: cdbc on April 28, 2024, 09:43:36 amHi Juha The yellowish popup for comments, comes from installing the package:  TurboPowerIproDsgn in Lazarus. In my opinion, it's way better than the grey one. Mind you, I use comments on my types to document 'how to create my different interfaces, from plugins in libraries'. Regards Benny Except, I just tested, I got a yellow hint too, but without that package. Yet then the yellow hint behaved like the grey.... ---------------------------------------------------------------------- cdbc · 2024-04-28 09:20 Hi @Martin_fr: I can only speak for my own setup, which is Linux(fully updated), QT5, FPC trunk and Lazarus 3.0(with dialog-patch from zeljko). It came from FpcUpDeluxe without that package installed and the grey popups were killing me, I really missed the yellow one from 2.2.6. Then I read in this very thread about the TurboPowerIproDsgn- package and installed it. Now the popups are working as before, _with_ scrollbars and all... Cool  So thank you for that, I'm a happy camper. Regards Benny ---------------------------------------------------------------------- Martin_fr · 2024-04-28 10:52 Quote from: cdbc on April 28, 2024, 11:20:26 amHi @Martin_fr: I can only speak for my own setup, which is Linux(fully updated), QT5, FPC trunk and Lazarus 3.0(with dialog-patch from zeljko). It came from FpcUpDeluxe without that package installed and the grey popups were killing me, I really missed the yellow one from 2.2.6. Then I read in this very thread about the TurboPowerIproDsgn- package and installed it. Now the popups are working as before, _with_ scrollbars and all... Cool  So thank you for that, I'm a happy camper. Regards Benny Yes TurboPowerIpProDSGN gives you the "good" hints. With Scrollbars, colors, links, .... The absence of the package gives you "simple hints". I have in the past experienced them with grey background. But, I have now seen them with yellow background too. I don't know what causes the diff between those 2 simple kind of hints. (and what other diffs they may have). But, the background color alone is apparently not enough to tell. That threw me off at the start of this issue, and that is why I did not recognize the problem was the absence of the package (presumingly, 44bx has yet to confirm that installing it, does fix it). ---------------------------------------------------------------------- cdbc · 2024-04-28 11:10 Hi Yes interesting to hear, if it fares as well on winders as on tux... I'd believe so, as TurboPower was based in win32 IIRC, I remember a certain Julian M. Bucknall working for them  Regards Benny ---------------------------------------------------------------------- 440bx · 2024-04-28 12:37 Quote from: Martin_fr on April 28, 2024, 12:52:29 pmThat threw me off at the start of this issue, and that is why I did not recognize the problem was the absence of the package (presumingly, 44bx has yet to confirm that installing it, does fix it). I confirmed the absence of the package causes the problem (at least it does in my installation.) see the message/reply #22 (https://forum.laz arus.freepascal.org/index.php/topic,67104.msg515816.html#msg515816) in this thread.