Skip to content

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

@awb99

Description

@awb99

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions