gencay / vscode-chatgpt

An unofficial Visual Studio Code - OpenAI ChatGPT integration
ISC License
3.48k stars 761 forks source link

Cannot compile by the project #247

Closed hkcity1111 closed 1 year ago

hkcity1111 commented 1 year ago

Describe the Bug

Hi all,

I run vsce package and it warns me that extension/images/ai-logo.png. Do i get anything wrong?

Detected presence of yarn.lock. Using 'yarn' instead of 'npm' (to override this pass '--no-yarn' on the command line).
Executing prepublish script 'yarn run vscode:prepublish'...
yarn run v1.22.19
$ rimraf out && npm run esbuild-base -- --minify

> vscode-chatgpt@3.9.7-0 esbuild-base
> esbuild ./src/extension.ts --bundle --outfile=out/extension.js --external:vscode --format=cjs --platform=node --minify

  out\extension.js  3.3mb

Done in 5.02s.
 INFO  Detected presence of yarn.lock. Using 'yarn' instead of 'npm' (to override this pass '--no-yarn' on the command line).
 ERROR  The specified icon 'extension/images/ai-logo.png' wasn't found in the extension.

Please tell us if you have customized any of the extension settings or whether you are using the defaults.

I am using node.js 16.15 and 18.15 which got same result

Additional context

No response

csyourui commented 1 year ago

Hi, I also encountered a similar problem, but I found a solution in error-detecting-icon-when-publishing-vscode-extension. It appears that deleting the line "images/**" in the .vscodeignore file resolves the compilation issue.

gencay commented 1 year ago

.vscodeignore had the wrong image names. Pull the latest from the repo to receive the fix.