Comments (6)
Hi @crispinb!
AFAIK, Reveal can't work in WSL because it's a headless environment without access to the display.
There is vcxsrv project that aims to bring display support into WSL by emulating X server, but I was hesitant to try it because it has bugs causing hard reboot, so I personally use Reveal in plain Windows environment, without WSL.
If you can find a way to run it in WSL, please share it!
from reveal.
P.S. Powershell command for trying out Reveal looks like this:
clj -Sdeps "{:deps {vlaaad/reveal {:mvn/version """"1.0.130""""}}}" -m vlaaad.reveal repl
And you can find clj setup instructions for powershell here: https://github.com/clojure/tools.deps.alpha/wiki/clj-on-Windows
from reveal.
Hey @vlaaad - thanks, I may try the powershell route, though I'm a reluctant Windows user and mostly stay on the linux side of the divide for dev purposes.
Are you sure though that that error has anything to do with the display? I have no problem running other X applications (I use https://x410.dev/ rather than vcxsrv). It only involves setting the DISPLAY env var correctly and opening up the windows firewall. Even pretty fancy things like IntelliJ work fine.
Anyway I'll have a poke around when I have a chance and see what I can find.
from reveal.
Woah, I had no idea Reveal might work from WSL... I reproduced your issue and found a fix that worked for me:
sudo apt install libgtk-3-0
UI looks very blurry though...
from reveal.
Nice, the libgtk install worked for me. Thanks.
I found that with the default settings the UI is scaled correctly (and fonts are sharp) on my (old, low dpi) external monitor. But minuscule on my laptop's hidpi monitor. Setting the GDK_SCALE env var to 2 fixes the internal monitor scaling for me.
x410 also has its own 'dpi scaling' feature, but I find that does blur fonts - it works best for me to just scale up using the env var appropriate for a given ui toolkit.
from reveal.
GDK_SCALE
worked wonders! I expanded windows-related site section with WSL instructions.
from reveal.
Related Issues (20)
- Cursive setup with leiningen HOT 6
- Recursive atoms cause stackoverflow error HOT 5
- Errors running with cursive HOT 3
- Printing full message on eval HOT 17
- Better support for clojure.lang.PersistentQueue and other core Clojure data structures HOT 2
- Definitions from files with CRLF echo \r to Reveal HOT 4
- Problem with displaying clojure's sorted-set HOT 3
- Reveal hangs after trying to open context menu HOT 6
- Support for unicode characters HOT 4
- support more keybindings for scrolling HOT 3
- WARNING: An illegal reflective access operation has occured HOT 1
- #question How do I send error logs of a running server to reveal? HOT 2
- Add support for Zooming or changing the font size? HOT 9
- Dock icon on macOS HOT 6
- Fails to launch with java.lang.IllegalAccessException "cannot access class com.sun.javafx.scene.text.FontHelper" HOT 18
- NREPL integration crashes Java when trying to open context menu HOT 3
- depstar is deprecated and archived; switch to tools.build
- Editor integration instructions using .nrepl.edn does not work for Emacs CIDER HOT 1
- view:table max columns number is restricted to 16 HOT 1
- Reveal Pro crashes on startup HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reveal.