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

compilation for wrong namespace syntax does not report back clear error message #737

Open
awb99 opened this issue May 18, 2022 · 0 comments

Comments

@awb99
Copy link

awb99 commented May 18, 2022

version

"0.3.5"

platform
linux, guix

problem

Cryptic error message when I compile a code that contains a bad namespace form.

repro

I have put in a bad ns form. The closing bracket of the (:require) should be
in the end of my code.

(ns goldly.devtools.page.runtime
  (:require 
    [rf]
    [page]
    [user :refer [frisk]])
    [goldly.devtools.ui-helper :refer [add-page-template]])

When I pass the bad ns as code (so as string) to sci for compilation then I get this error:
{:error {:root-ex nil, :err "No matching clause: "}}

Now sci has pretty amazing error messages. But this error message first of all does not match
the typical format of sci error messages (a lot of data in :root-ex).

expected behavior

make this a nice error message, so I can display to the user what is going on.

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

No branches or pull requests

2 participants