Skip to content

No known way to have multiline expressions in dap repl #665

Closed
@alok

Description

Debug adapter definition and debug configuration

No response

Debug adapter version

No response

Steps to Reproduce

Open DAP repl in python project

Expected Result

Was attempting to run this python code in the repl

 with tf.io.gfile.GFile(filename, 'rb+') as f:
            cctx = zstandard.ZstdDecompressor()
            reader_stream = io.BufferedReader(cctx.stream_reader(f))
            reader = jsonlines.Reader(reader_stream, loads=json_parser)
            for item in reader:
                result = dict()
                if isinstance(item, str):
                    result['text'] = item
                else:
                    text = item['text']
                    if isinstance(text, list):
                        text = self.para_joiner.join(text)
                        result['text'] = text
                yield result

Actual Result

After typing the first line, I can't find a way to insert further text without running line 1, which gives a syntax error.

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions