MetaCell / MetaCell/cloud-harness

Generating new application with flask-server template fails

Open
#558 6 comments 0 reactions 0 assignees View on GitHub
bug scope:code-generation
Dominant language
Python
Stars
19
Forks
5
Avg merge
3d 18h
Merged PRs (30d)
3

Description

Running:
```
harness-application clockdate -t flask-server
```
with latest [develop](https://github.com/MetaCell/cloud-harness/commit/27ae0fe447ba16b9f31a43269cfb3d5076ab16ff)

returns:
```
WARNING:root:Overwriting file applications/clockdate/api/config.json with /home/afonso/Projects/MetaCell/cloud-harness/tools/cloudharness_utilities/application-templates/base/api/config.json
INFO:root:Merged/overridden file content of applications/clockdate/api/openapi.yaml with /home/afonso/Projects/MetaCell/cloud-harness/tools/cloudharness_utilities/application-templates/base/api/openapi.yaml
WARNING:root:Overwriting file applications/clockdate/test/api/test_st.py with /home/afonso/Projects/MetaCell/cloud-harness/tools/cloudharness_utilities/application-templates/base/test/api/test_st.py
WARNING:root:Overwriting file applications/clockdate/test/e2e/landing.spec.ts with /home/afonso/Projects/MetaCell/cloud-harness/tools/cloudharness_utilities/application-templates/base/test/e2e/landing.spec.ts
INFO:root:Merged/overridden file content of applications/clockdate/deploy/values.yaml with /home/afonso/Projects/MetaCell/cloud-harness/tools/cloudharness_utilities/application-templates/base/deploy/values.yaml
Traceback (most recent call last):
File "/home/afonso/.pyenv/versions/ch/bin/harness-application", line 7, in
exec(compile(f.read(), __file__, 'exec'))
File "/home/afonso/Projects/MetaCell/cloud-harness/tools/harness-application", line 73, in
generate_server(app_path)
TypeError: generate_server() missing 1 required positional argument: 'overrides_folder'
```

Expected:
- Generate the application stubs

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at tools/harness-application line 73 and trace the flask-server path to the generate_server call shown in the traceback. Run harness-application clockdate -t flask-server after the change and verify that the application stubs are generated without the missing-argument error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.