thank you @DaC and @Carlos_Tecles I tried what you suggested and it worked just fine. Back at it
Hi Guys,
I initially thought this might be for something that I am having a really hard time with and it’s kicking my butt…
I am looking for a way where I can basically either add a old app directory let’s just call it an app for clarity sake, it’s a Next JS app that I wanted to either clone from GitHub or uploaded the zip of the actual source code from my local machine. But for some reason I am not finding a way to get it to make use of the prototyper like the one you get when you basically kick off your application with a prompt in the chat wrapper? And I almost thought like this might have been regarding that when looking at the initial post from DaC.
Now, to try and keep things simple is there a wat to get the Prototyper working from a app cloned from GitHub or by an app that was scaffolded by picking a template ? If so can you please share your knowledge and understanding with me? As neither my prompt generated apps or my idx editor apps have this context directory and I’m been burning through the Protoyper generated app’s code and deeper app insides in the .next and node modules and unless I went to quick and just simply missed something, I did not find a single thing that could indicate code that I could grab from the one and move to the other to enable the prototyper functionality to a GitHub cloned repo. There’s a really nifty feature in the Prototyper that I’d like to use for something in an old app of mine.
Any help on the topic will be greatly appreciated.
Kind regards,
Ryno.
aka “KingGokuD3V”
@KingGokuDev you’ll need to:
- the context directory doesn’t exists, this is something the community is adopting as a standard way of keeping relevant project context saved for future sessions after clearing the prototyper context.
- clone your app to your local machine
- start a new project (don’t use the git hub or new workspace feature).
- ask prototyper to create a very simple hello world app
- when it’s done go to the backend
- undo last commit and unstage changes
- follow the instructions from my last post:
How-to Enabling Prototyper on Existing Project + Prototyper Full Context Clear - #20 by DaC - then delete everything from the project dir (keep .idx dir)
- reset the VM
- upload files of your cloned project from your local machine.
- then npm install and you’re good to go.
Thnak you Dac.
Let me try that approach. I’ll let you know how it goes.
Thank you so much aparently it works
I always wondered what would happened when the AI context is maxed out. Now I know, thanks to all! I will be keeping in mind to use the AI prototyper sparlingly and turn to hand-coding the minor updates instead of asking AI to do them.
Cheers,
Suri
As of today, /clear seems to be working fantastically; I assume that there have been some backend changes.
I see restart instead of reset, did i do it right?
@Ihsan_Duru yeap! You’re right
Does it still work? I’m trying and I’m not having success. I do everything as in the tutorial, but when I reset the VM it goes back to normal. Did you update something? I redid the process several times.
How about if I dont have those capra files> I cant find them, are they hidden somewhere?
timestamp=$(date +%Y%m%d%H%M%S); mkdir -p “/home/user/studio/context/context_backup/” && cp “/home/user/.idx/ai/capra-context-state.json” “/home/user/studio/context/context_backup/capra-context-state-${timestamp}.json” && cp “/home/user/.idx/ai/capra-thread.json” “/home/user/studio/context/context_backup/capra-thread-${timestamp}.json”
cp: cannot stat ‘/home/user/.idx/ai/capra-context-state.json’: No such file or directory.
Does hitting clear deletes them? I hit /clear on gemini, al cleared, but still getting the exceeded message. Cant follow steps because dotn have the Capra files.