Skip to content
This repository has been archived by the owner on Jun 4, 2022. It is now read-only.

Can't refer Closure lib functions #386

Closed
mfikes opened this issue Apr 16, 2018 · 0 comments · Fixed by #442
Closed

Can't refer Closure lib functions #386

mfikes opened this issue Apr 16, 2018 · 0 comments · Fixed by #442

Comments

@mfikes
Copy link
Collaborator

mfikes commented Apr 16, 2018

$ lumo
Lumo 1.8.0
ClojureScript 1.9.946
Node.js v9.2.0
 Docs: (doc function-name-here)
       (find-doc "part-of-name-here")
 Source: (source function-name-here)
 Exit: Control+D or :cljs/quit or exit

cljs.user=> (require '[goog.string :refer [capitalize]])
Could not parse ns form cljs.user
	 (new)
	 Function.cljs.core.ex_info.cljs$core$IFn$_invoke$arity$3 (NO_SOURCE_FILE <embedded>:2024:72)
	 Function.cljs.analyzer.error.cljs$core$IFn$_invoke$arity$3 (NO_SOURCE_FILE <embedded>:2639:92)
	 (NO_SOURCE_FILE <embedded>:6019:340)
	 Object.cljs.js.load_macros (NO_SOURCE_FILE <embedded>:5992:199)
	 (NO_SOURCE_FILE <embedded>:6013:433)
	 Object.cljs.js.load_macros (NO_SOURCE_FILE <embedded>:5992:199)
	 (NO_SOURCE_FILE <embedded>:6011:316)
	 (NO_SOURCE_FILE <embedded>:6024:218)
	 Function.cljs.js.load_deps.cljs$core$IFn$_invoke$arity$7 (NO_SOURCE_FILE <embedded>:5968:474)

Invalid :refer, var goog.string/capitalize does not exist
	 (new)
	 Function.cljs.core.ex_info.cljs$core$IFn$_invoke$arity$3 (NO_SOURCE_FILE <embedded>:2024:72)
	 Function.cljs.analyzer.error.cljs$core$IFn$_invoke$arity$3 (NO_SOURCE_FILE <embedded>:2639:92)
	 Function.cljs.analyzer.error.cljs$core$IFn$_invoke$arity$2 (NO_SOURCE_FILE <embedded>:2638:92)
	 Object.cljs.analyzer.check_uses (NO_SOURCE_FILE <embedded>:2985:255)
	 Function.cljs.analyzer.check_use_macros.cljs$core$IFn$_invoke$arity$3 (NO_SOURCE_FILE <embedded>:2992:373)
	 (NO_SOURCE_FILE <embedded>:2996:409)
	 (NO_SOURCE_FILE <embedded>:1146:484)
	 Function.cljs.core.update_in.cljs$core$IFn$_invoke$arity$3 (NO_SOURCE_FILE <embedded>:1146:489)
	 Object.cljs.analyzer.check_use_macros_inferring_missing (NO_SOURCE_FILE <embedded>:2995:451)

This works in JVM ClojureScript.

Same as planck-repl/planck#714

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant