Skip to content
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

Activation of extension failing when debugging #9

Closed
aleksandr-vin opened this issue Feb 5, 2023 · 3 comments
Closed

Activation of extension failing when debugging #9

aleksandr-vin opened this issue Feb 5, 2023 · 3 comments

Comments

@aleksandr-vin
Copy link

Steps to reproduce:

  1. Download the source code
  2. Open in vscode
  3. Run yarn install
  4. Hit F5 to debug it
  5. In the new vscode window, click on the ChatGPT extension icon on the dock

Error:

Activating extension 'timkmecl.chatgpt' failed: ENOENT: no such file or directory, open '/Users/jay/Downloads/chatgpt-vscode-main/dist/encoder.json'.

How do you debug it?

@aleksandr-vin
Copy link
Author

This is a workaround, I've found: copy files from node_modules/gpt-3-encoder:

cp node_modules/gpt-3-encoder/{encoder.json,vocab.bpe} dist/

@timkmecl
Copy link
Owner

timkmecl commented Feb 5, 2023

Hi, thank you for opening this issue. Your workaround is exactly what I did, I will update the readme to share this information. Sorry for not including this before.

@timkmecl
Copy link
Owner

timkmecl commented Feb 5, 2023

I updated the README so I'm closing this issue. Thanks again!

@timkmecl timkmecl closed this as completed Feb 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants