Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: log is not a function #786

Open
mashu opened this issue Dec 24, 2021 · 0 comments
Open

Uncaught TypeError: log is not a function #786

mashu opened this issue Dec 24, 2021 · 0 comments

Comments

@mashu
Copy link

mashu commented Dec 24, 2021

[Enter steps to reproduce:]

  1. Executing this code
using JSServe
using WGLMakie
points = Node(Point2f[(0.0, 0.0)])
axis = []
app = App() do session::Session
    s1 = DOM.h1("Board")
    fig, ax = scatter(points)
    push!(axis, ax)
    return DOM.div(s1, fig)
end

function add_point!(points, ax, x,y)
    points[] = push!(points[], Point2f(x,y))
    autolimits!(ax)
end
JSServe.Server(app, "127.0.0.1", 8095)
add_point!(points, axis[end], 12,12)
  1. Repeat from REPL last add_point!(..) call multiple times until error occurs.

Atom: 1.58.0 x64
Electron: 9.4.4
OS: Debian GNU/Linux
Thrown From: julia-client package 0.12.6

Stack Trace

Uncaught TypeError: log is not a function

At /home/mateusz/.atom/packages/julia-client/lib/runtime/plots.js:17

TypeError: log is not a function
    at consoleLog (/packages/julia-client/lib/runtime/plots.js:17:3)
    at /packages/julia-client/lib/runtime/plots.js:112:48)
    at WebViewImpl.dispatchEvent (electron/js2c/renderer_init.js:155:2221)
    at dispatchEvent (electron/js2c/renderer_init.js:143:1883)
    at electron/js2c/renderer_init.js:143:3008
    at EventEmitter.<anonymous> (electron/js2c/renderer_init.js:127:872)
    at EventEmitter.emit (events.js:223:5)
    at Object.onMessage (electron/js2c/renderer_init.js:115:818)

Commands

  7x -1:12.8.0 core:move-left (input.hidden-input)
     -1:11.3.0 core:backspace (input.hidden-input)
  2x -1:10.7.0 core:move-right (input.hidden-input)
     -1:10.2.0 core:backspace (input.hidden-input)
     -1:09.7.0 core:move-right (input.hidden-input)
  2x -1:08.9.0 core:delete (input.hidden-input)
     -1:07.7.0 core:backspace (input.hidden-input)
     -1:07.5.0 julia-client:run-block (input.hidden-input)
     -1:07.5.0 autocomplete-plus:cancel (atom-text-editor.editor.is-focused)
     -1:02.6.0 core:backspace (input.hidden-input)
  3x -1:02.0 core:move-left (input.hidden-input)
     -1:01.4.0 core:backspace (input.hidden-input)
     -1:01.0 julia-client:run-block (input.hidden-input)
     -1:01.0 autocomplete-plus:cancel (atom-text-editor.editor.is-focused.autocomplete-active)
     -0:24.7.0 julia-client:run-block (input.hidden-input)
     -0:24.7.0 autocomplete-plus:cancel (atom-text-editor.editor.is-focused.autocomplete-active)

Non-Core Packages

advanced-open-file 0.16.8 
atomic-emacs 0.15.0 
ftp-remote-edit 0.18.2 
Hydrogen 2.16.3 
hyperclick 0.1.5 
indent-detective 0.4.0 
ink 0.12.6 
julia-client 0.12.6 
language-julia 0.22.1 
language-weave 0.7.2 
latex-completions 0.3.6 
tool-bar 1.4.4 
uber-juno 0.3.0 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant