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

Lumo does not have source maps in the REPL #346

Closed
arichiardi opened this issue Jan 24, 2018 · 5 comments
Closed

Lumo does not have source maps in the REPL #346

arichiardi opened this issue Jan 24, 2018 · 5 comments

Comments

@arichiardi
Copy link
Collaborator

While peeking at planck I tried to require a simple file:

(ns ping-pong.core)

(def a 3
Evaluating (require 'ping-pong.core :reload-all)
Namespace side effects for cljs.user
Loading dependencies for cljs.user
Loading ping-pong.core namespace
Pre-file side-effects ping_pong/core.cljs
Evaluating ping-pong.core
Namespace side effects for ping-pong.core
Processing :use-macros for ping-pong.core
Processing :require-macros for ping-pong.core
Post-file side-effects ping_pong/core.cljs
Loading result: {:error #error {:message Could not eval ping-pong.core in file ping_pong/core.cljs, :data {:tag :cljs/analysis-error}, :cause #error {:message ping-pong.core [line 4, col 1] Unexpected EOF while reading item 3 of list, starting at line 3 and column 1., :data {:type :reader-exception, :ex-kind :eof, :file ping-pong.core, :line 4, :col 1}}}}
           ⬆
ping-pong.core [line 4, col 1] Unexpected EOF while reading item 3 of list, starting at line 3 and column 1. at line 4 ping-pong.core
	 (new)
	 Function.cljs.core.ex_info.cljs$core$IFn$_invoke$arity$3 (NO_SOURCE_FILE <embedded>:2024:72)
	 Function.cljs.core.ex_info.cljs$core$IFn$_invoke$arity$2 (NO_SOURCE_FILE <embedded>:2023:449)
	 Function.cljs.tools.reader.impl.errors.throw_ex.cljs$core$IFn$_invoke$arity$variadic (evalmachine.<anonymous>:53:25)
	 Function.cljs.tools.reader.impl.errors.eof_error.cljs$core$IFn$_invoke$arity$variadic (evalmachine.<anonymous>:163:47)
	 Function.cljs.tools.reader.impl.errors.throw_eof_delimited.cljs$core$IFn$_invoke$arity$5 (evalmachine.<anonymous>:196:48)
	 Object.cljs.tools.reader.read_delimited_internal (NO_SOURCE_FILE <embedded>:2288:205)
	 Object.cljs.tools.reader.read_delimited (NO_SOURCE_FILE <embedded>:2289:174)
	 cljs.tools.reader.read_list (NO_SOURCE_FILE <embedded>:2290:229)
	 Object.cljs.tools.reader.read_STAR__internal (NO_SOURCE_FILE <embedded>:2388:407)

I also checked:

$ ls .lumo_cache/ping_pong_SLASH_core.*
.lumo_cache/ping_pong_SLASH_core.cache.json  .lumo_cache/ping_pong_SLASH_core.js

So it seems that we don't have source maps enabled in the REPL.

@arichiardi
Copy link
Collaborator Author

Related to #35

@arichiardi
Copy link
Collaborator Author

arichiardi commented Jan 31, 2018

Actually the error message is accurate because it is a reader error.

I didn't expect to see things like evalmachine.<anonymous>:163:47 and I am sure there is a simple answer to this.

@arichiardi
Copy link
Collaborator Author

Some work for improving this is in #349

@anmonteiro
Copy link
Owner

This is a duplicate of #35, why did you open another issue?

@arichiardi
Copy link
Collaborator Author

At the time they looked different. We can close this one.

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

No branches or pull requests

2 participants