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

b

  • Senior Community Member
  • Posts: 261
  • Hero Points: 24
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: 4560
  • Hero Points: 353
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: 4560
  • Hero Points: 353
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: 4560
  • Hero Points: 353
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: 261
  • Hero Points: 24
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: 4560
  • Hero Points: 353
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: 261
  • Hero Points: 24
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!