att / rcloud

Collaborative data analysis and visualization
http://rcloud.social
MIT License
431 stars 142 forks source link

Error in mapply when rcloud.jupyter fails on RCloud fresh install #2653

Closed gordonwoodhull closed 4 years ago

gordonwoodhull commented 5 years ago

2.1.3-devel (develop branch)

Created a new VM with Linux Mint 19.1 Tessa

Followed the install instructions (which have gotten super easy on Linux!)

Everything installed flawlessly. Set my GitHub credentials and Host in rcloud.conf.

Opened RCloud in my browser. Authorized the GitHub application.

Doubtless something is configured wrong (I probably need to follow rcloud.jupyter installation instructions?), but this message is 100% useless.

Aw, shucks

Error: compute_init: Error in mapply(function(from, to) paste(lines[from:to], collapse = "\n"),  : 
  zero-length inputs cannot be mixed with those of non-zero length
collapse
R trace:
suppressWarnings(d(.session))
withCallingHandlers(expr, message = function(c) invokeRestart("muffleMessage"))
suppressMessages(suppressWarnings(d(.session)))
start.rcloud.common(...)
start.rcloud.gist(username = username, token = token, ...)
start.rcloud(...)
fun(...)
Error: compute_init: Error in mapply(function(from, to) paste(lines[from:to], collapse = "\n"),  : 
  zero-length inputs cannot be mixed with those of non-zero length
R trace:
suppressWarnings(d(.session))
withCallingHandlers(expr, message = function(c) invokeRestart("muffleMessage"))
suppressMessages(suppressWarnings(d(.session)))
start.rcloud.common(...)
start.rcloud.gist(username = username, token = token, ...)
start.rcloud(...)
fun(...)
    success@http://127.0.0.1:8080/js/rcloud_bundle.js:32:23
From previous event:
    rcloud_handler/<@http://127.0.0.1:8080/js/rcloud_bundle.js:38:54
    setup_authenticated_ocaps/rcloud.compute_init@http://127.0.0.1:8080/js/rcloud_bundle.js:459:20
    on_connect_anonymous_disallowed@http://127.0.0.1:8080/js/rcloud_bundle.js:5200:17
    rclient_promise/<@http://127.0.0.1:8080/js/rcloud_bundle.js:5243:13
From previous event:
    rclient_promise@http://127.0.0.1:8080/js/rcloud_bundle.js:5240:8
    init@http://127.0.0.1:8080/js/rcloud_bundle.js:5295:16
    main@http://127.0.0.1:8080/edit.js:16:5
    start_require/<@http://127.0.0.1:8080/lib/js/require-common.js:80:17
    execCb@http://127.0.0.1:8080/lib/js/require.js:1650:24
    check@http://127.0.0.1:8080/lib/js/require.js:861:47
    enable/</<@http://127.0.0.1:8080/lib/js/require.js:1113:29

Removing rcloud.jupyter from rcloud.languages, RCloud starts ok.

s-u commented 4 years ago

After 442dcf1f this should at least show a meaningful error saying that rcloud.jupyter language failed to load with the actual reason.