Commit 0d0f509
committed
CLJS-1158: Regression: compiler fails to see symbols defined in another namespace
Namespaces and macro namespaces can share the same name. In
the case that some other namespace loads a macro namespace
this will prevent analysis of the runtime namespace because
`cljs.analyzer/analyze-deps` only examines the existence of a
ns entry, not the presence of actual var mappings - `:defs`. We
now check for `:defs`.
Also when writing out the analysis cache we always drop `:macros`
as we do not track macro namespaces on disk for changes. We
should always reload macros and populate `:macros` fresh.1 parent 576fb6e commit 0d0f509
1 file changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1229 | 1229 | | |
1230 | 1230 | | |
1231 | 1231 | | |
| 1232 | + | |
1232 | 1233 | | |
1233 | 1234 | | |
1234 | 1235 | | |
1235 | 1236 | | |
1236 | | - | |
1237 | | - | |
| 1237 | + | |
| 1238 | + | |
1238 | 1239 | | |
1239 | 1240 | | |
1240 | 1241 | | |
1241 | 1242 | | |
1242 | 1243 | | |
1243 | 1244 | | |
1244 | 1245 | | |
1245 | | - | |
| 1246 | + | |
1246 | 1247 | | |
1247 | 1248 | | |
1248 | 1249 | | |
| |||
2115 | 2116 | | |
2116 | 2117 | | |
2117 | 2118 | | |
2118 | | - | |
| 2119 | + | |
| 2120 | + | |
2119 | 2121 | | |
2120 | 2122 | | |
2121 | 2123 | | |
| |||
0 commit comments