Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get Gitpod setup to work #45

Open
fapdash opened this issue Sep 10, 2024 · 0 comments
Open

Can't get Gitpod setup to work #45

fapdash opened this issue Sep 10, 2024 · 0 comments

Comments

@fapdash
Copy link

fapdash commented Sep 10, 2024

Describe the bug
I'm following your tutorial here: https://medium.com/@McGivrer/gitpod-save-your-life-de937bf2bd71

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://gitpod.io/new#https://github.com/mcgivrer/minimal/
  2. Create workspace
  3. Open src/main/java/fr/snapgames/game/core/Game.java
  4. Run and debug (F5)

Expected behavior
Game becomes available on port 3000.

Actual

Output:

/usr/bin/env /home/gitpod/.sdkman/candidates/java/19.0.2-zulu/bin/java -agentlib:jdwp=transport=dt_socket,server=n,suspend=y,address=localhost:41177 @/tmp/cp_24ogv7q67cnawia7mr0bs395o.argfile fr.snapgames.game.core.Game 
Picked up JAVA_TOOL_OPTIONS: -XX:+UseContainerSupport -XX:ActiveProcessorCount=1
Sep 10, 2024 10:44:53 AM fr.snapgames.game.core.configuration.Configuration parseConfigFile
INFO: file=/game.properties : set game.debug.level to 1
Sep 10, 2024 10:44:53 AM fr.snapgames.game.core.configuration.Configuration parseConfigFile
INFO: file=/game.properties : set game.window.strategy to 2
Sep 10, 2024 10:44:53 AM fr.snapgames.game.core.configuration.Configuration parseConfigFile
INFO: file=/game.properties : set game.physic.world.acceleration.y.max to 4.0
Sep 10, 2024 10:44:53 AM fr.snapgames.game.core.configuration.Configuration parseConfigFile
INFO: file=/game.properties : set game.window.scale to 1.0
Sep 10, 2024 10:44:53 AM fr.snapgames.game.core.configuration.Configuration parseConfigFile
INFO: file=/game.properties : set game.render.fps to 60
Sep 10, 2024 10:44:53 AM fr.snapgames.game.core.configuration.Configuration parseConfigFile
INFO: file=/game.properties : set game.scene.list to demo:fr.snapgames.game.demo101.scenes.DemoScene,title:fr.snapgames.game.demo101.scenes.TitleScene
Sep 10, 2024 10:44:53 AM fr.snapgames.game.core.configuration.Configuration parseConfigFile
INFO: file=/game.properties : set game.physic.world.speed.x.max to 6.0
Sep 10, 2024 10:44:53 AM fr.snapgames.game.core.configuration.Configuration parseConfigFile
INFO: file=/game.properties : set game.physic.world.acceleration.min to 0.001
Sep 10, 2024 10:44:53 AM fr.snapgames.game.core.configuration.Configuration parseConfigFile
INFO: file=/game.properties : set game.window.size to 640x400
Sep 10, 2024 10:44:53 AM fr.snapgames.game.core.configuration.Configuration parseConfigFile
INFO: file=/game.properties : set game.viewport.size to 320x200
Sep 10, 2024 10:44:53 AM fr.snapgames.game.core.configuration.Configuration parseConfigFile
INFO: file=/game.properties : set game.physic.world.speed.min to 0.001
Sep 10, 2024 10:44:53 AM fr.snapgames.game.core.configuration.Configuration parseConfigFile
INFO: file=/game.properties : set game.physic.world.gravity to v(0.0,-0.981)
Sep 10, 2024 10:44:53 AM fr.snapgames.game.core.configuration.Configuration parseConfigFile
INFO: file=/game.properties : set game.scene.default to title
Sep 10, 2024 10:44:53 AM fr.snapgames.game.core.configuration.Configuration parseConfigFile
INFO: file=/game.properties : set game.physic.world.acceleration.x.max to 4.0
Sep 10, 2024 10:44:53 AM fr.snapgames.game.core.configuration.Configuration parseConfigFile
INFO: file=/game.properties : set game.physic.world.speed.y.max to 6.0
Sep 10, 2024 10:44:53 AM fr.snapgames.game.core.configuration.Configuration parseConfigFile
INFO: file=/game.properties : set game.physic.world.playarea.size to 1008x642
INFO: File has been parsed.
Exception in thread "main" java.awt.HeadlessException: 
No X11 DISPLAY variable was set,
or no headful library support was found,
but this program performed an operation which requires it,

        at java.desktop/java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:166)
        at java.desktop/java.awt.Window.<init>(Window.java:553)
        at java.desktop/java.awt.Frame.<init>(Frame.java:428)
        at java.desktop/javax.swing.JFrame.<init>(JFrame.java:224)
        at fr.snapgames.game.core.graphics.Window.<init>(Window.java:30)
        at fr.snapgames.game.core.Game.initialize(Game.java:111)
        at fr.snapgames.game.core.Game.run(Game.java:248)
        at fr.snapgames.game.core.Game.main(Game.java:297)

Additional Context

Port 3000 is shown as not served in the ports tab.

Isn't this supposed to work? Am I doing something wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant