Author Topic: BUG? launching SE from commandline with -fn parameter doesn't open file  (Read 3445 times)

b

  • Senior Community Member
  • Posts: 325
  • Hero Points: 26
I was experimenting with opening one off files with no associated projects/workspace.

(with no instance of SE already running)

I tried:   vs -fn newfile.txt

As an afterthought, I tried both with existent and non-existent (neither opened the file)

Just for completion, tried vs -sc foobar -fn foo.txt with the same results.

The documentation in the help suggests that this ought to work.
Quote
Do not restore from workspace, project, or solution file. Files and edit command options follow [...]

Although, a new editor is brought up without project or workspace (expected), no file is opened.  Moreover, list-buffers pops up an error "Command is disabled for this object"

Tried on Ubuntu 14.04.5 LTS 
SE v21.0.1.0 64-bit Hotfix 1


Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6826
  • Hero Points: 526
Re: BUG? launching SE from commandline with -fn parameter doesn't open file
« Reply #1 on: January 27, 2017, 09:34:14 PM »
Hmm...works on Windows but not Linux. We will look into this.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6826
  • Hero Points: 526
Re: BUG? launching SE from commandline with -fn parameter doesn't open file
« Reply #2 on: January 27, 2017, 10:15:07 PM »
It turns out Qt is eating that option. It thinks your specifying the application font. We'll have to come up with a work around. Qt has quite a few built-in switches. We take advantage of this with the -graphicssystem option. We're getting burned here with -fn.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6826
  • Hero Points: 526
Re: BUG? launching SE from commandline with -fn parameter doesn't open file
« Reply #3 on: January 27, 2017, 10:31:34 PM »
Fixed for v21.0.2

b

  • Senior Community Member
  • Posts: 325
  • Hero Points: 26
Re: BUG? launching SE from commandline with -fn parameter doesn't open file
« Reply #4 on: January 27, 2017, 10:37:19 PM »
It turns out Qt is eating that option. It thinks your specifying the application font. We'll have to come up with a work around. Qt has quite a few built-in switches. We take advantage of this with the -graphicssystem option. We're getting burned here with -fn.

So is this option going to remain the same or be different in 21.0.2?

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6826
  • Hero Points: 526
Re: BUG? launching SE from commandline with -fn parameter doesn't open file
« Reply #5 on: January 27, 2017, 11:00:00 PM »
It will be the same. We just temporarily change it to something else to trick Qt

b

  • Senior Community Member
  • Posts: 325
  • Hero Points: 26
Re: BUG? launching SE from commandline with -fn parameter doesn't open file
« Reply #6 on: January 27, 2017, 11:01:52 PM »
Okay, great!