You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 [...] -- [...]'
at Object.action (file:///root/.npm/_npx/f3cf20110f0917c8/node_modules/simple-git/dist/esm/index.js:4462:25)
at PluginStore.exec (file:///root/.npm/_npx/f3cf20110f0917c8/node_modules/simple-git/dist/esm/index.js:4501:25)
at file:///root/.npm/_npx/f3cf20110f0917c8/node_modules/simple-git/dist/esm/index.js:1369:43
at new Promise (<anonymous>)
at GitExecutorChain.handleTaskData (file:///root/.npm/_npx/f3cf20110f0917c8/node_modules/simple-git/dist/esm/index.js:1367:16)
at GitExecutorChain.<anonymous> (file:///root/.npm/_npx/f3cf20110f0917c8/node_modules/simple-git/dist/esm/index.js:1351:44)
at Generator.next (<anonymous>)
at fulfilled (file:///root/.npm/_npx/f3cf20110f0917c8/node_modules/simple-git/dist/esm/index.js:45:24)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
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 ...
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?
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
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.
niccolox@devekko:~/.srcbook/apps$ ls -alh
total 170K
drwxrwxr-x 10 niccolox niccolox 10 Jan 6 14:15 .
drwxrwxr-x 4 niccolox niccolox 5 Jan 6 14:15 ..
drwxr-xr-x 3 root root 10 Jan 6 14:07 33tu8dm1mf32ce39tnmnb84gt8
drwxrwxr-x 5 niccolox niccolox 13 Jan 6 13:49 93nrcaaks9trh1uj7r6sk57tg0
drwxrwxr-x 5 niccolox niccolox 13 Jan 6 14:13 ap64bhibqvcgmpdjruf554chck
drwxrwxr-x 5 niccolox niccolox 13 Jan 6 14:14 hdmldoeo0b9k4kol2v0h3gte14
drwxrwxr-x 5 niccolox niccolox 13 Jan 6 13:37 hfrf85p651ogp90kiccobugp94
drwxr-xr-x 3 root root 10 Jan 6 14:15 k6c7onuai825qdb3jf1gq9hdtc
drwxr-xr-x 3 root root 10 Jan 6 14:00 l37o43leqdcqjosst0rr0socpg
drwxrwxr-x 5 niccolox niccolox 13 Jan 6 13:57 tg1eufkfajpibvpk0shnp25db4
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
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.
docker run -p 2150:2150 -v ~/.npm:/root/.npm srcbook
srcbook:start: Serving static files (React app)...
srcbook:start: Creating WebSocket server...
srcbook:start: Initialization complete
srcbook:start: srcbook@0.0.16 running at http://localhost:2150
srcbook:start: GitError: Error: spawn git ENOENT
srcbook:start: at ChildProcess._handle.onexit (node:internal/child_process:286:19)
srcbook:start: at onErrorNT (node:internal/child_process:484:16)
srcbook:start: at process.processTicksAndRejections (node:internal/process/task_queues:90:21)
srcbook:start: at Object.action (file:///app/node_modules/.pnpm/simple-git@3.27.0/node_modules/simple-git/dist/esm/index.js:4462:25)
srcbook:start: at PluginStore.exec (file:///app/node_modules/.pnpm/simple-git@3.27.0/node_modules/simple-git/dist/esm/index.js:4501:25)
srcbook:start: at file:///app/node_modules/.pnpm/simple-git@3.27.0/node_modules/simple-git/dist/esm/index.js:1369:43
srcbook:start: at new Promise (<anonymous>)
srcbook:start: at GitExecutorChain.handleTaskData (file:///app/node_modules/.pnpm/simple-git@3.27.0/node_modules/simple-git/dist/esm/index.js:1367:16)
srcbook:start: at GitExecutorChain.<anonymous> (file:///app/node_modules/.pnpm/simple-git@3.27.0/node_modules/simple-git/dist/esm/index.js:1351:44)
srcbook:start: at Generator.next (<anonymous>)
srcbook:start: at fulfilled (file:///app/node_modules/.pnpm/simple-git@3.27.0/node_modules/simple-git/dist/esm/index.js:45:24) {
srcbook:start: task: { commands: [ 'init' ], format: 'utf-8', parser: [Function: parser] }
srcbook:start: }
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.
Activity
[-]An error is reported when you open Apps[/-][+]An error is reported when you open Apps #297[/+][-]An error is reported when you open Apps #297[/-][+]An error is reported when you open Apps[/+]glassBead-tc commentedon Dec 4, 2024
@D6397 are you running on Windows?
D6397 commentedon Dec 4, 2024
Run Visual Studio Code on Windows to access the ubantu server running
D6397 commentedon Dec 4, 2024
The launch command is launched in a terminal on Visual Studio
D6397 commentedon Dec 4, 2024
The same is true for the installation of the ubantu system in the container
niccolox commentedon Jan 6, 2025
I am getting this error on Ubuntu 24 full install on Dell XPS laptop (not Windows Ubuntu WSL)
niccolox commentedon Jan 6, 2025
am using docker compose
niccolox commentedon Jan 6, 2025
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;
niccolox commentedon Jan 6, 2025
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
niccolox commentedon Jan 6, 2025
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 ...
niccolox commentedon Jan 6, 2025
depends on
os.homedir()on VS code remote server or Ubuntu docker compose etc.Annoying long tail implementation details.
srcbook/packages/api/constants.mts
Line 11 in 36913a4
niccolox commentedon Jan 6, 2025
actually, in docker compose app is created, but the utf-8 simple-git error crashes srcbook when clicked in UI
niccolox commentedon Jan 6, 2025
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",
niccolox commentedon Jan 6, 2025
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?
niccolox commentedon Jan 6, 2025
docker workflow also fails, permissions are assigned to root from docker generated apps
prompt
niccolox commentedon Jan 6, 2025
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
niccolox commentedon Jan 6, 2025
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
niccolox commentedon Jan 7, 2025
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
niccolox commentedon Jan 7, 2025
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.