Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Error on CLI Execution / Error while extracting #106

Closed
jshster opened this issue Mar 27, 2024 · 5 comments
Closed

[BUG] Error on CLI Execution / Error while extracting #106

jshster opened this issue Mar 27, 2024 · 5 comments

Comments

@jshster
Copy link

jshster commented Mar 27, 2024

Search first
Please make sure, that your issue is not covered by any other ticket. Please search first before you create a ticket.

Describe the bug
When saving a file or right clicking and trying to Minify File the IDE reports Error on CLI Execution. It states

To Reproduce
Steps to reproduce the behavior:

  1. Open .js or .css file, make edit and Save

Expected behavior
Should minify the file. I swear it was minifying the file until a day or a few days ago and then all of a sudden it stopped working.

Screenshots
image

Environment (please complete the following information):

  • OS: Windows 11
  • NetBeans version: 21
  • JDK version 19.0.1
  • MinifierBeans Version: 3.5.0 (downloaded today)

Additional context
I found discussion online that suggested manually extracting the custom-packages.zip file manually. I have done that and it makes no difference.

@DimArthur
Copy link

Looks to be a part of this issue
image

@DimArthur
Copy link

I guess this solution worked for me:

  1. install the newest version
  2. unzip \.netbeans\minifierbeans\custom-packages.zip
  3. move all files from \.netbeans\minifierbeans\custom-packages\custom-packages\ to \.netbeans\minifierbeans\custom-packages\custom-packages\
  4. restart IDE

@Chris2011
Copy link
Owner

@jshster it is already written in the first like:
Search First - Please make sure, that your issue is not covered by any other ticket. Please search first before you create a ticket.

It is already a duplicate of #104

Workaround is to manually unzip the archive in the given path.

@Chris2011
Copy link
Owner

I updated the custom-packages.zip which has kjust the files inside. The path needs to be .netbeasn/minifierbeans/custom-packages/.. Please test it.

@Chris2011
Copy link
Owner

So all in all, the first problem was, that I zipped the archive with a wrong compression strength. I just used windows zipping, before I used 7z with highest compression strength (9 - Ultra). The second problem was, that I removed the custom-packages folder from the zip and added the files to the root path which is wrong.

This is fixed in custom-packages 1.5.2 and it should work now out of the box, after opening NetBeans. If not, please empty the folder .netbeans/minifierbeans and restart NetBeans.

With Minifierbeans 3.5.1 I also increased the performance of extracting the archive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants