cryogen-project / cryogen

A simple static site generator written in Clojure
http://cryogenweb.org/
Eclipse Public License 1.0
1.09k stars 96 forks source link

`lein serve` fails with "The BROWSE action is not supported on the current platform!" #263

Open jpt4 opened 9 months ago

jpt4 commented 9 months ago

Following the Cryogen docs [0], I initialized the default website, and attempted to serve it with lein serve.

The site built, and can be accessed by navigating to the index.html file with my browser (Chromium 112.0.5615.165). However, it cannot be accessed via localhost:3000, due to, I believe, the following error:

"Elapsed time: 984.893704 msecs" Started server on port 3000 Execution error (UnsupportedOperationException) at java.awt.Desktop/checkActionSupport (Desktop.java:221). The BROWSE action is not supported on the current platform!

System details: GNU Guix System, Linux 6.2.14

java -version openjdk version "1.8.0_292" OpenJDK Runtime Environment (IcedTea 3.19.0) (guix build 1.8.0_292-b10) OpenJDK 64-Bit Server VM (build 25.292-b10, mixed mode)

This might be an issue with IcedTea/my OpenJDK install, but I am reporting it here in case others have encountered the same issue.

[0] http://cryogenweb.org/docs/getting-started.html

sanel commented 2 months ago

Quick workaround is to set :open-browser? false in server.clj file