Can Gambas IDE remember last file / line edited?

Post

Posted
Rating:
#1 (In Topic #1458)
Regular
sergioabreu is in the usergroup ‘Regular’
 Hi

Does gambas allow to "memorize" where you stoped editing a project ?

For instance, when opening a Projetc, to load last tabs and go to at least the last file you worked on ?

Tks
Online now: No Back to the top

Post

Posted
Rating:
#2
Avatar
Administrator
sholzy is in the usergroup ‘unknown’
 The last tab opened and the line where the cursor was when the IDE was closed is the same for me when I open the project again. I'm assuming that is what you meant?

sholzy
Gambas One Site Director

To report bugs in the Gambas IDE:
Official Gambas Bug Tracker
Online now: No Back to the top

Post

Posted
Rating:
#3
Regular
sergioabreu is in the usergroup ‘Regular’
In my case when I open a project it really loads the last file, that's true but not the last  line where I was editing.

Example it opens main Class file but on its first line always

I ask it because some editors go to the exact last point you were. (Ex. vim)

It could be a nice feature  request and actually is really easy to do, saving the last line in some file while closing gambas
Online now: No Back to the top

Post

Posted
Rating:
#4
Avatar
Regular
thatbruce is in the usergroup ‘Regular’
 We don't understand. The IDE opens with both the last open classes & forms and for classes etc. at the last line. It has done so since Vesuvius erupted.
Something at your end appears to be askew.
b

Online now: No Back to the top

Post

Posted
Rating:
#5
Regular
sergioabreu is in the usergroup ‘Regular’
 Yeah it might be a local issue

thanks
Online now: No Back to the top

Post

Posted
Rating:
#6
Avatar
Expert
Poly is in the usergroup ‘Expert’

sergioabreu said


Example it opens main Class file but on its first line always


I have just tried it again.
For me, the last tab I edited really always opens at the point where I made the last change.
Provided, of course, that I have executed the finished code once or saved the project before opening another project or exiting the application.

So the problem must be with your installation, but I think more information would be needed.

best regards
Poly
Online now: No Back to the top

Post

Posted
Rating:
#7
Avatar
Regular
thatbruce is in the usergroup ‘Regular’
 Poly, I think you may just hit the nail on the head.

If the IDE crashes or is killed, for any reason not just an IDE bug, the project is not saved. Nor is the hidden file that saves the IDE state. That, I think is the issue here.

b

Online now: No Back to the top

Post

Posted
Rating:
#8
Guru
BruceSteers is in the usergroup ‘Guru’
Not only is the last active file tab opened and on the previous line, All other opened tabs remember the previous line/column each editor was on.

But "occasionally" like thatbruce says if the IDE crashes when saving a project the tabs/line info can be lost.

If you look at a projects .settings file you may see entries like this… (this is my GLauncher project)

Code

[OpenFile]
Count=16
Active=5
File[1]=".src/FMain.class:0.590"
File[2]=".src/FMain.form"
File[3]=".src/FGambasList.class:0.312"
File[4]=".src/FGambasList.form"
File[5]=".src/GProj.class:0.65"
File[6]=".src/Startup.module:0.6"
File[7]=".src/ClassMods/BFrame.class:0.0"
File[8]=".src/ClassMods/ListEditor/ListEd.class:0.140"
File[9]=".src/ClassMods/ListEditor/FListEd.class:0.120"
File[10]=".src/Classes/DBus/SingleInstance.class:0.0"
File[11]=".src/Classes/DBus/DBusComm.class:0.0"
File[12]=".src/Classes/ErrNo.class:56.13"
File[13]=".src/Classes/MenuView/FMenuView.form"
File[14]=".src/Classes/MenuView/FMenuView.class:8.47"
File[15]=".src/Classes/Set.class:0.8"
File[16]=".src/FSettings.class:0.0"

That is my list of opened tabs, each one (16 of them) contains the file path and then text files also have cursor column and row.
and tab 5 is the active one.
Online now: No Back to the top

Post

Posted
Rating:
#9
Guru
BruceSteers is in the usergroup ‘Guru’
 another note. the files and positions are forgotten when saving a project if you have closed the tabs.

while a project is being edited you can close tabs/files and re-open them and they will open where you were.

but if you save and close the whole project only the currently opened tabs cursor positions are saved.
Online now: No Back to the top

Post

Posted
Rating:
#10
Regular
sergioabreu is in the usergroup ‘Regular’
You can delete this topic, I found the error and it is not gambas fault.

It was caused by a script that deleted the <COLOR color="#FF0000">.settings</COLOR> file  (EDITED)

Everything is OK and FINE now  :)
Online now: No Back to the top

Post

Posted
Rating:
#11
Avatar
Administrator
sholzy is in the usergroup ‘unknown’
 Thanks for posting a followup that you found the cause of the problem.

Someone in the future might find this thread useful.

sholzy
Gambas One Site Director

To report bugs in the Gambas IDE:
Official Gambas Bug Tracker
Online now: No Back to the top

Post

Posted
Rating:
#12
Guru
BruceSteers is in the usergroup ‘Guru’

sergioabreu said

You can delete this topic, I found the error and it is not gambas fault.

It was caused by a script that deleted the .project file

Everything is OK and FINE now  :)

That's weird because the data is stored in .settings file not .project.

If you delete a .project file then gambas will no longer recognize the folder or load the project at all.  :?
Online now: No Back to the top

Post

Posted
Rating:
#13
Regular
sergioabreu is in the usergroup ‘Regular’

BruceSteers said

sergioabreu said

You can delete this topic, I found the error and it is not gambas fault.

It was caused by a script that deleted the .project file

Everything is OK and FINE now  :)

That's weird because the data is stored in .settings file not .project.

If you delete a .project file then gambas will no longer recognize the folder or load the project at all.  :?

I meant SETTINGS really. You are RIGHT
Online now: No Back to the top
1 guest and 0 members have just viewed this.