zao111222333 / spinalhdl-online

24 stars 5 forks source link

Error: No Java11 or Java17 found #4

Closed fangrh closed 1 year ago

fangrh commented 1 year ago

Produce steps

  1. Create container
  2. Enter container in browser (ex. localhost:8848)
  3. cd SpinalTemplateSbt

Scala(Metals) error occur: Unable to find a Java 11 or Java 17 installation on this computer. To fix this problem, update the "metals.javaHome" setting to point to a Java 11 or Java 17 home directory or select a version to install automatically

zao111222333 commented 1 year ago

Thank you for reminding me that this repository should be maintained!

SpinalHDL require Java8 so there is only JDK8 within our docker image, and I find that Java8 is always supported by Metals util the latest version. So I have no idea about the error you meet, but I will recreate this image with all latest packages in this week.

I follow the README in a new server, and here is the demo I get (the URL is expected to be valid for at least six months), PASSWORD=123456, of course: http://175.178.13.102:8848/?folder=/SpinalHDL/DIR/SpinalTemplate

My command for the demo:

docker run -itd \
  --restart=always \
  -p 8848:8080 \
  -p 2222:22 \
  -e USER=username \
  -e PASSWORD=123456 \
  -e WORKDIR=/SpinalHDL/ \
  -e GDK_MAX_PORT=2 \
  -v ~/SpinalHDL-Share:/SpinalHDL/ \
  -v ~/KEY:/KEY \
  zao111222333/spinalhdl-online

Here are some suggestions that may help:

fangrh commented 1 year ago

Thanks for your reply. A remarkable project! And indeed I have got it work in my own server and this project is just what I am looking for, especially, the gtkwave-online module. I have opend the URL you provided, and still show this error. I take a snape shoot and upload in the workspace in http://175.178.13.102:8848/?folder=/SpinalHDL/DIR/SpinalTemplate.

zao111222333 commented 1 year ago

Thanks for your reply. A remarkable project! And indeed I have got it work in my own server and this project is just what I am looking for, especially, the gtkwave-online module. I have opend the URL you provided, and still show this error. I take a snape shoot and upload in the workspace in http://175.178.13.102:8848/?folder=/SpinalHDL/DIR/SpinalTemplate.

Hi, I am happy to inform you that this issue was fixed and SpinalHDL-Online have make all packages up-to-date ... after struggle with some dependencies conflicts. And the latest image already have been upload to Dockerhub.

And please notice that only Mill approaching is ready in that image form now, which seems work better for me. But you can also install sbt tool-chain by the help of Metals!

image image