hieunc229/copilot-clone

Finished loading results but never shows them

free5ty1e opened this issue · 8 comments

EDIT: This is in an Intel Mac running OSX 11.6

Freshly downloaded Visual Studio Code Insider today, followed instructions, ran extension, opened project in extension window, confirmed inline suggestions are enabled, attempted several search strings in a blank document and the suggestions never appear. The status bar shows them loading and then shows captainstack finished loading xx results, but I never see the suggestions appear. Someone else had this issue here but it was closed with no notes; how do I fix this?

#53

Screen Shot 2022-05-16 at 12 29 18 PM

Screen Shot 2022-05-16 at 12 31 44 PM

I followed the suggested video tutorial in Discord here https://www.youtube.com/watch?v=crcpfLjNOgE on a fresh Windows 10 v21H2 computer and got the exact same results. CaptainStack: Finished loading XX results but nothing ever shows up as suggestions. Confirmed the inline suggestion setting is checked as well as tried the process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'; workaround in src/utils/fetchPageContent.ts on line 2, I never see any error notifications when I try to search, not sure how to proceed.

I can provide any further troubleshooting information needed. I've attached a more detailed screenshot showing both windows running on the mac
Screen Shot 2022-05-16 at 1 39 28 PM

The code structure so you can see I've got the root folder correct. Trying to think of what else might be helpful to post, let me know if I can retrieve any info or logs or run commands to extract data for this. Thank you!
Screen Shot 2022-05-16 at 6 49 59 PM

I forgot to mention the initial issue was seen on an Intel Mac running OSX 11.6, but it appears on a fresh Windows installation as well. I've ensured I had all the prerequisites installed and working on both machines, such as npm, npx, git, etc... I made sure to install any dependencies that npm said were missing when I ran npm install, if any showed up.

I have tested this myself, it is definitely not working. It compiles to my surprise, but it does not do anything except say that the results loaded.

From testing I think that the problem lies in the usage of the new update of vs code insiders. They most likely changed something the postinstall script needs. @hieunc229 that was your part and it would be nice if you could check it out.

it should still work fine on older versions of vs code is my guess.

aha, that's a good thought! I'll look into how to get my hands on an older vs code insider. Or will this work on plain vs code of a certain version? That will work just fine for me for the moment, I don't need the latest for any other reason :)

It will not work on the stable branch of vscode since the inlineCompletions feature is part of the proposed API of the insider versions.

This bug was caused by the recent changes from the VSCode official API. I made an update that should fix this issue.

Feel free to reopen or open a new thread for further discussion