eranif / codelite

A multi purpose IDE specialized in C/C++/Rust/Python/PHP and Node.js. Written in C++
https://codelite.org
GNU General Public License v2.0
2.08k stars 444 forks source link

[Bug]: `--line` does not work when "Allow only single instance" is enabled #3376

Closed AJenbo closed 1 month ago

AJenbo commented 1 month ago

What happened?

The file opens but on line 1 instead of the specified line.

Version

Repo 17.0.0 Ubuntu 24.04 Montly 17.9.0 Ubuntu 22.04

Operating system

Linux

Steps to reproduce

  1. Enable "Allow only single instance"
  2. Restart CodeLite
  3. Run codelite --line 24 src/main/php/PDepend/Application.php

Notice that the cursor is at line 1 and the file is scrolled to the top

Relevant log output

P.s. is there a way to make a command that opens a file in the current instance without enabling "Allow only single instance" ... I realize this might behave a bit random if you have multiple instances open.

MainBook::OpenFile() gets called with lineno = -1

[03:01:57:077 DBG] clSingleInstanceThread: received new message: {
 "args": ["/home/ajenbo/code/pdepend/src/site/config.php"]
}