-
Notifications
You must be signed in to change notification settings - Fork 175
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
User-unfriendly error message when main class not present #500
Comments
I have the same issue |
I've confirmed and reproduced the issue! I'll take a look when I have time. Thanks for reporting. |
Oof, this is an unfortunate non-error message. You're actually specifying your classpath incorrectly! If you try:
...notice that it doesn't work. Instead, you need to do:
Thus, run the following command instead:
With that said, this should really give you a better error message! |
Thank you a lot for a quick reply! It worked! |
yes that was it. Though if you're inside the docs/examples folder, the correct command is: %> ../../doppio -cp . example.App |
Failed to run provided example (Mac, node 6.11.2)
% ../../doppio -cp example example.App
Encountered error: TypeError: Cannot read property 'getLoader' of undefined
TypeError: Cannot read property 'getLoader' of undefined
at a.getLoader (/Volumes/Unix/workspace/doppio/src/threading.ts:709:49)
at a.throwNewException (/Volumes/Unix/workspace/doppio/src/threading.ts:1159:44)
at b.a.throwClassNotFoundException (/Volumes/Unix/workspace/doppio/src/ClassLoader.ts:341:12)
at a.cb (/Volumes/Unix/workspace/doppio/src/ClassLoader.ts:554:14)
at a.run (/Volumes/Unix/workspace/doppio/src/threading.ts:552:12)
at a.run (/Volumes/Unix/workspace/doppio/src/threading.ts:851:12)
at Immediate. (/Volumes/Unix/workspace/doppio/src/threadpool.ts:84:16)
at runCallback (timers.js:672:20)
at tryOnImmediate (timers.js:645:5)
at processImmediate [as _immediateCallback] (timers.js:617:5)
The text was updated successfully, but these errors were encountered: