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

Some problems while downloading Idea IC 16. #38

Open
p-mitana opened this issue Jan 4, 2016 · 3 comments
Open

Some problems while downloading Idea IC 16. #38

p-mitana opened this issue Jan 4, 2016 · 3 comments

Comments

@p-mitana
Copy link

p-mitana commented Jan 4, 2016

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.

@trygvis
Copy link
Owner

trygvis commented Jan 4, 2016

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

@p-mitana
Copy link
Author

p-mitana commented Jan 4, 2016

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.

@mephi42
Copy link

mephi42 commented Jan 10, 2016

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".

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

No branches or pull requests

3 participants