Jump to content

Recommended Posts

  • Developers
Posted

Could you just stop assuming for a moment and show the file here or in a PM? :graduated:

Tidy does all the Saving of the session file and restoring of the bookmarks.

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

OK. Here are the steps I'm following:

1. I open SCITE and it loads my previous session.

2. I save the current session to x2_scripts.session

# SciTE session file

buffer.1.path=D:\BMachine\_custom\AutoIt\z_scripts\X2Delete\X2Delete.au3

buffer.1.position=3922

buffer.2.path=D:\BMachine\_custom\AutoIt\z_scripts\AIText2Speech\xxxxxx\teeeeeezzzzzzzt.au3

buffer.2.position=966

buffer.3.path=D:\BMachine\_custom\AutoIt\z_scripts\AIGlobalHotkeys\AIGlobalHotkeys.au3

buffer.3.position=656

buffer.4.path=D:\BMachine\_custom\AutoIt\z_scripts\AINotifyProcess\AINotifyProcess.au3

buffer.4.position=10694

buffer.5.path=D:\BMachine\_custom\AutoIt\z_scripts\AINotifyProcess\_resources\_Singleton.au3

buffer.5.position=771

buffer.6.path=D:\BMachine\_custom\AutoIt\z_scripts\AIText2Speech\AIText2Speech.au3

buffer.6.position=9447

buffer.7.path=D:\BMachine\_custom\AutoIt\z_scripts\X2Restart\X2Restart.au3

buffer.7.position=311

buffer.8.path=D:\BMachine\_custom\AutoIt\z_scripts\X2BeyondCompare\X2BeyondCompare.au3

buffer.8.position=9426

buffer.9.path=D:\BMachine\_custom\AutoIt\z_scripts\_TESTs\AITEST.au3

buffer.9.position=142

buffer.9.current=1

buffer.10.path=D:\BMachine\_custom\AutoIt\z_scripts\_UDFs\_AIText2Speech.au3

buffer.10.position=250

buffer.11.path=C:\Program Files (x86)\Netez\Kilmatead\Modifiche\Yes, Virginia, it is written in AutoIt\Modifiche.au3

buffer.11.position=3745

buffer.12.path=D:\BMachine\_custom\AutoIt\z_scripts\X2Residuum\X2Residuum.au3

buffer.12.position=9750

3. I reload the session from the same file x2_scripts.session

4. I create 2 bookmarks in AITEST.aue (at line6 and 8)

5. I save the session again to the same file x2_scripts.session

6. I reload the session

7. the two bookmarks are still there

8. I tidy the script containing the two bookmarks

9. bookmarks are gone

10. the session file still contains the bookmarks

# SciTE session file

buffer.1.path=D:\BMachine\_custom\AutoIt\z_scripts\X2Delete\X2Delete.au3

buffer.1.position=3922

buffer.2.path=D:\BMachine\_custom\AutoIt\z_scripts\AIText2Speech\xxxxxx\teeeeeezzzzzzzt.au3

buffer.2.position=966

buffer.3.path=D:\BMachine\_custom\AutoIt\z_scripts\AIGlobalHotkeys\AIGlobalHotkeys.au3

buffer.3.position=656

buffer.4.path=D:\BMachine\_custom\AutoIt\z_scripts\AINotifyProcess\AINotifyProcess.au3

buffer.4.position=10694

buffer.5.path=D:\BMachine\_custom\AutoIt\z_scripts\AINotifyProcess\_resources\_Singleton.au3

buffer.5.position=771

buffer.6.path=D:\BMachine\_custom\AutoIt\z_scripts\AIText2Speech\AIText2Speech.au3

buffer.6.position=9447

buffer.7.path=D:\BMachine\_custom\AutoIt\z_scripts\X2Restart\X2Restart.au3

buffer.7.position=311

buffer.8.path=D:\BMachine\_custom\AutoIt\z_scripts\X2BeyondCompare\X2BeyondCompare.au3

buffer.8.position=9426

buffer.9.path=D:\BMachine\_custom\AutoIt\z_scripts\_TESTs\AITEST.au3

buffer.9.position=110

buffer.9.current=1

buffer.9.bookmarks=6,8

buffer.10.path=D:\BMachine\_custom\AutoIt\z_scripts\_UDFs\_AIText2Speech.au3

buffer.10.position=250

buffer.11.path=C:\Program Files (x86)\Netez\Kilmatead\Modifiche\Yes, Virginia, it is written in AutoIt\Modifiche.au3

buffer.11.position=3745

buffer.12.path=D:\BMachine\_custom\AutoIt\z_scripts\X2Residuum\X2Residuum.au3

buffer.12.position=9750

  • Developers
Posted (edited)

That looks ok to me.

I just uploaded a new Debug version that also supports restoring the Folds for me and added some debug lines that will appear in the SciTE console.

Could you try this one and post the result?

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

Thanks! So, picking up from steps

6. I reload the session

7. the two bookmarks are still there

8. I tidy the script containing the two bookmarks

9. bookmarks are gone

10. this is what it displayed in the Output window

>"C:\Program Files (x86)\AutoIt3\SciTE\tidy\tidy.exe" "D:\BMachine\_custom\AutoIt\z_scripts\_TESTs\AITEST.au3"

Tidy AutoIt3 v2.2.1.4 Copyright © Jos van der Zande September 13, 2011

+> Tidy AutoIt3 finished. Original copied to:"D:\BMachine\_custom\AutoIt\z_scripts\_TESTs\BackUp\AITEST_old55.au3"

y%: 0 temp$=# SciTE session file

y%: 0 temp$=

y%: 0 temp$=buffer.1.path=D:\BMachine\_custom\AutoIt\z_scripts\X2Delete\X2Delete.au3

y%: 0 temp$=buffer.1.position=3922

y%: 0 temp$=

y%: 0 temp$=buffer.2.path=D:\BMachine\_custom\AutoIt\z_scripts\AIText2Speech\xxxxxx\teeeeeezzzzzzzt.au3

y%: 0 temp$=buffer.2.position=966

y%: 0 temp$=

y%: 0 temp$=buffer.3.path=D:\BMachine\_custom\AutoIt\z_scripts\AIGlobalHotkeys\AIGlobalHotkeys.au3

y%: 0 temp$=buffer.3.position=656

y%: 0 temp$=

y%: 0 temp$=buffer.4.path=D:\BMachine\_custom\AutoIt\z_scripts\AINotifyProcess\AINotifyProcess.au3

y%: 0 temp$=buffer.4.position=10694

y%: 0 temp$=

y%: 0 temp$=buffer.5.path=D:\BMachine\_custom\AutoIt\z_scripts\AINotifyProcess\_resources\_Singleton.au3

y%: 0 temp$=buffer.5.position=771

y%: 0 temp$=

y%: 0 temp$=buffer.6.path=D:\BMachine\_custom\AutoIt\z_scripts\AIText2Speech\AIText2Speech.au3

y%: 0 temp$=buffer.6.position=9447

y%: 0 temp$=

y%: 0 temp$=buffer.7.path=D:\BMachine\_custom\AutoIt\z_scripts\X2Restart\X2Restart.au3

y%: 0 temp$=buffer.7.position=311

y%: 0 temp$=

y%: 0 temp$=buffer.8.path=D:\BMachine\_custom\AutoIt\z_scripts\X2BeyondCompare\X2BeyondCompare.au3

y%: 0 temp$=buffer.8.position=9426

y%: 0 temp$=

y%: 0 temp$=buffer.9.path=D:\BMachine\_custom\AutoIt\z_scripts\_TESTs\AITEST.au3

y%: 0 temp$=buffer.9.position=95

y%: 0 temp$=buffer.9.current=1

y%: 1 temp$=buffer.9.bookmarks=6,8

Adding Bookmark on line:6

Adding Bookmark on line:8

y%: 1 temp$=

y%: 0 temp$=buffer.10.path=D:\BMachine\_custom\AutoIt\z_scripts\_UDFs\_AIText2Speech.au3

y%: 0 temp$=buffer.10.position=250

y%: 0 temp$=

y%: 0 temp$=buffer.11.path=C:\Program Files (x86)\Netez\Kilmatead\Modifiche\Yes, Virginia, it is written in AutoIt\Modifiche.au3

y%: 0 temp$=buffer.11.position=3745

y%: 0 temp$=

y%: 0 temp$=buffer.12.path=D:\BMachine\_custom\AutoIt\z_scripts\X2Residuum\X2Residuum.au3

y%: 0 temp$=buffer.12.position=9750

>Exit code: 0 Time: 1.114

I tried with folds too- those aren't restored either, but I guess that when bookmarks will be restored, folds will too.

  • Developers
Posted

So, are the 2 bookmarks it is trying to restore correct?

Maybe SciTE is not ready yet loading the file when tidy is addiding the bookmarks back...

Will later this weekend make a new debug version available to test this.

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

Hello, Jos! Thank you for all the support, but maybe you shouldn't bother anymore with this. I have started a new session and added just a few files (4 until now) and I see that bookmarks and folds are restored properly. I think the issue was related to having too many files opened in a session. I will keep adding files to the current session and report back when bookmarks and folding stops working again (if it will stop, that is).

Thank you!

  • Developers
Posted (edited)

Uploaded Tidy.exe v2.2.1.5 in beta to get rid of the debugging messages and cleaned up the code.

Tidy will now restore both Bookmarks and Folds and will indicate this with a message in the SciTE console that looks like:

+> Tidy AutoIt3 finished. Original copied to:"D:\xyz\test_old1.au3"
>   Restoring Bookmarks on line(s):819,885
>   Restoring Folds on line(s):2,33,59,192,331,347,355,699,702,745,822

The cursor position will also be reset correctly and displayed when Folds are restored.

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

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