-
Notifications
You must be signed in to change notification settings - Fork 13
How can i disable error dialog boxes in code? #9
Comments
I'm sorry. but there is no option to disable popups, the only thing you can do right now is probably not to queue too many uploads at once to reduce the number of popups. It is a good idea to abort all uploads if the program notices the limit has been reach and only display one warning instead of one per video. I do not think I ever seen how that error looks like, if you please can share the full error here I should be able to add code to handle it and get rid of the extra popups. |
`Failed to upload the video "Ммарло - Компас"
|
Yeah i know there is no such option. |
There are several steps to get from the stacktrace to where the popup is created, following them you end up at the bottom of the mainWindowController. Are you familiar with other programming languages and curious on how it got there? |
Thanks!
if i supply some random mainClassName, then it builds, but after that, when i run gradlew run, it says |
By "latest jdk", do you mean the latest version of JDK 8? Other versions of Java is currently not supported. The name of the main class is "Main" and located in I am sorry but I do not know much about gradle and can not give more detailed help on your error, I only use gradle for dependencies. |
Using that class name gets the same result. |
I am using IntelliJ (the Community edition is free) |
All right, ill try it out, thanks. |
All right, just cloning your project, building it in idea and then selecting build artifacts (everything goes smoothly w/o error) gives me a jar file in out\artifacts\videouploader_main_jar directory, but with significantly lesser size than yours (mine about 169kb). And it doesn't run. |
Now im able to run, and just comment out the popup, great. `Failed to upload the video "ttt"
|
Looking at your stacktrace and assuming the first lines looks the same for as in the latest commit: Did you add a line like |
I haven't added or modified anything, i just created run config according to your instruction, and ran the application. I have copied VideoUploader folder to compiled application folder, form the original jar application location (to get my preset). Then, i noticed, that $(rawname) is not resolving, and trying to upload results in the above error. Can you please compile a new version for me with commented out AlertUtils.exceptionDialog (879 in mainWindowController.java)? |
…daily quota limit has been reached and if so aborts all started uploads and shows a dialog telling that the program can not do anymore uploading right now. - Fixed a translation miss where a line was in swedish with english settings and english with swedish settings. - Added a couple of more error checks (try-catch blocks) and removed one error check (if statement) that IntelliJ claimed to be redundant.
Hi journeym and sorry for the waiting. I have just uploaded version 1.3.2 that should only show one exception dialog if the quota limit is reached. I have however not been able to test it on the real exception, only by trying to fake it. |
Can you please write a bit about how to compile that under any distro. Release version, pref. |
The left error for the quota is easily fixed, but I can not see the entire error message for the right error. If you see it again, please update with the entire error message. I am happy to accept pull requests and include them in future releases, but I can not help you with creating a release on your computer as the process includes secrets between me and YouTube that make YouTube recognise the program as Stekeblads Video Uploader and not any other program that connects to the API. |
…led for this app. Issue #9 about error dialogs: attempt of fixing a ConcurrentModificationException
Im uploading large amount of files, and all that hit the quota get popup with upload failed exception.
How to disable that with not much effort involved?
The text was updated successfully, but these errors were encountered: