VegaLite fails to launch bash !?

I am trying to run the basic example of VegaLite on Ubuntu 18.04:

julia> using VegaLite, VegaDatasets

julia> @vlplot(
           :point,
           x=:Horsepower,
           y=:Miles_per_Gallon,
           color=:Origin,
           width=400,
           height=400
       )

As result I get one error message:

julia> [main 2019-07-29T20:15:26.538Z] update#setState idle
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell

and then vscode is launched (!?)

What is going on here?
Any idea?

Additional question: How does VegaLite normally display its plots?

If there is no other display on the display stack (which should normally be the case), then we just write a HTML file in the temp file directory and call this, i.e. we try to launch a browser that shows that file. Could it be that xdg-open launches VS Code on your system for some reason? I think we had a report from another users at some point indicating something like that.

One alternative for the REPL is to load ElectronDisplay.jl. It will push itself onto the display stack, and then any plots (including VegaLite.jl) should show in an electron window.

1 Like

Thanks for the explanation! Perhaps the hint to load ElectronDisplay.jl should be a bit more prominent.

Well, it should work without it :slight_smile: If that is not the case, it is a bug.

The following command fixed the problem:

sudo rm /usr/share/applications/code-url-handler.desktop

Its a know bug of vscode on Ubuntu that it overwrites this file:
https://github.com/Microsoft/vscode/issues/60664

1 Like