-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Labels
TechnicalFor engineering-internal tasks that Product will not pay attention to. E.g.: tests, refactoring, ...For engineering-internal tasks that Product will not pay attention to. E.g.: tests, refactoring, ...
Description
Not sure if you want to support external contributors who would use GitHub Codespaces, I myself don't know what would be the correct .vscode/launch.json configuration file to make a smooth experience, so I will just describe what I tried.
The default image with remote VSCode does not have postress and the python version is slightly mis-aligned:
After I persuaded poetry to install something, I then got following python exception which I didn't feel like debugging on Sunday (I haven't even tried to install postgres if the BE server won't work anyway):
@Aprillion ➜ /workspaces/metaculus (main) $ poetry run python manage.py mjml_compose
System check identified some issues:
WARNINGS:
?: (staticfiles.W004) The directory '/workspaces/metaculus/static' in the STATICFILES_DIRS setting does not exist.
Traceback (most recent call last):
File "/home/codespace/.cache/pypoetry/virtualenvs/metaculus-web-a4ymonRh-py3.12/lib/python3.12/site-packages/mjml/tools.py", line 30, in _mjml_render_by_cmd
p = subprocess.Popen(cmd_args, stdin=subprocess.PIPE, stdout=stdout_tmp_f, stderr=subprocess.PIPE)
...
RuntimeError: Problem to run command "mjml -i -s"
[Errno 2] No such file or directory: 'mjml'
Check that mjml is installed and allow permissions to execute.
See https://github.com/mjmlio/mjml#installationFrontend npm i;npm start dev worked fine for me, but only for static content of course... Have you considered https://mswjs.io/ to mock the data for potential FE contributors by any chance?
Metadata
Metadata
Assignees
Labels
TechnicalFor engineering-internal tasks that Product will not pay attention to. E.g.: tests, refactoring, ...For engineering-internal tasks that Product will not pay attention to. E.g.: tests, refactoring, ...