Jump to content

AutoIt3Wrapper and checking commented include lines


Recommended Posts

I just noticed, that AutoIt3Wrapper checks existance of include files even if the include code are commented. This happens only when include statement is commented in include file. Maybe I did not explained it well so I will show the example:

Content of test.au3 file:

#include "test2.au3"

func helloworld()
    msgbox(0,0,$g_test)
EndFunc

Content of test2.au3 file:

#cs
#Include "test123.au3"
#ce
global $g_test = "hello world"

image.png.85fe81457a3660e275c30b5e6e989b7a.png

Link to comment
Share on other sites

  • Developers

Fixed in Beta since 13-10-2021:

* 21.316.1639.6 Fixed getting error for missing include when in commentblock

 

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

5 hours ago, Jos said:

Fixed in Beta since 13-10-2021:

* 21.316.1639.6 Fixed getting error for missing include when in commentblock

 

I have installed beta from here:
https://www.autoitscript.com/autoit3/scite/download/beta_SciTE4AutoIt3/SciTE5-with-DynamicFunctions/SciTE4AutoIt3.exe
but after that, when I open au3 file I got this message on console:
 

... Files (x86)\AutoIt3\SciTE\Lua\AutoItDynamicIncludes.lua:682: attempt to concatenate a nil value (field 'MaxIncludes2Read')

 

Link to comment
Share on other sites

  • Developers

You could have only downloaded just the AutoIt3Wrapper.au3 from Beta to fix your reported issue, but normally this should work too, as long as you realize that there are many changes in that Beta Version!

Did you run the installer and not change anything after that, as this line should be part of au3.properties?:

dynamic.max.includes=150

 

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

19 hours ago, Jos said:

Did you run the installer and not change anything after that, as this line should be part of au3.properties?:

dynamic.max.includes=150

There is no such a line in my au3.properties file. I have added this line but still got that message in the console.

image.thumb.png.32ec05f55ce7dded2bc38ba73265f887.png

And yes, there are many changes in this version. Some are cool but some features stopped to work like shortcut CTRL + J. It says 

-> cursor not on a Variable or UDF.

before it was working properly

There is also frustrating page jump (scroll to certain position) when I hit Enter (new line) 

Link to comment
Share on other sites

Posted (edited)
1 hour ago, maniootek said:

frustrating

use this

That will update your SciTE. I've tried your code in ( my beta updated SciTE ) and get no such mishap. Give it a try.

PS: the regular distro one (v4.x), not the new dynamic func. one (v5.x)  !.

Edited by argumentum
oops

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Link to comment
Share on other sites

  • Developers
35 minutes ago, maniootek said:

There is no such a line in my au3.properties file.

Strange...  and you did run the installer?

 

34 minutes ago, maniootek said:

And yes, there are many changes in this version. Some are cool but some features stopped to work like shortcut CTRL + J. It says 

I do not see that issue either...

 

33 minutes ago, maniootek said:

There is also frustrating page jump (scroll to certain position) when I hit Enter (new line) 

Quick fix: Simply revert back to the production SciTE4AutoIt3 installer and update the AutoIt3Wrapper.au3 with the Beta version.

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Developers
7 minutes ago, argumentum said:

That will update your SciTE. I've tried your code in ( my beta updated SciTE ) and get no such mishap. Give it a try.

Guess this requires the production SciTE4AutoIt3 first? Not a good idea when you have the dynamic version installed though.

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...