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
Feature 163- DropBox tweaks to EasyImportManager #211
Feature 163- DropBox tweaks to EasyImportManager #211
Conversation
Discouraged access: The method 'AbstractStringToNumberConverter<Float>.convert(Object)' is not API (restriction on required library 'C:\E\e-416-MT\eclipse\plugins\org.eclipse.core.databinding_1.9.0.v20200519-1409.jar') The old implementation contained a convert() method org.eclipse.core.databinding.conversion.StringToNumberConverter.convert(Object) but not the new implementation org.eclipse.core.databinding.conversion.text.StringToNumberConverter<T>
Formatting with default save actions, no code changes.
Added a number of optimizations to provide better support for Dropbox feature.
Member SortingCurrently you have not applied the settings for the member sorting which is defined in http://mytourbook.sourceforge.net/mytourbook/index.php/development/dev-ide/code-style -> Code is resorted Field FormattingEclipse has the evil behavior that sometimes (not always) it moves blank lines between member fields, this happened in your code. The only workaround is to manually check the code before it is commited or improve Eclipse which is propably very complex. |
@wolfgang-ch , thank you for the correction on this. I had wondered about this before and actually had a short discussion on the topic recently https://sourceforge.net/p/mytourbook/discussion/622811/thread/a8eace28ec/ , but I incorrectly misread my obligation to modify the settings for the sort order. This also explains why I saw such large diffs when I did the checkins. I'll get it fixed up in the future and I appreciate you fixing up these files. Thanks! |
I've not fix the formatting issues, I just discovered and logged it here. For me, to verify code changes with the github browser tools is useless as it shows also other changes and then to find only your changes it just wasting of time. I use the Eclipse compare tools to verify the code changes but to use it, I have to merge the PR. |
@rtdog I've cherry picked your commit without the formatting commit into the new branch https://github.com/wolfgang-ch/mytourbook/tree/main-with-cherry-pick-from-rtdoc My tests with local and dropbox devices were successfull, can you check if it is also working for you because I had to solve some formatting conflicts. |
@rtdog Can you fix this issue for 20.8?
|
@wolfgang-ch Yes I can take a look at this, thanks for finding it. Is there a hardening or code freeze period prior to the 2020.08 release and how does that work with the various branches? Thanks! |
The product is built from the main branch. An official code freeze period do not exist but at the time, when I send the translators a mail to do the translations, which was on July 20, 2020 for 20.8, then I also create a test version that they can test their translations. At this time I also run my production with this test version, then there must be no database structure changes or other major changes only code fixes. The translators have 2 weeks to do the translation (they could extend the time when requested) so the release date will be August 4, 2020 but this date is not fixed it also depends if I've updaate the website. The built process itself takes only 3 minutes and with my 1GBit internet access it's published very fast, in the early days it took 2 hours to upload the product files. |
@wolfgang-ch , I have been unable to reproduce the issue you reported above. Furthermore, I'm not sure we're looking at the same code: java.lang.NullPointerException Notice this stack dump you provided shows "getImportFiles" on line 415 of EasyImportManager. My git history shows that command now on line 429 at the head of branch "main-with-cherry-pick-from-rtdoc". Is it possible that you were testing on a different commit? I admit that I have only used git for a few weeks so I'm still learning here. Thanks. |
I thought to have done the test with your commit but it was not. When doing the test with Sorry for this mistake I just tested with local and dropbox device and the import works smoothly. Now I will merge your commit into Thanks for fixing the (for me) complex thread locking/interruption issue, this is something where I can still improve my skills :-) |
@rtdog Thanks for improving the EasyImportManager :-) My understanding is that the Dropbox integration revealed some issues that were never found with a local device as the performance of the latter is way faster than the performance of Dropbox |
Added thread interruption logic to allow for quickly turning off, on, and changing folders in EasyImportManager. Also added some critical sections to prevent timing related errors. For best results this PR requires an updated java7-fs-dropbox library which is not included in this PR, but it is functional with the current version.