Skip to content

Transfer meaningful file and line information on hot code eval #1392

@kotarak

Description

@kotarak

Working on a function in a file, hot evaling it in the repl server and testing it immediately is a very fast way of working. Unfortunately the file and line information is not kept during hot eval. In case of an exception you get rather useless location information.

In VimClojure I implemented said information transfer to the backend and it worked rather well for debugging. I simply proxied the reader during eval and also set the compiler location specific Vars.

cf. make-reader and with-repl*

Is there a chance to have this implemented in cider also? And if yes, where should I start?

PS: I know that the location info of code below said function might get of out sync. I consider this less annoying than having no info at all during debug. And it can be easily fixed by hot eval if necessary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions