-
Notifications
You must be signed in to change notification settings - Fork 254
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
An error is reported when you open Apps #456
Comments
@D6397 are you running on Windows? |
The launch command is launched in a terminal on Visual Studio |
I am getting this error on Ubuntu 24 full install on Dell XPS laptop (not Windows Ubuntu WSL) |
am using docker compose
|
I am totally new to this app, but the first place I will look is on Macbook and see if its OK there debuggging ideas;
|
similar error on Macbook Docker Desktop docker compose up workflow note, am using defaults OpenAI which is built into app UX but I see your docs have Anthropic
|
on ubuntu 'npx srcbook@latest start' works, I assume its related to how srcbook creates the app is in ~/.srcbook/apps when running in node, but when in docker compose or vscode remote server mode it cant handle it as of yet. I havent dug into the code, but I expect having OS switches for folder locations of apps ...
|
depends on Annoying long tail implementation details. srcbook/packages/api/constants.mts Line 11 in 36913a4
|
actually, in docker compose app is created, but the utf-8 simple-git error crashes srcbook when clicked in UI
|
running in dev it looks like the app is created in .srcbook/apps/... simple-git crashes? on local in dev I guess it restarts, and the app can be viewed in UI, in docker compose the app crashes and doesnt recover? "dev": "turbo dev", |
I just ran "Create a recipe finder app with beautiful food photography, ingredient lists, and step-by-step instructions. Include search and filtering by cuisine type and dietary restrictions." and it generated an app no crash, no issues afaik there is some difference in the handling of the returned code? |
docker workflow also fails, permissions are assigned to root from docker generated apps prompt
|
pretty sure there is an issue with the docker container running as root? I just tried to remove the host volume and persist the app created inside the container but I still get the error and it looks like I crash the container
|
ok, folder owned by root but files owned by user when using docker would need to try to find a way to log or setup checkpoints I just kind of crashed through the app via debugging
I am not sure I am getting consistent results, could the API be returning inconsistently? stepping away |
git difference between app created by docker; owner of files is root, no git history. no initial commit
vs dev run version where ownership seems sensible and git history
|
doing more investigations, totally feels like the Docker container creating files as root into host volume issue, which is frankly a huge pita regards Windows, Linux, Mac I am getting same or similar errors on GIT stage of lifecycle of app on Mac and Linux right now. My first day poking around. Maybe Docker Compose watch is a way out. Maybe there is an elegant solution in some other tooling. |
An error is reported when you open Apps
srcbook@0.0.15 running at http://localhost:2150
file:///root/.npm/_npx/f3cf20110f0917c8/node_modules/simple-git/dist/esm/index.js:4462
return { error: new GitError(void 0, error.toString("utf-8")) };
^
GitError: HEAD
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git [...] -- [...]'
task: {
commands: [ 'rev-parse', 'HEAD' ],
format: 'utf-8',
parser: [Function: parser]
}
}
Node.js v20.16.0
The text was updated successfully, but these errors were encountered: