-
Notifications
You must be signed in to change notification settings - Fork 132
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
In the library manager selecting a library and apply and without closing selecting a library and apply does not trigger the install #1138
Comments
It only does something when you select apply and close. |
I'm sorry, but no it doesn't. Also, when you click on Apply the first time, you can see in the progress tab the library being downloaded. Also, It stays stuck in the preference window if I try to click on Apply and Close after clicking on Apply. The only way out from this is clicking Cancel. |
Seems like it works better than I thought. |
To workaround close the preferences and reopen. |
I had a look and found that LibrarySelectionPage.performOk will only do something if isJobRunning is false. This is the case the first time you click Apply, but never again until the dialog is closed. It sets isJobRunning to true and hands the work off to a background Job. But it never knows when that background job is finished and never resets isJobRunning. One fix is to not do the library update in the background, but there is no visual indication of what's going on then. I tried it by just waiting for the job to finish using Job.join. I think that's more in keeping with what someone would expect when pressing Apply - they should no be surprised that some processing takes place. But some sort of visual indication that the thread is busy is required. Eg
|
Oops. That was pretty obvious.
|
I agree doing it synchronously is the way to go. I have the code I pasted above in my local repo and it works fine but as you say it needs more user feedback. I didn't understand the code that loops through the libs and decides on whether to delete or install them. Is it looping through all libraries? It might run a lot quicker if it kept a list of pending changes based upon events from the tree and just do those. Although it's quick enough as-is that it might not be worth the effort. I'm on a Thinkpad T460, not exactly a fast laptop. |
No it is looping through all selected libraries. |
Any progress? |
I never looked at it again, sorry. The solution requires more 'eclipse SDK' than I was planning to learn. I'll be back in Sloeber in a couple of weeks so can take a look then. I'm working on other things until the semester starts. |
I know what you mean :-) |
This one got fixed as part of #1339 |
Describe the bug
When setting up Sloeber, I tried to install several libraries from the libraries manager.
I realised that if you select several libraries, click Apply, they will install. But if you chose some more libraries and click Apply again, the newly selected ones will not install.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It should install the newly selected library.
Desktop:
The text was updated successfully, but these errors were encountered: