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

jporkkahtc

  • Senior Community Member
  • Posts: 1942
  • Hero Points: 185
  • 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: 5245
  • Hero Points: 432
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: 1942
  • Hero Points: 185
  • 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: 5245
  • Hero Points: 432
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: 1942
  • Hero Points: 185
  • 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: 1942
  • Hero Points: 185
  • 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: 5245
  • Hero Points: 432
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: 1942
  • Hero Points: 185
  • 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: 1942
  • Hero Points: 185
  • 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: 5245
  • Hero Points: 432
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).