Can I take a look at app-picker.coffee?

SyntaxError: Unexpected end of JSON input
2:27 PM

    at Object.parse (native)
2:27 PM

    at /etc/service/watcher/source/app-picker.coffee:73:31
2:27 PM
...

my project is experiencing some problem starting. it’s built in an unsupported language, but I’d still like to see if I can make it work.

There is nothing very exciting in that file :slight_smile: The error message means that your watch.json or glitch.json is not well formed. I can take a look today or tomorrow if you want to share the project link with me :slight_smile:

I see. I made a project from scratch, and it doesn’t have either of those two files. What should be in them?

well, neither of them is very well documented because we are focusing really hard on the JavaScript ecosystem right now. You can look at some example usage of watch.json here: https://glitch.com/edit/#!/create-react-app-sample and a glitch.json usage example is here: https://glitch.com/edit/#!/go-revel and https://glitch.com/edit/#!/ponylang-demo

basically Glitch does this:

  1. if it sees a package.json file, it interprets the project as a Javascript project, and uses package.json for its things

  2. if it does not see package.json, it tries to load glitch.json that can contain custom start/install/watch commands

  3. watch.json is used in conjuction with package.json and overrides the default watch rules.

Thanks for the info. I’ve resolved this by renaming my requirements.txt file.

yep, requirements.txt is another magic file like package.json… we have basic handling (undocumented and unsupported) for Python through requirements.txt :slight_smile: You can use requirements.txt to define your dependencies, and start.sh for your start script: https://glitch.com/edit/#!/flask-demo