Page 1 of 1

How to restore last location in file?

Posted: Wed Jul 12, 2023 3:03 am
by N7DR

I recently updated from codelite 14.0.0 to 17.0.0 (following an update of debian stable from bullseye to bookworm).

In older versions of codelite, restarting the program would remember the last location of the cursor in each file, so I could carry on where I left off in the prior session.

It seems that in 17.0.0 the default behaviour has changed, and the cursor is always placed near the top of the file (I'm not exactly sure how it chooses where to put the cursor, but it looks like it might be the start of the first non-comment line in the file).

I find the new behaviour quite unhelpful, since I often can't remember the location of my last edit in a file when I restart a session. I looked in the settings, but couldn't find what I need to do to have codelite automatically open the file with the cursor correctly placed at its location when the last session was ended. So how do I do that?


Re: How to restore last location in file?

Posted: Sat Jul 15, 2023 8:13 pm
by N7DR

No one has replied to my question :-(

I am pretty fed up of having to write strings into code files to remind myself where I finish an editing session so that I can pick up again next time where I left off (especially since I sometimes forget to do so). Could someone please put me out of my misery and tell me how to restore the old behaviour?


Re: How to restore last location in file?

Posted: Sat Jul 15, 2023 9:59 pm
by eranif

this was a bug and it was fixed with recent version of CodeLite - try one of the latest .deb files from the website


Re: How to restore last location in file?

Posted: Sun Jul 16, 2023 6:13 pm
by N7DR

try one of the latest .deb files from the website

I followed the instructions at:
https://docs.codelite.org/downloads/dow ... ntu-debian
and added:
deb https://repos.codelite.org/debian/ bullseye devel
to sources.list (but, as you can see, substituting "bookworm" for "bullseye"), but when I tried to run "apt update", I got:

root@shack20:/etc/apt# apt update
Hit:1 http://security.debian.org/debian-security bookworm-security InRelease
Ign:2 https://repos.codelite.org/debian bookworm InRelease
Hit:3 http://deb.debian.org/debian bookworm InRelease
Err:4 https://repos.codelite.org/debian bookworm Release
404 Not Found [IP: 79.143.189.67 443]
Hit:5 http://deb.debian.org/debian bookworm-updates InRelease
Hit:6 http://deb.debian.org/debian bookworm-backports InRelease
Reading package lists... Done
E: The repository 'https://repos.codelite.org/debian bookworm Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
root@shack20:/etc/apt#

So it looks like I have to wait for something that's compatible with bullseye to be uploaded, unless there's somewhere else on your site that provides a .deb compatible with bullseye.


Re: How to restore last location in file?

Posted: Sun Jul 16, 2023 6:15 pm
by N7DR

I meant "compatible with bookworm" in the last sentence, not "compatible with bullseye".


Re: How to restore last location in file?

Posted: Mon Jul 17, 2023 1:34 pm
by DavidGH

Hi,

That page is only for 'stable' releases; stable currently being 17.0. As the official debian bookworm codelite package is 17.0...

try one of the latest .deb files from the website

I think eranif meant the ubuntu deb from https://downloads.codelite.org/. However that doesn't install on bookworm (missing dependencies).

I suggest you try building from the 17.3 source.

Regards,

David