-
Notifications
You must be signed in to change notification settings - Fork 7
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
Highlighted match not visible in code view for SCX/VCX #27
Comments
I'm seeing the same issue. Same VFP version, same GoFish version. |
@tamar, @mikepotjer All I can say is, I see this odd behaviour in 5.0.205 too, and have it on my privat odd things on gofish to fix list from start. It was this way even before I touched GoFish at all - at least on my comp. I do not see how this navigates. Conclusion: It's something I look up, but since I need to learn what moves that browser window first, it is postponed after my recent work. |
FWIW, this has always worked for me until this version. |
As mentioned by Tamar, this started with recent builds of GF. In general, the positioning of the matching line in the code window is intermittent at best. I have not yet been able to spot a pattern. For example in the screenshot below, only 8 of 13 matches in that r3functions.PRG will bring the match line into the view-port. I've seen similar inconsistencies in VCX method matches as well as other file extensions beyond PRGs. |
@rikaye Thank you. |
@ALL I found some time to look into this a bit closer. I must admit, I'm lost. So for me, there is 1) no chrome on my machine and 2) JS restricted to nearly 0. I understand if the line is not shown on my comp. The problem remains what's wrong on your comp. All that is not touched since Matt, so I have no idea what's going on. I need some help here. Would you please be so kind to gather the latest version running from the repository of this project, breakpoint in gf_resultsform.ShowHTMLCodeView around ine 36 Thank you |
@ALL I'm a bit closer. in the method mentioned above, there is a variable So please check
I even do not grok why TEXT .. ENDTEXT is removing the CRLF, but this is not teh first time I have problems with that. I remember similar problems on FoxBin2Prg. Update: I have this effect with VFPA as well as with VFP9 SP2 (7423) |
@ALL Found the culprit. Finally. The problem is that somebody has set up his git for windows in a rather odd way. The CSS\GoFish.css and HTML\GoFish.js are corrupted. This is, they are UNIX style, line break is just 0h0A. The problem is, that git will alter, if set up wrong, any CRLF to LF on add and back on checkout. If a different machine is set up to keep CRLF / CR / LF while add / checkout, the commited LF will be kept. There is a special page on the installer on git for windows dealing with this installation wide. I strongly recommend to set git to keep CRLF for VFP use, else it might create havoc as this issue proves. I will push a fixed version later the day with fixed local git settings. Need to learn this first. Update 1Also I need to fix any text file, might take a while. .... Update 2The conversion is on git add / git checkout, not push / pull |
Highlighted match not visible in code view for SCX/VCX fixed VFPX#27 fixed corrupted LF <-> CRLF conversation fixed git settings to prevent corruption
Thanks, Lutz.
Tamar
From: Lutz Scheffler ***@***.***>
Sent: Wednesday, November 9, 2022 12:52 AM
To: VFPX/GoFish ***@***.***>
Cc: Tamar E. Granor ***@***.***>; Mention ***@***.***>
Subject: Re: [VFPX/GoFish] Highlighted match not visible in code view for SCX/VCX (Issue #27)
@ALL<https://github.com/ALL> Found the culprit. Finally.
The problem is that somebody has set up his git for windows in a rather odd way.
The CSS\GoFish.css and HTML\GoFish.js are corrupted. This is, they are UNIX style, line break is just 0h0A. TEXT .. TO TEXTMERGE Pretext 3 removes 0h0A, even if only bit 3 - 8 should remove LF.
See VFPX/HelpFile#31<VFPX/HelpFile#31>
The problem is, that git will alter, if set up wrong, any CRLF to LF on push and back on pull. If a different machine is set up to keep CRLF / CR / LF while push / pull, the pushed LF will be kept. There is a special page on the installer on git for windows dealing with this installation wide.
I strongly recommend to set git to keep CRLF for VFP use, else it might create havoc as this issue proves.
I will push a fixed version later the day with fixed local git settings. Need to learn this first.
—
Reply to this email directly, view it on GitHub<#27 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AHG6RGH7LEXVUGEXQFQN75DWHM3XTANCNFSM6AAAAAARRFKC5U>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
|
Excellent sleuthing, Lutz!
…On Wed, Nov 9, 2022 at 12:51 AM Lutz Scheffler ***@***.***> wrote:
@ALL <https://github.com/ALL> Found the culprit. Finally.
The problem is that somebody has set up his git for windows in a rather
odd way.
The *CSS\GoFish.css* and *HTML\GoFish.js* are corrupted. This is, they
are UNIX style, line break is just 0h0A. TEXT .. TO TEXTMERGE Pretext 3
removes 0h0A, even if only bit 3 - 8 should remove LF.
See VFPX/HelpFile#31 <VFPX/HelpFile#31>
The problem is, that *git* will alter, if set up wrong, any CRLF to LF on
push and back on *pull*. If a different machine is set up to keep CRLF /
CR / LF while *push* / *pull*, the pushed LF will be kept. There is a
special page on the installer on git for windows dealing with this
installation wide.
*I strongly recommend to set git to keep CRLF for VFP use, else it might
create havoc as this issue proves.*
I will push a fixed version later the day with fixed local git settings.
Need to learn this first.
—
Reply to this email directly, view it on GitHub
<#27 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AG3DGP2ETUCOVVRDM6QZQFLWHM3XTANCNFSM6AAAAAARRFKC5U>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
rk
|
@TamarEGranor Tamar, in your original post, you wrote:
Here's a link to that version: https://drive.google.com/file/d/1KuLJkO3wKqaz7p6n2VP3urZkHEG_A0qu/view?usp=sharing You should be able to download it and run it directly from there (I think). Now it will be interesting to learn whether the code view window aligns correctly or not. |
* Fix for issue VFPX#27, where Code View pane does not always auto-align the match line to be visible. See Options form, "New in Version 7".
@TamarEGranor If the mountain won't come to Muhammad ... This problem has not been resolved so far because nobody has been able to unravel why the browser control for the Code View pane, which is supposed to align the match line so that it is visible, does not work for all users. Today I have released an alternative approach (in 7.0.12), which users experiencing this problem can take advantage of. The idea is simple: set a limit to how many lines are to appear in the browser before the match line. Thus there is a new option to handle this: I welcome feedback as to whether this works and is satisfactory. |
Hi Jim,
My vague memory on root cause for this was some out of sync js, and once
that was updated it started behaving again. When I’m in my work system I’ll
look for more clues.
rk
…On Sun, Mar 10, 2024 at 3:18 PM Jimrnelson ***@***.***> wrote:
@TamarEGranor <https://github.com/TamarEGranor>
@rikaye <https://github.com/rikaye>
@mikepotjer <https://github.com/mikepotjer>
If the mountain won't come to Muhammad ...
This problem has not been resolved so far because nobody has been able to
unravel why the browser control for the Code View pane, which is supposed
to align the match line so that it is visible, does not work for all users.
Today I have released an alternative approach (in 7.0.12), which users
experiencing this problem can take advantage of.
The idea is simple: set a limit to how many lines are to appear in the
browser before the match line.
Thus there is a new option to handle this:
image.png (view on web)
<https://github.com/VFPX/GoFish/assets/81179335/68442fbe-53c5-4d1b-9721-86f97dc4b8eb>
I welcome feedback as to whether this works and is satisfactory.
—
Reply to this email directly, view it on GitHub
<#27 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AG3DGP3ZHABOYKUIZKG772DYXS525AVCNFSM6AAAAAARRFKC5WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBXGMZTMNBXG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
rk -- This weekend I have released an update to GF, version 7. I ask that you see if the problem is resolved in that update (after you have also gone to the options page) |
Will do, Jim.
rk
…On Sun, Mar 10, 2024 at 7:34 PM Jimrnelson ***@***.***> wrote:
rk --
This weekend I have released an update to GF, version 7. I ask that you
see if the problem is resolved in that update (after you have also gone to
the options page)
—
Reply to this email directly, view it on GitHub
<#27 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AG3DGP55EARONRTXQMMNGNLYXT3YRAVCNFSM6AAAAAARRFKC5WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBXGQYTCNRTHE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
More details coming back to me. It was some upper ascii characters that got
munged by git. Anyway I will check out 7. Welcome back. :-)
rk
…On Sun, Mar 10, 2024 at 7:42 PM Richard Kaye ***@***.***> wrote:
Will do, Jim.
rk
On Sun, Mar 10, 2024 at 7:34 PM Jimrnelson ***@***.***>
wrote:
> rk --
>
> This weekend I have released an update to GF, version 7. I ask that you
> see if the problem is resolved in that update (after you have also gone to
> the options page)
>
> —
> Reply to this email directly, view it on GitHub
> <#27 (comment)>, or
> unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AG3DGP55EARONRTXQMMNGNLYXT3YRAVCNFSM6AAAAAARRFKC5WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBXGQYTCNRTHE>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
|
@TamarEGranor My approach to the problem has nothing to do with the js attempt to align the text. I simply provide an opportunity to only submit to html a few lines before the match line, rather than all the procedure that precedes it. In my own own use, I rarely am interested more than the highlighted text and a few lines around it. |
After the experimenting you and I have been doing, I'm not surprised to report that, in fact, on the machine where I've had all the trouble, this version doesn't work either. I suspect that when I first tested, I simply switched to another machine and tested there, and that was the version there. |
There was a problem around line terminators that Lutz fixed that seemed to resolve the issue for most, but it never fixed it for me. |
Bingo! This seems to work for me. I'll have to spend some time figuring out how big I can set the limit and still have it work, but for the example I've been testing with, setting it 10 gives me what I need. GoFish just became way better for me. Thanks! |
YES! Great to hear! Unless you have more to add, I am going to mark this issue as closed. |
ℹ Computer information
📝 Provide detailed reproduction steps (if any)
✔️ Expected result
The highlighted line that shows the match would be visible in the Code View pane
❌ Actual result
The top of the method shows in the Code View pane. You have to scroll to find the highlighted match.
📷 Screenshots
The text was updated successfully, but these errors were encountered: