Stuck on 83% when I run it and the bot doesnt actually start.
I've been running it for a day now with no issues, but I stopped it, edited the config file, try to rerun the bot by coding in ./gradlew run and then this happened:
Carolyns-iMac:PokemonGoBot daniel$ ./gradlew run
:compileKotlin UP-TO-DATE
:compileJava UP-TO-DATE
:processResources UP-TO-DATE
:createProperties
:classes
:run
,'\
_.----. ____ ,' _\ ___ ___ ____ ;-. ,
_,-' `. | | /`. \,-' | \ / | | \ |`. \ '. .'/
\ __ \ '-. | / `. ___ | \/ | '-. \ | | \ \ .---. .-' /
\. \ \ | __ | |/ ,','_ `. | | __ | \| | '. ' `\_.'
\ \/ /,' _`.| ,' / / / / | ,' _`.| | | |(),() | ,
\ ,-'/ / \ ,' | \/ / ,`.| / / \ | | ( __ / .' \
\ \ | \_/ | `-. \ `' /| | || \_/ | |\ | .''.___.'--,/\_,|
\ \ \ / `-.`.___,-' | |\ /| \ / | | | { / \ } |
\ \ `.__,'| |`-._ `| |__| \/ | `.__,'| | | | '.\ /_.' /
\_.-' |__| `-._ | '-.| '-.| | | |'-.-', `; _.'
`' '-._| | | | |`
`""`""`"""`
> Building 83% > :run
It's been 20 minutes and it hasn't done anything. Can someone help?
Unrelated to the 83%, that number is 100% correct and not a bug (search).
No idea why it wouldn't log more. Can you try running the precompiled jar?
Can you try running the precompiled jar?
I'm not sure what that means, I'm not too good with this stuff. I barely got through the tutorial haha
Edit: I tried to rebuild it and this happened
`:compileKotlin UP-TO-DATE :compileJava UP-TO-DATE :processResources UP-TO-DATE :createProperties :classes :jar :findMainClass :startScripts :distTar :distZip :bootRepackage :assemble :compileTestKotlin :compileTestJava UP-TO-DATE :processTestResources UP-TO-DATE :testClasses UP-TO-DATE :test
ink.abb.pogo.scraper.TestSettings > testDefaultSettings FAILED java.io.FileNotFoundException at TestSettings.kt:25
ink.abb.pogo.scraper.TestSettings > testTemplateKeys FAILED java.io.FileNotFoundException at TestSettings.kt:73
2 tests completed, 2 failed :test FAILED
FAILURE: Build failed with an exception.
-
What went wrong: Execution failed for task ':test'.
There were failing tests. See the report at: file:///Users/daniel/PokemonGoBot/build/reports/tests/index.html
-
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 17.976 secs `
I noticed this behaviour of not moving on/logging more details as well, but it was due to port 8080 being in use already. Hope this helps.
@dyze1114 does it happen when you restart the bot. Happens to me sometime as well ... try killall java in the console.
Also when the build fails try to disable the test ./gradlew build -x test
Figured out how to bypass this problem!
So,
- Use
./gradlew build -x testto bypass the 'Test failed' error - Run normally using
./gradlew run - If you face this problem, type
killall java. However, this somehow doesn't work. So, open Activity Monitor (or its equivalent), search for 'java', and force quit all of them. I had 4 'java' instances which I needed to quit even after usingkillall java. - Now you can run it fine.
Skipping Tests however is not good! Something vor someone messed up...
@AlexBoulyga True. But if you're compiling from the git, you know the risks.
try in terminal killall -9 java