Skip to content
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

lein spec -a fails to find namespace on reload #127

Open
loganmhb opened this issue Mar 19, 2015 · 3 comments
Open

lein spec -a fails to find namespace on reload #127

loganmhb opened this issue Mar 19, 2015 · 3 comments
Labels

Comments

@loganmhb
Copy link

When running autotests with lein spec -a, speclj sometimes throws the following error:

java.lang.Exception: namespace 'myproject.handler' not found after loading '/myproject/handler', compiling

which appears to be a possible regression of issue #33. (I am using Speclj 3.2.0.) This happens predictably for certain files, only on autotest and only after reloading the file at least once.

Full trace:
... 12 stack levels elided ...
at myproject.handler_spec$eval3478$loading__4958__auto____3479.invoke(handler_spec.clj:1)
at myproject.handler_spec$eval3478.invoke(handler_spec.clj:1)
... 21 stack levels elided ...
at fresh.core$load_nses.invoke(core.clj:166)
at fresh.core$doto_nses.doInvoke(core.clj:173)
... 1 stack levels elided ...
at fresh.core$make_fresh.invoke(core.clj:191)
... 7 stack levels elided ...
at fresh.core$make_fresh.invoke(core.clj:188)
... 17 stack levels elided ...
Caused by: java.lang.Exception: namespace 'myproject.handler' not found after loading '/myproject/handler'
... 10 stack levels elided ...
at myproject.handler_spec$eval3478$loading__4958__auto____3479.invoke(handler_spec.clj:1)
at myproject.handler_spec$eval3478.invoke(handler_spec.clj:1)
... 21 stack levels elided ...
at fresh.core$load_nses.invoke(core.clj:166)
at fresh.core$doto_nses.doInvoke(core.clj:173)
... 1 stack levels elided ...
at fresh.core$make_fresh.invoke(core.clj:191)
... 7 stack levels elided ...
at fresh.core$make_fresh.invoke(core.clj:188)
... 17 stack levels elided ...

@trptcolin
Copy link
Collaborator

Do you have an example project up somewhere shareable? I'm wondering if it could be something off about the ns form - I've seen this issue if I've moved a file and its ns form doesn't match the filename anymore, or if the file has errors, things like that.

@eigenhombre
Copy link

@trptcolin Not yet -- it's in a private repo, and we haven't made a minimal failing case yet. The namespaces and filenames are straightforward -- and the error is intermittent, as well, until it occurs once, in which case it happens after each file save.

@thesoftwarephilosopher
Copy link
Contributor

Sounds like the same problem I was having in #109. And ours also is a private repo, so we can't share it.

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

No branches or pull requests

4 participants