Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

I have problem with the tutorial #109

Open
tlightsky opened this issue Nov 5, 2014 · 32 comments
Open

I have problem with the tutorial #109

tlightsky opened this issue Nov 5, 2014 · 32 comments
Labels

Comments

@tlightsky
Copy link

I follow the tutorial,
I change the org.clojure-android/tools.nrepl to org.clojure/tools.nrepl to run lein droid doall
But I get an FC with:

E/AndroidRuntime(12719): java.io.FileNotFoundException: Could not locate cider/nrepl/middleware/apropos__init.class or cider/nrepl/middleware/apropos.clj on classpath.

E/AndroidRuntime(12719): at clojure.lang.RT.load(RT.java:468)

E/AndroidRuntime(12719): at clojure.lang.RT.load(RT.java:436)

E/AndroidRuntime(12719): at clojure.core$load$fn__5405.invoke(core.clj:5811)

E/AndroidRuntime(12719): at clojure.core$load.doInvoke(core.clj:5811)

E/AndroidRuntime(12719): at clojure.lang.RestFn.invoke(RestFn.java:408)

E/AndroidRuntime(12719): at clojure.core$load_one.invoke(core.clj:5617)

E/AndroidRuntime(12719): at clojure.core$load_lib$fn__5354.invoke(core.clj:5656)

E/AndroidRuntime(12719): at clojure.core$load_lib.doInvoke(core.clj:5656)

E/AndroidRuntime(12719): at clojure.lang.RestFn.applyTo(RestFn.java:142)

E/AndroidRuntime(12719): at clojure.core$apply.invoke(core.clj:628)

E/AndroidRuntime(12719): at clojure.core$load_libs.doInvoke(core.clj:5695)

E/AndroidRuntime(12719): at clojure.lang.RestFn.applyTo(RestFn.java:137)

E/AndroidRuntime(12719): at clojure.core$apply.invoke(core.clj:628)

E/AndroidRuntime(12719): at clojure.core$require.doInvoke(core.clj:5716)

E/AndroidRuntime(12719): at clojure.lang.RestFn.invoke(RestFn.java:408)

E/AndroidRuntime(12719): at neko.tools.repl$start_repl$fn__377$fn__378.invoke(repl.clj:63)

E/AndroidRuntime(12719): at clojure.core$map$fn__4513.invoke(core.clj:2616)

E/AndroidRuntime(12719): at clojure.lang.LazySeq.sval(LazySeq.java:40)

E/AndroidRuntime(12719): at clojure.lang.LazySeq.seq(LazySeq.java:49)

E/AndroidRuntime(12719): at clojure.lang.RT.seq(RT.java:512)

E/AndroidRuntime(12719): at clojure.core$seq__seq__4092.invoke(core.clj:135)

E/AndroidRuntime(12719): at clojure.core$apply.invoke(core.clj:626)

E/AndroidRuntime(12719): at neko.tools.repl$start_repl$fn__377.invoke(repl.clj:62)

E/AndroidRuntime(12719): at clojure.core$with_redefs_fn.invoke(core.clj:7146)

E/AndroidRuntime(12719): at neko.tools.repl$start_repl.doInvoke(repl.clj:58)

E/AndroidRuntime(12719): at clojure.lang.RestFn.applyTo(RestFn.java:139)

E/AndroidRuntime(12719): at clojure.core$apply.invoke(core.clj:632)

E/AndroidRuntime(12719): at neko.init$init.doInvoke(init.clj:41)

E/AndroidRuntime(12719): at clojure.lang.RestFn.invoke(RestFn.java:410)

E/AndroidRuntime(12719): at clojure.lang.Var.invoke(Var.java:379)

E/AndroidRuntime(12719): at org.tlightsky.clojuroid.SplashActivity$1.run(SplashActivity.java:62)

E/AndroidRuntime(12719): at java.lang.Thread.run(Thread.java:856)

@alexander-yakushev
Copy link
Contributor

Tutorial is currently little bit outdated for the latest versions of the libraries. I will try to figure what needs to be changed as soon as I can and notify you. Sorry about the inconveniences.

@tlightsky
Copy link
Author

thank u for your fast reply
wait for the right method :)

@tlightsky
Copy link
Author

I clone this project :https://github.com/kenrestivo/spazradioapp
After a little edit( target version), it works well,don't know does this help

@alexander-yakushev
Copy link
Contributor

@tlightsky I've just updated the tutorial in my fork. Can you please try it and give me feedback?
https://github.com/alexander-yakushev/events/blob/master/tutorial.md

@tlightsky
Copy link
Author

Hi,I cloned this event project, It works very well.

But when I use 'lein droid new ...',and then try 'lein droid doall',it will say:
Could not find artifact org.clojure-android:tools.nrepl:jar:0.2.6 in central (https://repo1.maven.org/maven2/)
Could not find artifact org.clojure-android:tools.nrepl:jar:0.2.6 in clojars (https://clojars.org/repo/)

@alexander-yakushev
Copy link
Contributor

Damn, sorry about that. Should be fine now.

@oakes
Copy link
Contributor

oakes commented Nov 6, 2014

I get this problem too with beta3. Does the template need to be updated?

@alexander-yakushev
Copy link
Contributor

With beta3 of what exactly, Zach?

@oakes
Copy link
Contributor

oakes commented Nov 6, 2014

I meant lein-droid 0.3.0-beta3. I get the same runtime error with a fresh project from its template.

@alexander-yakushev
Copy link
Contributor

The same being Could not find artifact org.clojure-android:tools.nrepl:jar:0.2.6? I have already pushed it to Clojars, so that's weird.

@oakes
Copy link
Contributor

oakes commented Nov 6, 2014

No, sorry, I meant the runtime error above that says Could not locate cider/nrepl/middleware/apropos__init.class or cider/nrepl/middleware/apropos.clj on classpath..

@alexander-yakushev
Copy link
Contributor

Please look at the updated tutorial https://github.com/alexander-yakushev/events/blob/master/tutorial.md . I've sent a PR to Kris and still waiting for it to be merged.

@oakes
Copy link
Contributor

oakes commented Nov 6, 2014

I'll check it out. Is there something that depends on cider now? I don't use Emacs.

@alexander-yakushev
Copy link
Contributor

No, absolutely not (at least it shouldn't. If you see any cider traces, call 1-800-EMACSBUSTERS immediately!)

@oakes
Copy link
Contributor

oakes commented Nov 6, 2014

Sorry to be a pain but I'm still confused...I expect lein droid doall to work out of the box. I'm not trying to connect to my app with a REPL or anything...I just want it to build and run.

@alexander-yakushev
Copy link
Contributor

No problem Zach! What's not working now?

@oakes
Copy link
Contributor

oakes commented Nov 6, 2014

Same error as before. I don't understand why I'm getting an error related to cider, which I do not use. I looked through the tutorial but can't figure it out. All I'm doing is lein droid new android-test android_test.core && cd android-test && lein droid doall.

@alexander-yakushev
Copy link
Contributor

Zach, I'm terribly sorry. I thought that the error was related to the old way of incorporating cider and the :user profile (that was a frequent issue before) but now I see that I force requiring CIDER middleware without a proper check. The fix is under way.

@alexander-yakushev
Copy link
Contributor

Please try now with neko 3.1.0-SNAPSHOT, it should work without cider or any other alcohol. Sorry again, I should have shut my trap and tested it myself earlier.

@oakes
Copy link
Contributor

oakes commented Nov 6, 2014

I seem to still get the same runtime error. I made sure to delete the 3.1.0-SNAPSHOT folder to force it to download.

@oakes
Copy link
Contributor

oakes commented Nov 6, 2014

Oh! I think I just needed to clean my project. The app launched successfully.

@alexander-yakushev
Copy link
Contributor

Whew! I was seriously considering to call some paranormal activity control squad. Please keep me informed if any more troubles occur.

@oakes
Copy link
Contributor

oakes commented Nov 6, 2014

Thanks for taking care of that. Do you think this will make its way into a lein-droid beta release sometime soon? I'm looking to release a new version of Nightcode soon. No rush, though.

@alexander-yakushev
Copy link
Contributor

Absolutely. Do you want it to be "release" release, or a reasonable beta will do?

@oakes
Copy link
Contributor

oakes commented Nov 6, 2014

A beta works fine; I just want to avoid basing any release on snapshots.

@alexander-yakushev
Copy link
Contributor

Sure thing, snapshot dependencies are no-go. I will push a new beta 1-2 days from now, gonna see if anything else might pop up.

@alexander-yakushev
Copy link
Contributor

Oh, and by the way. You still might want to look at cider-nrepl. It is not cider-specific, I know vim.fireplace also uses it. Since it's like an IDE backend (think clang) it may save you time reimplementing same stuff for Nightcode.

@alexander-yakushev
Copy link
Contributor

@tlightsky Can please tell if the updated tutorial I linked worked for you, or you gave up on that idea after all?:)

@tlightsky
Copy link
Author

Hi,I'm familiar with android,but not with clojure.
I'm working on problems on 4clojure,I'm going to use clojure on android after I'm familiar with clojure.
The event sample project works fine for me before.
I'll try the new tutorial later,and give you some feed back :)

@alexander-yakushev
Copy link
Contributor

All right, thank you! I haven't updated it since the last time you checked, I just forgot you already told me that it worked. and then had another bug with lein-droid.
So nevermind, good luck learning Clojure!

@tlightsky
Copy link
Author

Hi, I've tried 0.3.0-beta4,It works very well :)

@alexander-yakushev
Copy link
Contributor

Thanks again! I will keep the issue open until Kris merges my pull request.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants