threefoldtecharchive / jumpscaleX_archived

Apache License 2.0
1 stars 6 forks source link

nothing is written exception when pasting code inside kosmos #766

Open zaibon opened 5 years ago

zaibon commented 5 years ago

I often get the following error when I'm playing inside kosmos. It gets trigger when I past a piece of code in the shell and press enter. The error is raised, but it seems the code is still executed.

Unhandled exception in event loop:
  File "/root/.local/lib/python3.6/site-packages/prompt_toolkit/eventloop/utils.py", line 33, in run
    result = self.target()
  File "/root/.local/lib/python3.6/site-packages/prompt_toolkit/eventloop/async_generator.py", line 62, in runner
    for item in get_iterable():
  File "/sandbox/lib/jumpscale/Jumpscale/core/KosmosShell.py", line 444, in custom_get_completions
    _, _, prefix = get_current_line(document)
  File "/sandbox/lib/jumpscale/Jumpscale/core/KosmosShell.py", line 141, in get_current_line
    raise j.exceptions.Value("nothing is written")