ctaggart / rusty-vscode Goto Github PK
View Code? Open in Web Editor NEWRust + VSCode + RustyCode on a Docker Image
License: MIT License
Rust + VSCode + RustyCode on a Docker Image
License: MIT License
code 1.2 command line support installing extensions, which obsoletes my curl scripts.
I tried starting VSCode before attaching and got an error on the client and then the server when I tried to attach.
vscode@vscode-demo:~$ code diesel/diesel
PS C:\Users\c> xpra_cmd attach tcp:127.0.0.1:6100
2016-05-08 16:02:46,053 Xpra gtk2 client version 0.17.1-r12513
2016-05-08 16:02:46,059 running on Microsoft Windows 10
2016-05-08 16:02:46,306 GStreamer version 1.6 for Python 3.4
2016-05-08 16:02:47,056 OpenGL_accelerate module loaded
2016-05-08 16:02:47,063 OpenGL enabled with GeForce GT 640M/PCIe/SSE2
2016-05-08 16:02:47,153 detected keyboard: layout=us
2016-05-08 16:02:47,154 desktop size is 1600x900 with 1 screen:
2016-05-08 16:02:47,157 Default (423x238 mm - DPI: 96x96) workarea: 1600x860 at 0x40
2016-05-08 16:02:47,158 DISPLAY1 (344x194 mm - DPI: 118x117)
2016-05-08 16:02:47,187 failed to receive anything, not an xpra server?
2016-05-08 16:02:47,188 could also be the wrong username, password or port
2016-05-08 16:02:47,193 or maybe this server does not support 'unknown' compression or 'bencode' packet encoding?
2016-05-08 16:02:47,194 Connection lost
vscode@vscode-demo:~$ channel 3: open failed: connect failed: Connection refused
Not all issues solved with #7 with 0.0.4 build, still getting warnings about dbus and an error about querying the sound subsystem.
2016-05-11 05:22:19,017 Warning: menu forwarding is disabled:
2016-05-11 05:22:19,017 cannot load dbus helper: No module named dbus
2016-05-11 05:22:19,513 Warning: libvpx ABI version 5 is too old:
2016-05-11 05:22:19,513 disabling YUV444P support with VP9
2016-05-11 05:22:19,558 Warning: swscale version 3.0.0 is too old:
2016-05-11 05:22:19,558 disabling YUV422P to RGB, BGR, BGRX
2016-05-11 05:22:19,895 Warning: failed to load the mdns avahi publisher:
2016-05-11 05:22:19,895 No module named avahi
2016-05-11 05:22:19,895 either fix your installation or use the 'mdns=no' option
2016-05-11 05:22:20,404 Error: failed to import the virtual video module:
2016-05-11 05:22:20,404 No module named _dbus_bindings
libdc1394 error: Failed to initialize libdc1394
Warning: failed to import GStreamer:
GStreamer 1.0: Namespace Gst not available
GStreamer 0.10: No module named pygst
2016-05-11 05:22:20,669 Error: failed to query sound subsystem:
2016-05-11 05:22:20,669 query did not return any data
2016-05-11 05:22:20,671 Warning: failed to load or register our dbus notifications forwarder:
2016-05-11 05:22:20,671 No module named dbus.service
2016-05-11 05:22:20,671 if you do not have a dedicated dbus session for this xpra instance,
2016-05-11 05:22:20,671 use the 'notifications=no' option
2016-05-11 05:22:20,672 cannot load dbus helper: No module named dbus
2016-05-11 05:22:20,676 Error setting up our dbus server:
2016-05-11 05:22:20,676 No module named dbus
2016-05-11 05:22:20,678 xpra X11 version 0.17.1-r12513
2016-05-11 05:22:20,678 running with pid 15 on Linux debian 8.4
2016-05-11 05:22:20,678 on display :100
2016-05-11 05:22:20,757 xpra is ready.
This is with 0.0.2.
vscode@vscode-demo:~$ xpra stop
Error: no encryption libraries could be loaded
pycrypto is not available: No module named Crypto
python-cryptography is not available: No module named cryptography.hazmat.backends
Warning: zlib is the only compressor enabled
install and enable lzo or lz4 support for better performance
server requested disconnect: server shutdown
xpra at :100 has exited.
vscode@vscode-demo:~$ xpra --version
xpra v0.17.1
Some of these look suspicious:
vscode@vscode-demo:~$ Entering daemon mode; any further errors will be reported to:
/home/vscode/.xpra/:100.log
vscode@vscode-demo:~$ cat .xpra/:100.log
_XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.
libudev: udev_has_devtmpfs: name_to_handle_at on /dev: Operation not permitted
X.Org X Server 1.16.4
Release Date: 2014-12-20
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.16.0-4-amd64 x86_64 Debian
Current Operating System: Linux vscode-demo 4.2.0-23-generic #28-Ubuntu SMP Sun Dec 27 17:47:31 UTC 2015 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.2.0-23-generic root=UUID=1ad1d5d7-a6b4-4ff5-92f8-4fad45b1040f ro console=tty1 console=ttyS0 earlyprintk=ttyS0 rootdelay=300
Build Date: 11 February 2015 12:32:02AM
xorg-server 2:1.16.4-1 (http://www.debian.org/support)
Current version of pixman: 0.32.6
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(++) Log file: "/home/vscode/.xpra/Xorg.:100.log", Time: Sun May 8 23:10:19 2016
(++) Using config file: "/etc/xpra/xorg.conf"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
Error running "xauth add :100 MIT-MAGIC-COOKIE-1 d1b14680ac1d4bafa01c350d4a90f7ab": [Errno 2] No such file or directory
2016-05-08 23:10:20,005 created unix domain socket: /home/vscode/.xpra/vscode-demo-100
/bin/sh: 1: dbus-launch: not found
dbus-launch failed to start using command 'dbus-launch --close-stderr':
exit code is 127
2016-05-08 23:10:22,881 Warning: menu forwarding is disabled:
2016-05-08 23:10:22,881 cannot load dbus helper: No module named dbus
2016-05-08 23:10:23,159 Error: no encryption libraries could be loaded
2016-05-08 23:10:23,159 pycrypto is not available: No module named Crypto
2016-05-08 23:10:23,159 python-cryptography is not available: No module named cryptography.hazmat.backends
2016-05-08 23:10:23,160 Warning: zlib is the only compressor enabled
2016-05-08 23:10:23,160 install and enable lzo or lz4 support for better performance
2016-05-08 23:10:23,404 Warning: libvpx ABI version 5 is too old:
2016-05-08 23:10:23,404 disabling YUV444P support with VP9
2016-05-08 23:10:23,552 Warning: swscale version 3.0.0 is too old:
2016-05-08 23:10:23,552 disabling YUV422P to RGB, BGR, BGRX
2016-05-08 23:10:26,112 Warning: failed to load the mdns avahi publisher:
2016-05-08 23:10:26,118 No module named avahi
2016-05-08 23:10:26,118 either fix your installation or use the 'mdns=no' option
2016-05-08 23:10:27,037 Error: failed to import the virtual video module:
2016-05-08 23:10:27,037 No module named _dbus_bindings
2016-05-08 23:10:27,434 pulseaudio server started with pid 51
/bin/sh: 1: pulseaudio: not found
Warning: failed to import GStreamer:
GStreamer 1.0: No module named gi
GStreamer 0.10: No module named pygst
2016-05-08 23:10:28,217 Error: failed to query sound subsystem:
2016-05-08 23:10:28,218 query did not return any data
2016-05-08 23:10:28,226 Warning: failed to load or register our dbus notifications forwarder:
2016-05-08 23:10:28,226 No module named dbus.service
2016-05-08 23:10:28,226 if you do not have a dedicated dbus session for this xpra instance,
2016-05-08 23:10:28,226 use the 'notifications=no' option
2016-05-08 23:10:28,227 cannot load dbus helper: No module named dbus
2016-05-08 23:10:28,243 Error setting up our dbus server:
2016-05-08 23:10:28,243 No module named dbus
2016-05-08 23:10:28,246 xpra X11 version 0.17.1-r12513
2016-05-08 23:10:28,246 running with pid 36 on Linux debian 8.4
2016-05-08 23:10:28,246 on display :100
2016-05-08 23:10:28,565 xpra is ready.
2016-05-08 23:10:29,248 Warning: pulseaudio has terminated shortly after startup.
2016-05-08 23:10:29,248 pulseaudio is limited to a single instance per user account,
2016-05-08 23:10:29,248 and one may be running already for user 'vscode'
2016-05-08 23:10:29,249 to avoid this warning, either fix the pulseaudio command line
2016-05-08 23:10:29,249 or use the 'pulseaudio=no' option
Same as seen with ctaggart/dotnet-vscode#1.
last error:
E: Failed to fetch http://httpredir.debian.org/debian/pool/main/g/gcc-4.8/cpp-4.8_4.8.4-1_amd64.deb Error reading from server. Remote end closed connection [IP: 5.153.231.35 80]
E: Failed to fetch http://httpredir.debian.org/debian/pool/main/s/six/python-six_1.8.0-1_all.deb Error reading from server. Remote end closed connection [IP: 5.153.231.35 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
time before:
E: Failed to fetch http://httpredir.debian.org/debian/pool/main/libx/libxcb/libxcb-xfixes0_1.10-3+b1_amd64.deb Error reading from server. Remote end closed connection [IP: 128.31.0.66 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
The native GDB support for Rust will be nice to have. It was announted to be in dev when 7.11.1 was released.
https://gcc.gnu.org/ml/gcc/2016-06/msg00030.html
related to #11
I'd like to see:
It would be cool to add the scripts from the other Rust IDEs that run on Linux.
https://www.rust-lang.org/ides.html
Other Dockerfiles have automated IDEA installs.
https://github.com/dlsniper/docker-intellij/blob/master/Dockerfile
Here is a start based on that install-intellij-rust.sh
:
#!/bin/sh -e
# https://github.com/dlsniper/docker-intellij/blob/master/Dockerfile
curl -o /tmp/intellij.tar.gz https://download-cf.jetbrains.com/idea/ideaIC-2016.1.3.tar.gz
mkdir -p /opt/intellij
tar -xf /tmp/intellij.tar.gz --strip-components=1 -C /opt/intellij
rm /tmp/intellij.tar.gz
After running /opt/intellij/bin/idea.sh
, the wizard threw a couple of errors with the default settings. It was unable to create a desktop entry or a /usr/local/bin/idea
link.
Adding the 2 plugin repositories and adding the 2 plugins should be automate-able.
Similar to #19, but for RustDT https://github.com/RustDT/RustDT. Would need to script install of Java, install of Eclipse, install of RustDT plugin.
https://github.com/RustDT/RustDT/blob/latest/documentation/Installation.md
https://hub.docker.com/r/nouchka/eclipse/~/dockerfile/
java & eclipse
install-java.sh
is pretty easy:
#!/bin/sh -e
# http://www.oracle.com/technetwork/java/javase/downloads/index.html
mkdir -p /opt/jdk
curl -L -o jdk.tgz -b "oraclelicense=a" http://download.oracle.com/otn-pub/java/jdk/8u92-b14/jdk-8u92-linux-x64.tar.gz
tar xf jdk.tgz -C /opt/jdk --strip-components 1
ln -s /opt/jdk/bin/* /usr/local/bin
Although that last line should probably be removed or limited to just a couple of commands.
/opt/jdk/bin/java -version
java version "1.8.0_92"
Java(TM) SE Runtime Environment (build 1.8.0_92-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.92-b14, mixed mode)
Eclipse
http://download.eclipse.org/eclipse/downloads/
4.5.2 > platform runtime binary, 66 MB, Linux (x86_64/GTK+), SHA512 should probably be checked
eclipse-platform-4.5.2-linux-gtk-x86_64.tar.gz
http://download.eclipse.org/eclipse/downloads/drops4/R-4.5.2-201602121500/download.php?dropFile=eclipse-platform-4.5.2-linux-gtk-x86_64.tar.gz
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.