Sitelet https://github.com/oakes/Nightcode/issues/213
Skip to content
This repository was archived by the owner on Apr 24, 2021. It is now read-only.
This repository was archived by the owner on Apr 24, 2021. It is now read-only.

Can't enter newline in REPL #213

Description

@esuomi

If I type the following to REPL within Nightcode:

(loop [x 0

This gets autocompleted to

(loop [x 0])

This is good. However if I place my caret as indicated by pipe:

(loop [x 0|])

and hit enter, the expression is evaluated as it's already a full expression. This is bad.

The full snippet I have is simply

(loop [x 0]
  (println x)
  (if (< x 3)
    (recur (inc x))))

which is rather obvious on what it does but with the autocompletion I am unable to type it to REPL within Nightcode. Major difference of course is that in REPL the (println x) actually produces visible output while InstREPL doesn't as it only shows the return value, nil in this case.

As suggestions for fixing this, I'd like to

  1. be able to disable the autocompletion for REPL or
  2. let that caret positioning be indication that I want a newline instead or
  3. push this request to Leiningen developers so that they could actually implement this as REPL option for us weirdos who like to format their REPL throwaway snippets :)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions