intellij-idea-dpkg icon indicating copy to clipboard operation
intellij-idea-dpkg copied to clipboard

Some problems while downloading Idea IC 16.

Open p-mitana opened this issue 9 years ago • 3 comments

I had some problems while downloading Idea IC 16 EAP. I've made some simple changes on my own. I won't fork and make a pull request, because probably there is need for a more reliable solution - mine is just to get it working.

What I've changed:

  1. In function findLatest filename was set to ideaIU... regardless of the flavor chosen. I've placed a line
filename=$(echo $filename | sed -e  "s/ideaI./idea$flavor/g")  # Ensure flavors are not mixed

after it.

  1. In read function wrong parameter order was set. Therefore filename landed in $url etc.
read filename version url skip_the_rest

worked for me.

p-mitana avatar Jan 04 '16 09:01 p-mitana

Thanks for the report, but I didn't quite understand what you changed and what went wrong. Could you elaborate?

trygvis avatar Jan 04 '16 12:01 trygvis

The problem in your latest version is that Idea IC 16 EAP won't download. The error is reported by wget (cannot download etc.), because wget received something else instead of URL. It happend bacause the read command placed wrong values in wrong variables (I cannot recall now, but probably filename landed in $url, version in $filename and URL in $version.

After I reordered the variables in read command so that they are assigned proper values, I encountered the next problem - despite specified IC flavor filename was set to ideaIU[...]. This caused the script to report that wget has downloaded file to the wrong path. Again, the reason is in data parsed by read - it contains 4 lines. First two decribed the ultimate edition, next two the community one. It should probably be parsed to discover the version of the specified edition, but - as I wanted to fix it ASAP - I decided to just swap the 'IU' with the flavor specified by user. Then I extended it for the case when user wants to get IU, but the IC version is listed first - ideaI. will be replaced with ideaIC or ideaIU depending on the user-chosen edition. (warning: this will probably fail if the IC and IU version are not the same).

After those corrections the download and build completes properly, but that's just a workaround, so I decided not to create the pull request - just drop you a line so that you knew the problem and could find a complete solution.

p-mitana avatar Jan 04 '16 13:01 p-mitana

Same here:

user@pc ~/intellij-idea-dpkg $ ./build-package -f IC
Saving the flavor so you don't have to specify it again.
Finding latest version from http://confluence.jetbrains.net/display/IDEADEV/IDEA+16+EAP ...
The latest version is https://download.jetbrains.com/idea/ideaIC-144.2608.2-custom-jdk-linux.tar.gz
Downloading version https://download.jetbrains.com/idea/ideaIC-144.2608.2-custom-jdk-linux.tar.gz...
Could not download ideaIU-144.2608.2-custom-jdk-linux.tar.gz

As the-Mitu mentioned, URL is mixed up with version, and also version contains "IU" instead of "IC".

mephi42 avatar Jan 10 '16 18:01 mephi42