ClojureScript

Conflict between cljs/nodejs.cljs & cljs/nodejs.js

Details

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

Description

This is the gist with errors and bare minimal example: https://gist.github.com/BorisKourt/7b1434ec490cfa6c8397

Activity

Hide
Boris Kourtoukov added a comment -

Noticed this while working with the main.cljs file linked in the above gist.

As described by David Nolen: cljs/nodejs.cljs cljs/nodejs.js are getting mixed up by the compiler even though they are completely different.

This explains why the error is intermittent, but the warning is consistent.

This is reproducible with an even more minimal example as well. Just wanted to link a basic but functional one.

Show
Boris Kourtoukov added a comment - Noticed this while working with the main.cljs file linked in the above gist. As described by David Nolen: cljs/nodejs.cljs cljs/nodejs.js are getting mixed up by the compiler even though they are completely different. This explains why the error is intermittent, but the warning is consistent. This is reproducible with an even more minimal example as well. Just wanted to link a basic but functional one.
Hide
John Wang added a comment -

As a more convenient test case, this also happens with samples/nodehello.cljs when following the build instructions given in the comments of that file.

Show
John Wang added a comment - As a more convenient test case, this also happens with samples/nodehello.cljs when following the build instructions given in the comments of that file.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: