Jump to content

BETA: SciTE v5x & lua Dynamic_include and "Smart" AutoComplete for Vars/UDFs/Abbrevs


Recommended Posts

  • Developers
Posted (edited)
  On 7/2/2022 at 4:05 PM, jpm said:

Hi, the Ctrl-j line not in the screen

Just do it in line 32 for GetVarNamesLine

Expand  

It jump for me to that Func which is shown as the 6th line in de current shown lines (As I have defined in the function) ... what do you get? 

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

  • Developers
Posted (edited)

@jpm

Please download the latest lua.zip and copy those to your SciTE\lua.
Then set SciTEUser.properties: autoitgotodefinition.debug=1 
... do again the Ctrl+J
Check logfile: $(SciteUserHome)\dynamic_udfs.err

It should contain something like:

-18:47:37 -> * -> * - GotoDefinition:  search func:GetVarNamesLine
>18:47:37 -> * ->ShowFunction > found: GetVarNamesLine  pos:2349 Line:61 firstline displayed:56
-18:47:37 -> * -> * - Found in current file: D:\Users\jvdza\Downloads\test Jump wrong line.au3

So for me the first line  in de display is 57 and the Func line is 62 (SciTE start counting at 0 in stead of 1, hence the 1 difference) 

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

Thank's Jos It's is a master piece.  How can I hide the bunch of console windows shown when I open a Script?

 

 

Saludos

  • Developers
Posted
  On 7/2/2022 at 5:01 PM, Danyfirex said:

How can I hide the bunch of console windows shown when I open a Script?

Expand  

Which are those?  None should be there by default, but it can be I forgot something somewhere, but need a bit more details to know what you are looking at. 

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

I really don't know. I followed your instructions but when I open an Script using double click/or right click open/edit I see many consoles being opened and closed fast then I get SciTE opened successfully.

 

Check:

capture-1.thumb.gif.b2758ca58e7f81bd7a9f020d3f60dd0e.gif

Saludos

 

 

 

 

 

 

  • Moderators
Posted

Dany,

Nothing like that happens for me - just SciTE opening as per normal.

Steve G

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

  • Developers
Posted (edited)

The script do indeed a bunch of io.popen("dir ") commands that shell an CMD session, but those should be suppressed since a while now. Are you running the Latste SciTE version?

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
  • Developers
Posted (edited)
  On 7/2/2022 at 5:39 PM, Danyfirex said:

I'm running SciTE Version 4.2.0

Expand  

Ok...that makes sense then... ;) 

  Quote

Release 4.4.4

  • End of line annotations implemented. Bug #2141.
  • -snip-
  • SciTE on Windows adds create.hidden.console option to stop console window flashing when Lua script calls os.execute or io.popen.
Expand  

 

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

  • Developers
Posted

Latest release is SciTE v4.4.6. as shown in the log, so you do not have the latest version:

--------------------------------------------------------------------------------------------------
16-03-2021
*** Merged the SciTE v 4.4.6 by Neil Hodgson with our own version of SciTE. (Jos)
    - Change the workdir to the programdir to avoid locking up the last opened scriptfile directory.
    - Fixed Bom checking bug resulting to garbage characters in the editor for UTF encoded file other than UTF8
    - Dropped support for WinXP (Compiled with vc15, Win sdk 8.1, Toolset v141)
    - Compiled with vc15 and changed SSE instruction set to ia86 compatible.

The SciTE v5.2.3 will soon be available to everybody.

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

I've installed this one 

But I still see the console windows.

 

 

Posted

I just download and install as usually, So I think it didn't rewrite the properties/settings files. I added that line and now I see just one console but faster.

  • Developers
Posted (edited)
  On 7/2/2022 at 6:11 PM, Danyfirex said:

I added that line and now I see just one console but faster.

Expand  

It is funny how many folks prefer to run SciTE in their own setup and still think they don't need to spent the time to read on all the changes made. ... but really... that is why I publish the hassle free installer or Portable Zip version, but you really need to update the whole thing or else you are really on your own. ;) 
I have seen that flash too but rarely and have no idea where that is coming from nor how to debug that as it doesn't happen constantly for me.

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

I didn't understand your last message 🙃. Anyway don't worry I'll fix it by myself when I have time. thank you for your time.

 

Saludos

Posted

No yet, I still have one window shown. But I'll check deeply later I need to sleep I'll write later here.😊

Posted
  On 7/2/2022 at 4:41 PM, Jos said:

@jpm

Please download the latest lua.zip and copy those to your SciTE\lua.
Then set SciTEUser.properties: autoitgotodefinition.debug=1 
... do again the Ctrl+J
Check logfile: $(SciteUserHome)\dynamic_udfs.err

It should contain something like:

-18:47:37 -> * -> * - GotoDefinition:  search func:GetVarNamesLine
>18:47:37 -> * ->ShowFunction > found: GetVarNamesLine  pos:2349 Line:61 firstline displayed:56
-18:47:37 -> * -> * - Found in current file: D:\Users\jvdza\Downloads\test Jump wrong line.au3

So for me the first line  in de display is 57 and the Func line is 62 (SciTE start counting at 0 in stead of 1, hence the 1 difference) 

Jos

Expand  

I just redownload latest file was at 2022/07/02  18:46

Still no working due to fold.on.open=1

 

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