Jump to content

Recommended Posts

Posted

Hmm sorry @Jokerman i am still not hundred percent sure what you mean here. (My english is not the best)
Maybe you can screenrecord a gif or a movie which shows the error? πŸ˜‡

Posted
  On 10/7/2021 at 10:40 AM, ISI360 said:

Hmm sorry @Jokerman i am still not hundred percent sure what you mean here. (My english is not the best)
Maybe you can screenrecord a gif or a movie which shows the error? πŸ˜‡

Expand  

https://i.gyazo.com/efd44dbb9c55cf0525e5d68aa49900e7.mp4

Here's a screen recording trying to show what I mean by the intellimark functionality not taking into account folded code (in this case it's a Region but the same thing happens with all folded code). As you can see in the video when I highlight something while at the top of the tab with the Region folded intellimark only highlights/marks down to line 55 but if I scroll down then intellimark higlights/marks down to line 67 - but if the Region isn't folded then intellimark highlights all the visible lines normally. Also, while not shown in the video, if I hit F8 to turn off the bottom debug window then more lines of code get highlighted without scrolling down (line 68) - this is part of what makes me assume the intellimark functionality is working based on the lines visible in ISN Studio's viewport.

Basically, it seems to me (and please correct me if I'm wrong) like the intellimark functionality is using an algorithm to try to determine what's in ISN Studio's viewport so it only highlights matches and marks lines as they become visible (rather than processing the entire tab all at once). If my assumption is correct then it seems like the algorithm isn't accounting for any lines of code that are currently folded and have a + next to them you can click to expand them (like comments, Regions, For/If/Switch/Select statements, etc.).

Sorry I can't do a better job of describing the issue. If there's anyone reading this who thinks they understand what I'm saying and can describe it better (or speaks fluent German) please don't hesitate to chime in! This is just one of many reasons I'm a coder and not a teacher. πŸ˜‚

Posted

Thanks...the video shows the bug perfect. (Sometimes a picture/video can say more than thousand words :P)

I can confirm this bug in my installation..i will check that.

Posted

This is not ISN problem but I think this is related to Scintilla
Possibly already reported here:
https://sourceforge.net/p/scintilla/bugs/


Take a look also here:

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted (edited)

btw.
I would like to ask about 2 things:
Questoin 1: How did you enable this >>>  in lines 51-67  ?
Questoin 2: And why there is no such >>> in line 84 ?

image.png.697d9cf01389ca5dc864ab3a364ff142.png

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted
  On 10/8/2021 at 6:57 AM, mLipok said:

btw.
I would like to ask about 2 things:
Questoin 1: How did you enable this >>>  in lines 51-67  ?
Questoin 2: And why there is no such >>> in line 84 ?

image.png.697d9cf01389ca5dc864ab3a364ff142.png

Expand  

Question 1: You can get those markers by enabling the "In addition, add a marker to the line" in ISN AutoIt Studio's Settings (after you select "Script Editor" in Navigation it's under "Write settings").

Unbenannt.JPG

Question 2: The markers not highlighting everything visible is the issue that I ran into (that, until I made the video, I was failing horribly to explain πŸ€£). ISI360 has confirmed the issue so now it'll come down to how they implemented intellimark. You're right - if the code relies heavily on Scintilla's implementation it may not be easily fixable, if at all. But if ISI360's intellimark functionality is custom code (and it may be considering the massive intellimark performance optimization they introduced in 1.13) I have faith ISI360 will figure it out. πŸ€ž

Btw, huge respect and thanks to you, mLipok. Your posts and guidance have helped me immensely over the years. πŸ™

Posted (edited)

a question to @ISI360

What exactly does it do

  On 10/8/2021 at 6:53 PM, Jokerman said:

Question 1: You can get those markers by enabling the "In addition, add a marker to the line" in ISN AutoIt Studio's Settings (after you select "Script Editor" in Navigation it's under "Write settings").

Expand  

with Scintilla ?

 

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted
  On 10/8/2021 at 6:53 PM, Jokerman said:

Btw, huge respect and thanks to you, mLipok. Your posts and guidance have helped me immensely over the years. πŸ™

Expand  

hm... I do not remeber that you click Thank's button before ;)


But thanks for current nice word.

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted
  On 10/8/2021 at 6:58 PM, mLipok said:

a question to @ISI360

What exactly does it do

with Scintilla ?

 

Expand  

Honestly, I don't know if that's an option in Scintilla but it's an option in ISN AutoIt Studio. It's an add-on to highlighting all matches when you highlight something - in addition to highlighting all matches you also get those markers next to each line that has a match in it. It makes scanning through your script for matches much easier visually since you only have to scan the margin for markers instead of scanning each line of code for the highlighted text. Basically, scan the margin for a marker then scan the line for the highlighted text.

Posted (edited)

ISN uses scintilla to display codes, and syntax highlighting.
It is the same dll file like in @Jos SciTE4AutoIt3, of coruse not necesary exactly the same version.

take a look at:
......\ISN_AutoIt_Studio_v1_13_SOURCE.zip\ISN AutoIt Studio\Data\SciLexer.dll

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted
  On 10/8/2021 at 7:00 PM, mLipok said:

hm... I do not remeber that you click Thank's button before ;)


But thanks for current nice word.

Expand  

TouchΓ©! You're probably right. I'm not very good at showing appreciation to posts I find helpful. It isn't that I'm not appreciative but that I'm forgetful. I'm usually in a rush and often time stressed about not being able to figure something out so I hit the forum in the hope someone else has already run into the same thing - and more often than not someone has. Once I find the solution I jump back into fixing my issue and finishing the project with the intention to go back to give thanks and like posts...but inevitably I end up forgetting. My apologies to you and everyone else who has helped me!

Posted
  On 10/8/2021 at 7:13 PM, mLipok said:

ISN uses scintilla to display codes, and syntax highlighting.
It is the same dll file like in @Jos SciTE4AutoIt3, of coruse not necesary exactly the same version.

Expand  

I'll take your word for it. I haven't looked into the inner-workings of ISN. πŸ˜

Posted (edited)

@Jokerman 
Could you please confirm that this problem is very rare and at the same time difficult to reproduce even on the same file.
I mean that even if you think how to play it, it turns out that you are never able to recreate it in the same way?

Because I have exactly this problem with preparing 100% sure method to reproduce the problem.

I mean, it happens incidentally.

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted
  On 10/8/2021 at 6:58 PM, mLipok said:

What exactly does it do

  On 10/8/2021 at 6:53 PM, Jokerman said:

Question 1: You can get those markers by enabling the "In addition, add a marker to the line" in ISN AutoIt Studio's Settings (after you select "Script Editor" in Navigation it's under "Write settings").

Expand  

with Scintilla ?

Expand  

This is ISN custom code. If "In addition, add a marker to the line" is enabled, the ISN draws the arrow marker via SCI_MARKERADD on a line.

 

  On 10/8/2021 at 6:57 AM, mLipok said:

Questoin 1: How did you enable this >>>  in lines 51-67  ?
Questoin 2: And why there is no such >>> in line 84 ?

Expand  

And that error is connected to the bug Jokerman found. The ISN currently draws itΒ΄s intellimarks and markers only in the visible area. (Via SCI_GETFIRSTVISIBLELINE and SCI_LINESONSCREEN) But for some reason the SCI_LINESONSCREEN value does not change when areas are folded...so the ISN draws less lines what the user accually see in the editor...and here we have our problem.
I am working on it ;)

Posted

But I was able to fire the same problem in SciTE.

So yes 

  On 10/9/2021 at 8:11 AM, ISI360 said:

the ISN draws the arrow marker via SCI_MARKERADD on a line

Expand  

But which part of this issue is strictly related to scintlla ?

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted (edited)
  On 10/9/2021 at 8:24 AM, mLipok said:

But which part of this issue is strictly related to scintlla ?

Expand  

DonΒ΄t know how SciTE internaly handles these stuff. Maybe it also uses SCI_LINESONSCREEN...which should (in my understanding) get the lines what the user sees in the window...but when some lines are folded the returned value is wrong.

Edited by ISI360
Posted

Which version of scintilla ISN uses?

Was you able easily replicate the same issue in ISN ?

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted (edited)

Version 1.13 uses the SciLexer 4.1.2.0 (a older version for xp compatibility). In the next update i will replace it with the latest from the autoitscript.com website (4.4.6.0).
But even with 4.4.6.0 the behaviour is the same. I already testing a fix for the ISN at the moment. @Jokerman interested in a testversion?

Edited by ISI360
Posted
  On 10/9/2021 at 9:19 AM, ISI360 said:

Version 1.13 uses the SciLexer 4.1.2.0 (a older version for xp compatibility). In the next update i will replace it with the latest from the autoitscript.com website (4.4.6.0).
But even with 4.4.6.0 the behaviour is the same. I already testing a fix for the ISN at the moment. @Jokerman interested in a testversion?

Expand  

Thanks for replying to mLipok's questions! I've had my face in code almost nonstop since my last reply.

Sure, I'd be happy to test for you! Feel free to DM to give instructions or whatever.

  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Γ—
Γ—
  • Create New...