Pluto.jl: Stuck at Loading... with problem code "with^S_terminal(dump, o)"

Created on 1 Oct 2020  ·  1Comment  ·  Source: fonsp/Pluto.jl

Pluto get stuck at "Loading..." when open a Julia file that I created with Pluto.

After some investigation, here is what I found -

  1. For some reason the hotkey ^S get saved to the Julia file.
  2. When reopen the file, Pluto will get stuck at "Loading..."

The following is the striped version of my Julia file that can reproduce the problem.
Note: The ^S is the Ctrl-S character.

The source code of BadBoy.jl
BadBoy.jl.txt

$ more BadBoy.jl
### A Pluto.jl notebook ###
# v0.11.14

using Markdown
using InteractiveUtils

# ╔═╡ 90e49758-03be-11eb-09f9-3be5169f7bee
let
        using PlutoUI
        o="Bad Boy"
        with^S_terminal(dump, o)
end

# ╔═╡ Cell order:
# ╠═90e49758-03be-11eb-09f9-3be5169f7bee

When using Julia to run it:

$ julia BadBoy.jl
ERROR: LoadError: syntax: invalid character "" near column 5
Stacktrace:
 [1] top-level scope at BadBoy.jl:11
 [2] include(::Function, ::Module, ::String) at ./Base.jl:380
 [3] include(::Module, ::String) at ./Base.jl:368
 [4] exec_options(::Base.JLOptions) at ./client.jl:296
 [5] _start() at ./client.jl:506
in expression starting at BadBoy.jl:11
backend bug

Most helpful comment

I discovered how ^S gets into the .jl file. Here is the procedure to reproduce it.

Environment:

  • On macOS with Chinese input method (ex. Cangjie) installed.

Steps:

  1. While editing a cell, switch to Chinese input method, press Ctrl-S.
  2. Go to the top of Pluto interface, "Submit all changes"
  3. Inspect the .jl file from an editor (ex. vi/vim). ^S should be there.

>All comments

I discovered how ^S gets into the .jl file. Here is the procedure to reproduce it.

Environment:

  • On macOS with Chinese input method (ex. Cangjie) installed.

Steps:

  1. While editing a cell, switch to Chinese input method, press Ctrl-S.
  2. Go to the top of Pluto interface, "Submit all changes"
  3. Inspect the .jl file from an editor (ex. vi/vim). ^S should be there.
Was this page helpful?
0 / 5 - 0 ratings

Related issues

FelixBenning picture FelixBenning  ·  3Comments

kapple19 picture kapple19  ·  5Comments

mossr picture mossr  ·  6Comments

enuit picture enuit  ·  3Comments

mlg556 picture mlg556  ·  4Comments