JunoLab / Juno.jl

MIT License
144 stars 23 forks source link

[BUG] MethodError: no method matching (::Atom.var"#25#26")(::String) #547

Open pochoi opened 4 years ago

pochoi commented 4 years ago

Please search existing issues to avoid duplicates.

Details

  1. Setup remote SSH server with ftp-remote-edit
  2. Set in Juno to use tmux
  3. In the remote server, create tmux session and run Julia with using Atom, Juno
  4. Press Start Remote Julia Process
  5. Put 1+1 in a Julia file and press shift-enter.
  6. Error pop up
    
    Julia Client – Internal Error

MethodError: no method matching (::Atom.var"#25#26")(::String) Closest candidates are:

25() at /home/cpchoi/.julia/packages/Atom/wlPiw/src/comm.jl:190

handlemsg(::String, ::String) at comm.jl:168 (::Atom.var"#19#21"{Array{Any,1}})() at task.jl:333


7. The `1+1` didn't get answer at the moment.
8. In the REPL panel, press `enter`. Then we get the answer `2`.

Step 5 to 7: Put `1+1` and press `shift-enter`. Nothing happens at this moment.
<img width="857" alt="Screen Shot 2020-04-07 at 5 00 27 AM" src="https://user-images.githubusercontent.com/10320603/78668913-51ba2980-7890-11ea-858f-5d666bd4c4bf.png">

Step 8: Press `enter` in REPL panel, then get `2`.
<img width="851" alt="Screen Shot 2020-04-07 at 5 00 45 AM" src="https://user-images.githubusercontent.com/10320603/78668827-2cc5b680-7890-11ea-88e6-f567d0d85537.png">
pfitzseb commented 4 years ago

What version of julia-client do you have installed?

Can you also try not creating a tmux session first and let Juno handle that? That might give you some more debug info.

pochoi commented 4 years ago

Thanks!

For Atom packages: Atom 1.45.0 julia-client 0.12.4 language-julia 0.19.3

I don't run into this error when not using tmux. 1+1 gives 2 without touching the REPL panel.

pfitzseb commented 4 years ago

No, I meant that you should keep the Use tmux option on but let Juno create a new session.

Btw, did you restart the tmux session after updating Atom.jl on the remote? It looks like you're still running an old version.

bafonso commented 4 years ago

I am having the same problem on julia 1.4.2, atom 1.47.0 and latest juno. It seems to work if I don't start myself the tmux session.

# Atom:
Version: 1.47.0
Dev Mode: false
Official Release: true
{
  "node": "12.0.0",
  "v8": "7.3.492.27-electron.0",
  "uv": "1.27.0",
  "zlib": "1.2.11",
  "brotli": "1.0.7",
  "ares": "1.15.0",
  "modules": "70",
  "nghttp2": "1.34.0",
  "napi": "4",
  "llhttp": "1.1.1",
  "http_parser": "2.8.0",
  "openssl": "1.1.0",
  "icu": "63.1",
  "unicode": "11.0",
  "electron": "5.0.13",
  "chrome": "73.0.3683.121"
}
# julia-client:
Version: 0.12.5
Config:
{
  "currentVersion": "0.12.5",
  "firstBoot": false,
  "juliaOptions": {
    "bootMode": "Remote"
  },
  "remoteOptions": {
    "remoteJulia": "/home/gordinho/.local/bin/julia",
    "tmux": true
  },
  "uiOptions": {
    "enableMenu": true,
    "enableToolBar": true
  }
}

# ink:
Version: 0.12.4
Config:
undefined

# uber-juno:
Version: 0.3.0
Config:
{
  "disable": true
}

# language-julia:
Version: 0.19.3
Config:
undefined

# language-weave:not installed

# indent-detective:
Version: 0.4.0
Config:
undefined

# latex-completions:
Version: 0.3.6
Config:
undefined

# versioninfo():
Julia Version 1.4.2
Commit 44fa15b150* (2020-05-23 18:35 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Core(TM) i5-8400 CPU @ 2.80GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-8.0.1 (ORCJIT, skylake)

Status `~/.julia/environments/v1.4/Project.toml`
  [c52e3926] Atom v0.12.14
  [fbb218c0] BSON v0.2.6
  [336ed68f] CSV v0.6.1
  [3895d2a7] CUDAapi v4.0.0
  [5ae59095] Colors v0.11.2
  [3a865a2d] CuArrays v2.2.0
  [717857b8] DSP v0.6.7
  [a93c6f00] DataFrames v0.20.2
  [5789e2e9] FileIO v1.3.0
  [587475ba] Flux v0.10.4
  [28b8d3ca] GR v0.48.0
  [c91e804a] Gadfly v1.2.1
  [7073ff75] IJulia v1.21.2
  [82e4d734] ImageIO v0.2.0
  [6218d12a] ImageMagick v1.1.5
  [916415d5] Images v0.22.2
  [682c06a0] JSON v0.21.0
  [b9914132] JSONTables v1.0.0
  [e5e0dc1b] Juno v0.8.2
  [b13ce0c6] LibSndFile v2.3.0
  [9c8b4983] LightXML v0.9.0
  [ca7b5df7] MFCC v0.3.1
  [cc2ba9b6] MLDataUtils v0.5.1
  [eb30cadb] MLDatasets v0.4.0
  [add582a8] MLJ v0.11.2
  [3b7a836e] PGFPlots v3.2.1
  [eadc2687] Pandas v1.4.0
  [d96e819e] Parameters v0.12.1
  [91a5bcdd] Plots v1.0.14
  [d330b81b] PyPlot v2.9.0
  [295af30f] Revise v2.7.1
  [bd7594eb] SampledSignals v2.1.0
  [4d633899] SignalOperators v0.4.0
  [b8865327] UnicodePlots v1.1.0
  [de0858da] Printf 
  [9e88b42a] Serialization 
samuela commented 4 years ago

Getting the same error here, basically the same setup. On the remote machine: Julia 1.4.2 with tmux 2.6 on Ubuntu 18.04.4.