Author Topic: Decompressing GZ files on open?  (Read 3527 times)

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
Decompressing GZ files on open?
« on: March 28, 2018, 07:13:26 PM »
I have this option enabled, but when I try to open a file I get an error

Error opening file: Path not found: D:\logs\stuff\archive.json-2018032811.gz\archive.json-2018032811

From the Slick command line I try:
e D:\logs\stuff\archive.json-2018032811.gz
e D:\logs\stuff\archive.json-2018032811.gz\archive.json-2018032811
e D:\logs\stuff\archive.json-2018032811.gz\

Slick doesn't autocomplete the name inside the file, like it does with ZIP archives.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6884
  • Hero Points: 530
Re: Decompressing GZ files on open?
« Reply #1 on: March 28, 2018, 09:28:51 PM »
No idea why it doesn't work for you. Try the attached file.

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
Re: Decompressing GZ files on open?
« Reply #2 on: March 29, 2018, 02:49:51 PM »
Nope - doesn't work (Windows 10 - 2 different machines).


Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6884
  • Hero Points: 530
Re: Decompressing GZ files on open?
« Reply #3 on: March 29, 2018, 03:38:20 PM »
Try a default config

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
Re: Decompressing GZ files on open?
« Reply #4 on: March 29, 2018, 04:33:35 PM »
Then I get a popup error instead - still doesn't work.
SlickEdit Pro 2017 (v22.0.2.1 64-bit)
No hotfixes - as this is a clean config.

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
Re: Decompressing GZ files on open?
« Reply #5 on: March 29, 2018, 04:40:33 PM »
Poking around with PROCMON, I found that Slick requires "gzip.exe" to be in the path.
Once I add gzip to PATH, then it works.

Slick oughta have a better error message for this.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6884
  • Hero Points: 530
Re: Decompressing GZ files on open?
« Reply #6 on: March 29, 2018, 05:49:28 PM »
Yep, there needs to be a better error message for sure.

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
Re: Decompressing GZ files on open?
« Reply #7 on: March 29, 2018, 10:06:38 PM »
Maybe even mention in the help file!

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
Re: Decompressing GZ files on open?
« Reply #8 on: March 29, 2018, 11:52:12 PM »
Hm...

So with GZIP in my path I can open *.gz files, but I cannot Find-In-Files.

Seems that slick just reads those files and doesn't try to decompress them during file-in-files.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6884
  • Hero Points: 530
Re: Decompressing GZ files on open?
« Reply #9 on: March 31, 2018, 02:08:53 AM »
The "Look in zip/word/excel files" check box is supposed to work for tar and gzip files but it doesn't (see docs). This isn't hot fixable. This will be fixed in the next build (not sure if there will be another installer for v22).