ClojureScript

Confusing error messages when ns compilation fails due to a missing dependency

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Declined
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None

Description

I have a namespace proj.a which requires proj.b. proj.b, in turn, relies on core.async. I did not have
core.async listed in project.clj by accident, and the resulting error message was

goog.require could not find: proj.b.

This is not incredibly helpful. I've wasted over an hour trying to understand why one ns in my project
cannot reference another one.

Expected outcome: compilation must fail instead of swallowing exceptions. If it matters, I use lein-cljsbuild 1.0.2.

Activity

David Nolen made changes -
Field Original Value New Value
Priority Major [ 3 ] Minor [ 4 ]
Hide
David Nolen added a comment -

And which version of ClojureScript are you using?

Show
David Nolen added a comment - And which version of ClojureScript are you using?
Hide
Michael Klishin added a comment -

0.0-2138

Show
Michael Klishin added a comment - 0.0-2138
Hide
Michael Klishin added a comment -

I strongly disagree with the severity change. Anything that can waste beginners hours of time is not a minor priority.

Show
Michael Klishin added a comment - I strongly disagree with the severity change. Anything that can waste beginners hours of time is not a minor priority.
Hide
David Nolen added a comment - - edited

That is a fairly old release of ClojureScript, can you replicate the issue with 0.0-2173? When you change your dependency please make sure to run "lein cljsbuild clean" first.

Show
David Nolen added a comment - - edited That is a fairly old release of ClojureScript, can you replicate the issue with 0.0-2173? When you change your dependency please make sure to run "lein cljsbuild clean" first.
Hide
David Nolen added a comment -

Closing unless I hear step on how to reproduce this in more recent ClojureScript releases. Feel free to request a re-open if you can demonstrate that this isn't resolved.

Show
David Nolen added a comment - Closing unless I hear step on how to reproduce this in more recent ClojureScript releases. Feel free to request a re-open if you can demonstrate that this isn't resolved.
David Nolen made changes -
Resolution Declined [ 2 ]
Status Open [ 1 ] Resolved [ 5 ]
David Nolen made changes -
Status Resolved [ 5 ] Closed [ 6 ]

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: