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

error reporting fails when project contains invalid namespace declaration #158

Closed
mk opened this issue May 9, 2022 · 1 comment · Fixed by #159
Closed

error reporting fails when project contains invalid namespace declaration #158

mk opened this issue May 9, 2022 · 1 comment · Fixed by #159

Comments

@mk
Copy link
Contributor

mk commented May 9, 2022

Expected behavior

I expect orchard orchard.namespace/classpath-namespaces to be resilient to faulty ns declarations.

Actual behavior

The precence of a faulty ns declaration on the class path like (ns (:requires [clojure.string])) causes nrepl to swallow the error and just print an exception to the REPL output.

Steps to reproduce the problem

git clone https://gist.github.com/mk/bd82092048d733ef3de0e312898f47b4 nrepl-issue

Open the project and run cider-jack-in

Try evaluating any expression that throws an expression (there's one in foo.clj).

Environment & Version information

Clojure version

1.11.1

Java version

openjdk version "17.0.3" 2022-04-19
OpenJDK Runtime Environment GraalVM CE 22.2.0-dev (build 17.0.3+4-jvmci-22.1-b03)
OpenJDK 64-Bit Server VM GraalVM CE 22.2.0-dev (build 17.0.3+4-jvmci-22.1-b03, mixed mode, sharing)

Operating system

macOS Monterey

I'll follow up with a PR shortly.

@vemv
Copy link
Member

vemv commented Aug 12, 2022

@mk : could you please enable Allow edits by maintainers in your fork?

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

Successfully merging a pull request may close this issue.

2 participants