gpt-pilot icon indicating copy to clipboard operation
gpt-pilot copied to clipboard

[Bug]: VSCode stuck on waiting

Open dsitnik opened this issue 7 months ago • 30 comments

When I want to create a new project, extension is stuck on waiting. OS: Windows 11 VSCode: 1.85.1 Python: 3.12

I verified that the API in settings is valid.

image

dsitnik avatar Dec 14 '23 09:12 dsitnik

Same. It worked 4 days ago - unreliably, maybe before the update? But now multiple approaches doesn't seem to work.

RaoulFSchimanek avatar Dec 17 '23 22:12 RaoulFSchimanek

Bump, same her, stuck on waiting...

cocobeach avatar Dec 18 '23 14:12 cocobeach

Bump - same here, stuck on waiting.

Razieleron avatar Dec 19 '23 02:12 Razieleron

Try to declare the folder, it's waiting for a working folder, once you do that it will start, and it works well.

cocobeach avatar Dec 19 '23 04:12 cocobeach

What do you mean by "declare the folder"? The "GPT Pilot Path"? I've set it and still keep getting stuck as the others here described.

sbuss1980 avatar Dec 19 '23 07:12 sbuss1980

Have you tried changing folder?

cocobeach avatar Dec 19 '23 07:12 cocobeach

Changing the gpt install dir? Yes, just tried it. Didn’t work unfortunately. Still stuck on „waiting“.

I also work with Windows. Might that have an effect? I realised that demo videos appear to be running the demos on Macos.

sbuss1980 avatar Dec 19 '23 08:12 sbuss1980

I did too. I also uninstalled the extension, uninstalled VSCode completely except for the roaming data. I also used Win Process Explorer and VSCode Task Explorer (forget the name, but you know what I mean) to no avail, I am unable to find relevant log files/entries. The former tools just don`t notice anything of use happening, no error entries to be found.

You can - with or without reinstalling the extension or code or deleting connected registry entries - click the "Send"-button at the user input field for the project, you can close the extension, uninstall it, reinstall or start it, etc., the buttons all are clickable, the input field cant be ... filled with input.

The problem is reproducible independent of OS, appears on Win 10 and MacOs (Ventura) by the way. And on my systems it reliably occurs when in any way the app-production process is in any way interrupted/not finished or/and if anything doesnt work as intended.

Silver lining though: complet wiping of the OS and fresh install helps, but seems a rather monstrous solution :D.

I am just slightly above bloody amateur level, so I am approaching my limits with regards to what to try/check next - except the VSCode cache and roaming data, which I will avoid if possible.

I am happy to try other approach/provide infos, when being hinted on what could be relevant.

Maybe it is connected to another problem I experienced but havent had the time yet to check whether it was caused by me doing something wrong or by the logic of the Code Pilot-script (under the circumstances of my environments etc.): I tried the extension one time on MacOs one time on Win10 and somewhere in the process of the creation of the app the extension creates a duplicate of the workplace directory and its subdirectories within the project folder; it nests and exact copy of the folder structure including files inside the folder structure already established and that happens before the app-creation process derails in way I can perceive it to derail. I m not entirely sure I didnt by accident hit the wrong button or mindlessly changed directory and then proceeded but the its sort of not very likely, because the way in which the involuntary duplication/nesting of the workspace folder structure happens happend twice precisely on the same location (on VEntura as on Win10).

RaoulFSchimanek avatar Dec 19 '23 08:12 RaoulFSchimanek

I didn't mean the install for, but the workspace dir, from the UI when you setup. It was hanging "waiting" then I browsed my file system and it once I saved it started working. I am using the VS Code Extension btw...

cocobeach avatar Dec 19 '23 08:12 cocobeach

You mean in the settings quasi, where you can toggle "Advanced" and input the API key? I tried this as well. I remember that it worked the first time I tried it, the two times after that led to no such success. It`s a pity I cant remember what was different the first time.

Can you like ... qualify how the original workspace path relates to the path you choose when changing the workspace dir?

RaoulFSchimanek avatar Dec 19 '23 08:12 RaoulFSchimanek

Yes that's the one, I used the Bd extension like I said, you start from within vscode,you change your working directory so it binds otherwise it doesn't know where to start writing your app name in the folder it uses to develop, it will open it in vscode and you hit new app and it asks you to give a name for the app. Try that.

cocobeach avatar Dec 19 '23 09:12 cocobeach

I'm sorry, @cocobeach I don't understand anything you're saying =/

Razieleron avatar Dec 19 '23 20:12 Razieleron

Lol are you using the vscode extension? Yes or no?

cocobeach avatar Dec 19 '23 20:12 cocobeach

I am using the vscode extension, yeah.

Razieleron avatar Dec 19 '23 20:12 Razieleron

I tried uninstalling and reinstalling the plugin, changing install dir, adding and removing folders to workspace etc. Still the same... "waiting"

sbuss1980 avatar Dec 19 '23 21:12 sbuss1980

Hello. Can you check console please? ctrl+shift+P => Open Developer Tools => console. Do you see any error there when trying to start new project?

pavel-pythagora avatar Dec 20 '23 09:12 pavel-pythagora

Hi Pavel thanks for your help!! Mine worked by declaring a working folder, as long as I kept the default one it would not bind. ( But some seem to be still stuck as I saw on a similar thread) But after browsing and selecting a folder it worked!

------- Quick feedback

I have been using GPT Pilot quite a lot yesterday and there is some feedback, I will write something more detailed down the line. But all in all the concept itself is by far the best I ever seen for coding, beats everything else and I tried them all.

--------I have 1 question, Ideally it would be great if we could do a pypi check before the architecture step? Because the problem is always updated packages the AI is unaware of in depth or new frameworks.

Alternatively is there a way of introducing a context?

I was thinking, in the Workspace file system, can we add folders after setting up a name but before starting the description?

//Use case 1: say I want to use Langchain and zapier scan I put a "Documentation Folder" in the app folder and add the docs or a list of calls for reference? //Use case 2: say I want to expand an already existing program, can I load it in the same way in the file system and have the AI working on correcting/expanding already existing code? PS I had to change the definition of of the definition of escape_specials in AgentConvo.py because it created a mismatched str with the expected data type. I will update you with the code when I go back to my office.

cocobeach avatar Dec 20 '23 09:12 cocobeach

Hello. Can you check console please? ctrl+shift+P => Open Developer Tools => console. Do you see any error there when trying to start new project?

I get ... [Extension Host] Server listening on localhost:8124 console.ts:137 [Extension Host] Server listening on localhost:8125 console.ts:137 [Extension Host] cd c:\Develop\gpt-pilot-install/gpt-pilot/pilot && c:\Develop\gpt-pilot-install\gpt-pilot\pilot-env\Scripts\python c:\Develop\gpt-pilot-install/gpt-pilot/pilot/main.py --external-log-process-port=8125 --api-key=xyz console.ts:137 [Extension Host] gpt-pilot process exited with code 1

(i replaced the api key with xyz)

Maybe I missed something about installation etc, but the above mentioned file/directory "c:\Develop\gpt-pilot-install\gpt-pilot\pilot-env\Scripts\python" does not exist on my machine.

Did I miss any installation steps or should I have handled something manually here?

sbuss1980 avatar Dec 20 '23 12:12 sbuss1980

@sbuss1980 Can you execute this command, please? Does it works?

pavel-pythagora avatar Dec 20 '23 15:12 pavel-pythagora

@pavel-pythagora

This is what I get, when I try to run the command(s) manually in windows powershell integrated in VS Code.

grafik

  1. It complains about the && syntax, which I don't understand - would have assummed powershell supports it...

  2. Commands isolated: it complains that there is no executable/cmdlet at the given location, which is correct (see my previous comment). Should I have put some (link to a) python executable there?

sbuss1980 avatar Dec 20 '23 16:12 sbuss1980

@pavel-pythagora I also have the same error as @sbuss1980

Razieleron avatar Dec 20 '23 21:12 Razieleron

Still same problem now, waiting on a fix

BytePhoenixCoding avatar Dec 21 '23 22:12 BytePhoenixCoding

still same issue here

zenchantlive avatar Dec 22 '23 00:12 zenchantlive

Same issue here... Stuck on waiting....

fobatai avatar Dec 28 '23 08:12 fobatai

For me I had to reinstall the extension to the c drive for some reason and then it started working for me. Once it's working, its great

Razieleron avatar Dec 28 '23 16:12 Razieleron

Also, check out the discord - it has a ton of support and stuff beyond what you'd find here normally

Razieleron avatar Dec 28 '23 16:12 Razieleron

Same Issue here - stuck on waiting using VS Code (1.85.2) running the extensions. I can pass 'waiting' by declaring a new folder. Then it downloads the necessary files, loads the paths and fails with a lot of different errors. If its a fresh folder the error is first an 'encodings' error. Then an error 'Error installing GPT Pilot: can't extract the ZIP Error: Invalid filename'. Then it just hangs. When I try to relaunch I have to start from scratch. Screenshot 2024-01-30 162118

mathiku avatar Jan 30 '24 15:01 mathiku

Here the (mostly reliable - in the meantime) workaround is just changing the GPTPilot-workspace folder. But depending on your progress in the app-creation-process that leads to other problems due to inconsistent folder structure, which you could prevent by changing the GPTPilot code accordingly or by just revoluting the creation process some steps back and next time it queries your reply for whatever - tell him in unmistakable terms about the (already/potentially to be) corrupt folder structure.

RaoulFSchimanek avatar Jan 30 '24 21:01 RaoulFSchimanek

2. it complains that there is no executable/cmdlet at the given location, @sbuss1980

Usually when I get this message, the cause is that I in some way used (or just activated) the internal or external terminal or another CLI. In my experience it is INSANELY CRITICAL to FORCE YOURSELF to not even TOUCH any CLI as long as GPT-Pilot havent yet finished. Even using a, as far as I can see, fittingly configured integrated terminal say in VSCode sometimes derails the whole procedure and GPTPilot starts trying to mess around with the files somewhere else.

Good luck!

RaoulFSchimanek avatar Jan 30 '24 21:01 RaoulFSchimanek

This is what worked for me. Go to your C: drive, create a new folder called gptpilot (not gpt-pilot) Launch VSCode. Launch Pythagora extenstion When you see the welcoom message click the gear icon Set the installation path to the new folder you just created. Wait for installation to complete..... Success!

Not sure if I submitted any of this properly, I'm not technical, hopefully y'all can understand and gain insight for a fix.

GenuineDickies99 avatar Apr 24 '24 00:04 GenuineDickies99