Jump to content

Recommended Posts

Posted (edited)

Good evening everyone :)
I was trying to insert function header to the functions of my script, but, in the SciTE console, this appears:

Function or struct definition not found, unable to insert header.

@Jos Any suggestion?
Thanks in advance.

Best Regards.

Edited by FrancescoDiMuro

Click here to see my signature:

  Reveal hidden contents

 

Posted

Which SciTe4AutoIt version your are using ?

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

check recent version here:

make them portable (for testing)

read about 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

Good morning @Jos, and thanks for have moved the discussion to the appropriate section of the forum :)
There is no script to check ( not by my side ) :)
When I try to add a Function Header, using SciTE Jump, right click on the function, and I click on "Add Header", in the Console of SciTE, this message appears:

Function or struct definition not found, unable to insert header.

@mLipok By the way, it used to work before... I don't know what's the issue now :)
Thanks :)

 

Best Reagrds.

Click here to see my signature:

  Reveal hidden contents

 

  • Developers
Posted (edited)

Well ... you still haven't described the exact steps you took! ;)

You carret is on a Func xyz() line when performing the Insert function as else it would indeed give that message?

Jos

Edited by Jos

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.
  :)

Posted

Good morning @Jos:)
That is exactly what I do when I try to add an header to a function.
1) Open SciTE Jump;

2) Right click on the function on which I want to add an header;
3) Doing so, the "cursor" doesn't place anywhere, because the focus is always on the SciTE Jump;
4) Left click on "Add header", and in the console, this message appears:

Function or struct definition not found, unable to insert header.

I don't know how to explain it better than this :)
Thanks for your help.

Best Regards.

Click here to see my signature:

  Reveal hidden contents

 

  • Developers
Posted

So that probably would mean that SciTEJump has an issue, not the LUA script.
I can't replicate it yet with SciTEJump when using this simple script:

Func test()
    $a=1
EndFunc

Does this snippet also fail for you? 

Jos

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.
  :)

  • Developers
Posted

So then I am back to my original request:

  On 6/7/2018 at 12:07 AM, Jos said:

I need more info to check whether I can replicate the issue...please provide a small script and the steps to replicate.

Jos

Expand  

:-)

 

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.
  :)

Posted

@Jos
I think I've always used the same SciTE editor since I'm using AutoIt, and I've never encountered this issue.
That is strange.
But, fortunately, I can use the "workaround" Tools -> Make UDF Header instead of use SciTE Jump.
I just used this workaround with the functions of my script, and seems to work :)

So, the issue seems to be in SciTE or something :)
Thanks for your help :)

Best regards.

Click here to see my signature:

  Reveal hidden contents

 

  • Developers
Posted
  On 6/8/2018 at 1:03 PM, FrancescoDiMuro said:

So, the issue seems to be in SciTE or something :)

Expand  

Why? The LUA script & SciTE work fine so I guess that SciTEJump doesn't point to the correct line, hence giving this error.
...  and software gets updated with new stuff and bug fixes so it is smart to update it to the latest before reporting issues! ;)

Jos

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.
  :)

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...