ClojureScript

Cannot locate module namespace when filename contains dash

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Completed
  • Affects Version/s: GSoC
  • Fix Version/s: GSoC
  • Component/s: None
  • Labels:
    None
  • Patch:
    Code

Description

When the filename contains a dash, for example foo-bar, the compiler can't find the namespace for the module, e.g.

No such namespace: module$libs$foo_bar, could not locate module$libs$foo_bar.cljs, module$libs$foo_bar.cljc, or Closure namespace "module$libs$foo_bar" at line 1 src/hello_world/core.cljs {:file "src/hello_world/core.cljs", :line 1, :column 1, :tag :cljs/analysis-error}

Activity

Hide
Maria Geller added a comment -

Attached a fix for this. The problem was, that we didn't munge the new module-name that is generated by the Google Closure compiler, meaning we didn't replace underscores with dashes.

Show
Maria Geller added a comment - Attached a fix for this. The problem was, that we didn't munge the new module-name that is generated by the Google Closure compiler, meaning we didn't replace underscores with dashes.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: