Jump to content

Issue with "Go to Function" not working when using a Master Include File


Go to solution Solved by Jos,

Recommended Posts

Posted

Hi everyone,

I'm having some trouble with function navigation in SciTE when using a centralized include structure in my AutoIt project.

To keep things organized, I created a MasterInclude.au3 file that includes all other .au3 files containing functions and helper code. Then in my main script, I only include this one file:

#include "MasterInclude.au3"

However, since I switched to this approach, the "Go to Function" feature in SciTE (ctrl + j) no longer works. It doesn't jump to the function definition anymore, even though everything compiles and runs just fine.

I assume it's because the editor doesn't follow nested includes, but I'm not sure if there's a workaround or setting that could help.

Has anyone run into this issue before? Is there a way to keep the master include approach and still have function navigation work properly?

Any suggestions or best practices would be greatly appreciated!

Thanks in advance!

  • Developers
Posted
9 hours ago, Jotos said:

However, since I switched to this approach, the "Go to Function" feature in SciTE (ctrl + j) no longer works. It doesn't jump to the function definition anymore, even though everything compiles and runs just fine.

Which version of SciTE4AutoIt3 are you running?

9 hours ago, Jotos said:

I assume it's because the editor doesn't follow nested includes, but I'm not sure if there's a workaround or setting that could help.

It does support nested includes and should work in the latest version(s) of the full version, but would need an example replicator set of files to check when it is not.

9 hours ago, Jotos said:

Has anyone run into this issue before? Is there a way to keep the master include approach and still have function navigation work properly?

Yes as that is what all standard UDF's do so have used it many times.

Just provide me with the requested info and/or set of replication files in a zip so I can have a look. You could try the latest Beta installer to see if that fixes it.

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 (edited)
1 hour ago, Jos said:

Which version of SciTE4AutoIt3 are you running?

ProductVersion   FileVersion      FileName
--------------   -----------      --------
4.4.6            4.4.6            C:\Program Files (x86)\AutoIt3\SciTE\SciTE.exe
 

1 hour ago, Jos said:

It does support nested includes and should work in the latest version(s) of the full version, but would need an example replicator set of files to check when it is not.

How can I do that?

 

Maybe I use the function wrong? I alway get this:
image.png.55da45fa13e4bec3b4e2c71e6ce4f681.png

Edited by Jotos
  • Developers
  • Solution
Posted (edited)
37 minutes ago, Jotos said:

How can I do that?

create a couple of small au3 files which demonstrate to me the issue you have, and put them in a zip file. PM me the zip file. 🙂

I do see there where some fixes for this function since that latest production release, so you might want to try the current Beta installer.
You could also try using the current AutoItGotoDefinition.lua in the Beta directory first.

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
36 minutes ago, Jos said:

You could also try using the current AutoItGotoDefinition.lua in the Beta directory first.

You are today my personal hero. Thanks!

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
  • Recently Browsing   0 members

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