SlickEdit Product Discussion > SlickEdit®

SE fails to launch from command line with +line +column

(1/4) > >>

rowbearto:
I am using Linux x64 QT5 version of SlickEdit v29.0.4.0.

With the SE IDE already running and displayed I desire to run a command from outside SlickEdit to tell the running SE IDE GUI to put a file in the active editor window at a particular line and column number via command:


--- Code: ---<SE_INSTALL_DIR>/bin/vs_exe +line 6 +column 29 /home/username/some_file.cc
--- End code ---

This runs into a problem, I show the output below.

How to fix this issue?

I do not need a graphical environment for this particular command, I am only using it to wake up the existing vs_exe (which is already graphically displayed) at a particular file, line and column. Is there a way to tell SlickEdit to not use Qt or to tell it where the Qt dependency it is looking for is?

Maybe I need to define some environment variables before running SlickEdit to point to some SlickEdit install dir? Something else?

Running above vs_exe command yields output:


--- Code: ---qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: linuxfb, minimal, offscreen, vnc, xcb.

Aborted (core dumped)
--- End code ---

Clark:
SlickEdit has no invocation option +line nnn or +column nnn. There is a way to do this but this isn't correct.

Are you able to run SlickEdit at all because this type of issue is typically reproducable every time.

In order to communicate to an existing instance of SlickEdit you just need to run the same version of SlickEdit and specify the same configuration directory. Just leave out the +new option.

rowbearto:

--- Quote ---Are you able to run SlickEdit at all because this type of issue is typically reproducible every time.
--- End quote ---

Yes, I am able to run SlickEdit. I have a SlickEdit GUI running in my VNC session under XFCE in Rocky Linux 9.6.


--- Quote ---There is a way to do this but this isn't correct.
--- End quote ---

Ah, AI hallucinations, joy! Copilot AI told me I could invoke SlickEdit this way.

Could you please tell me the correct way for a script running outside of SE to tell the already running SE GUI to open a desired file at the line and column and then come to the foreground?

If I invoke vs_exe without +new for the existing instance then what arguments to use to specify the line and column numbers to open the desired file at? I do not see any options in the SlickEdit GUI help that indicate how to specify the line and column number.

Clark:

--- Code: ---vs filename "-#goto-line 2" "-#goto-col 3"

--- End code ---

rowbearto:
Thanks Clark!

Still having issues using your way to specify line and column.

Just to remind the SE gui is already running in my VNC session.

The SE GUI is the process with pid 1672268 as per the "ps -ef | grep vs_exe" output:


--- Code: ---$ ps -ef | grep vs_exe
rbresali 1672268       1 20 19:59 pts/17   00:00:02 /home/rbresali/pen/slickedit/se_29000400_linux64qt5/bin/vs_exe -st 0 -sc /home/rbresali/pen/slickedit/config

--- End code ---

Then from another terminal window I try to launch the same version of SlickEdit using the same configuration directory and this is what happens:


--- Code: ---$ /home/rbresali/pen/slickedit/se_29000400_linux64qt5/bin/vs_exe /home/rbresali/.config/Code/User/keybindings.json "-#goto-line 2" "-#goto-col 25" -sc /home/rbresali/pen/slickedit/config
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: linuxfb, minimal, offscreen, vnc, xcb.

Aborted (core dumped)
--- End code ---

I tried to set an environment variable I thought may be relevant:


--- Code: ---$ export QT_QPA_PLATFORM=offscreen
--- End code ---

This is what happened when I tried running vs_exe again after exporting QT_QPA_PLATFORM=offscreen:


--- Code: ---$ /home/rbresali/pen/slickedit/se_29000400_linux64qt5/bin/vs_exe /home/rbresali/.config/Code/User/keybindings.json "-#goto-line 2" "-#goto-col 25" -sc /home/rbresali/pen/slickedit/config
Segmentation fault (core dumped)
--- End code ---

Navigation

[0] Message Index

[#] Next page

Reply

Go to full version