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

Session ends upon pressing TAB #365

Closed
abhi18av opened this issue Mar 4, 2018 · 4 comments · Fixed by #399
Closed

Session ends upon pressing TAB #365

abhi18av opened this issue Mar 4, 2018 · 4 comments · Fixed by #399

Comments

@abhi18av
Copy link
Contributor

abhi18av commented Mar 4, 2018

Hi @anmonteiro

I am reporting this issue of the abrupt ending of the session as soon as I look for command completion by pressing the TAB.
This is the error log when I press the TAB after (import

cljs.user=> (import 'readline.js:1032
            throw err;
            ^

TypeError: Cannot read property 'replace' of null
    at Object.clojure.string.replace_all (<embedded>:2055:385)
    at Object.clojure.string.replace (<embedded>:2058:191)
    at Object.lumo.repl.is_completion_QMARK_ (<embedded>:6655:332)
    at <embedded>:6680:148
    at cljs.core.LazySeq.fn (<embedded>:1122:275)
    at cljs.core.LazySeq.sval (<embedded>:794:151)
    at cljs.core.LazySeq.cljs$core$ISeqable$_seq$arity$1 (<embedded>:800:255)
    at Object.cljs.core.seq (<embedded>:506:172)
    at Function.cljs.core.seq_reduce.cljs$core$IFn$_invoke$arity$3 (<embedded>:660:84)
    at cljs.core.LazySeq.cljs$core$IReduce$_reduce$arity$3 (<embedded>:799:250)

@anmonteiro
Copy link
Owner

dup of #362

@arichiardi
Copy link
Collaborator

I actually cannot reproduce this one:

$ 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=> (import
(import  

@anmonteiro
Copy link
Owner

@arichiardi you'll see the error if you type (import ' like in the example above.

@arichiardi
Copy link
Collaborator

Oh there is a tick.

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.

3 participants