ClojureScript

Clojurescript 1978 introduced a regression where the constants_table.js omitted during a cljsbuild omits symbols defined in a previous cljsbuild.

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    clojure 1.5.1, clojurescript 0.0-1978, cljsbuild 0.3.4, OS X 10.9
  • Patch:
    Code

Description

Given a leiningen/cljsbuild project that defines multiple outputs, the advanced compilation preprocessor that identifies keywords to be inlined into constants_table.js fails to emit keywords for files that have already been processed by a previous build. This causes, for example, the :parents keyword used by 'derive' to refer to an undefined symbol.

See the example project (attached, or https://github.com/sfnelson/cljs-derive-1978 )

  1. CLJS-643-draft.diff
    02/Nov/13 8:08 AM
    35 kB
    Chas Emerick
  2. CLJS-643-draft2.diff
    03/Nov/13 8:00 PM
    38 kB
    Chas Emerick
  3. CLJS-643-draft3.diff
    05/Nov/13 9:36 AM
    40 kB
    Chas Emerick
  4. keyword-constants-example.tar.gz
    28/Oct/13 11:52 PM
    0.6 kB
    Stephen Nelson

Activity

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: