Giter Site home page Giter Site logo

lila-gitpod's Introduction

Lichess.org Development Environment

Watch youtube, video, player icon icon a video demo of how you can use this.

You can use Gitpod (a free online development environment) for contributing. With a single click, it will launch a workspace and automatically:

  • Clone the necessary Lichess repositories
  • Install all the dependencies
  • Seed your database with test data
  • Start lila

Read the full Lichess on Gitpod documentation.

Click here to create a workspace:

Open in Gitpod

lila-gitpod screenshot

See the lila-docker repo for the code that runs the workspace and for more information.

lila-gitpod's People

Contributors

benediktwerner avatar fitztrev avatar trevorbayless avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lila-gitpod's Issues

Document steps to resolve : remote: error: Your push would publish a private email address.

Maybe we should document this? I say that, since I did spend some time realizing that this is why things failed, and the actual git error is not shown directly in your face. But then again, not sure how many would run into it.

A user could run into it, if they have "Keep my email addresses private" turned on in https://github.com/settings/emails

The fix is to add .env variables in gitpod

It's kinda documented in gitpod here : https://gitpod.io/user/account and you can set the variables here : https://gitpod.io/user/variables So might be fine to not document it in https://lichess-org.github.io/lila-gitpod/contributing/ 🀷

The workspace creation has problems or when it is created the lila lichess will not start

Inspired by the article on lichess:
https://lichess.org/blog/ZUviXRIAACYAVtMm/lichess-development-made-easy-with-gitpod

Version used:
https://gitpod.io/start/#lichessorg-liladocker-cc57v3i3xt3

Browser used:
Firefox 119.0 (64-bit) / Mozilla Firefox Snap for Ubuntu

image

Case 1 Workspace creation fails completely:

Error Message: "Error: 13 INTERNAL: cannot resolve image: failed to do request: Head "https://registry-1.docker.io/v2/gitpod/workspace-full/manifests/latest": EOF"

image

_Case 2 lila lichess does not start

image

Error message: "✘ lila_docker_rs Error 6.4s
Error response from daemon: Get "https://registry-1.docker.io/v2/library/rust/manifests/sha256:666012b6779ebb6be2acb771b8627716662cf699502e734652c4799ae4199691": EOF"

Error with array parameters in query strings

On production, this URL works: https://lichess.org/account/oauth/token/create?scopes[]=challenge:write&scopes[]=puzzle:read&description=Prefilled+token+example

But if you go to the equivalent on a workspace (just changing the hostname), it returns:

Illegal request-target: Invalid input '[', expected query-char, pct-encoded or 'EOI' (line 1, column 35)

The error that shows up in the lila log:

[warn] a.actor.ActorSystemImpl - Illegal request, responding with status '400 Bad Request': Illegal request-target: Invalid input '[', expected query-char, pct-encoded or 'EOI' (line 1, column 35): /account/oauth/token/create?scopes[]=challenge:write&scopes[]=puzzle:read&description=Prefilled+token+example

doesn’t work by default with latest Lichess

(Seems to be caused by lichess-org/lila@01a0a7b.)

I get a lot of unmappable character (0xAB) for encoding US-ASCII errors (with different hex codes) while building the i18n module.

I was able to fix it by modifying the .bloop/i18n.json file. I changed the "project" β†’ "java" β†’ "options" array (which was initally empty) to contain the strings "-encoding", "utf-8", and the project built successfully again! It looked like this:

...
"java": {
    "options": [
        "-encoding", "utf-8"
    ]
},
...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.