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

Extension manifest not found: node_modules/node_modules/fast-deep-equal/package.json #51

Closed
InTheCloudDan opened this issue Feb 2, 2024 · 10 comments

Comments

@InTheCloudDan
Copy link

InTheCloudDan commented Feb 2, 2024

publish-vscode-extension Version Operating System
@1 and @1.6.0 Linux

Description

Just started seeing Extension manifest not found: node_modules/node_modules/fast-deep-equal/package.json loading the vsix up in VSIX viewer extension and the package.json is definitely there.

I tried updating to 1.6.0 but the running logs(below) still say 1.5.0.

Nothing changed in extension packaging from a build that worked 3 days ago.

Expected Behavior

Build would complete

Actual Behavior

It fails with Extension manifest not found: node_modules/node_modules/fast-deep-equal/package.json

Steps to Reproduce

Context



with:
    pat: ***
    registryUrl: https://marketplace.visualstudio.com
    yarn: true
    preRelease: true
    packagePath: ./
    dryRun: false
    noVerify: false
    dependencies: true
    skipDuplicate: false
Specifically, running GitHub Action HaaLeo/publish-vscode-extension@v1.5.0.
Package the Extension
  Start packaging the extension.
  Executing prepublish script 'yarn run vscode:prepublish'...
  yarn run v1.22.21
  warning launchdarkly@4.99.52: The engine "vscode" appears to be invalid.
  $ webpack --mode production
  asset extension.js 8[3](https://github.com/launchdarkly/ld-vscode/actions/runs/7755698217/job/21151596703#step:11:3)3 KiB [emitted] [minimized] (name: main) 2 related assets
  asset 713.extension.js [4](https://github.com/launchdarkly/ld-vscode/actions/runs/7755698217/job/21151596703#step:11:4).2[5](https://github.com/launchdarkly/ld-vscode/actions/runs/7755698217/job/21151596703#step:11:5) KiB [emitted] [minimized] 1 related asset
  orphan modules 55.9 KiB [orphan] 37 modules
  runtime modules 2.44 KiB 8 modules
  modules by path ./node_modules/ 2.1[6](https://github.com/launchdarkly/ld-vscode/actions/runs/7755698217/job/21151596703#step:11:6) MiB
    javascript modules 2.15 MiB 43[7](https://github.com/launchdarkly/ld-vscode/actions/runs/7755698217/job/21151596703#step:11:7) modules
    json modules 6.63 KiB
      modules by path ./node_modules/ajv/lib/ 3.12 KiB 2 modules
      + 2 modules
  modules by path ./src/ 2[8](https://github.com/launchdarkly/ld-vscode/actions/runs/7755698217/job/21151596703#step:11:8)1 KiB 40 modules
  optional modules 126 bytes [optional]
    external "worker_threads" 42 bytes [optional] [built] [code generated]
    external "node:process" 42 bytes [optional] [built] [code generated]
    external "node:stream/web" 42 bytes [optional] [built] [code generated]
  + 21 modules
  webpack 5.8[9](https://github.com/launchdarkly/ld-vscode/actions/runs/7755698217/job/21151596703#step:11:9).0 compiled successfully in [13](https://github.com/launchdarkly/ld-vscode/actions/runs/7755698217/job/21151596703#step:11:14)717 ms
  Done in [14](https://github.com/launchdarkly/ld-vscode/actions/runs/7755698217/job/21151596703#step:11:15).38s.
Error: Extension manifest not found: node_modules/node_modules/fast-deep-equal/package.json
@HaaLeo
Copy link
Owner

HaaLeo commented Feb 2, 2024

Hi @InTheCloudDan thx for reporting this. This could be a regression with v1.6.0
Can you pls try to use explicitly v1.5.0 to reproduce the issue?

@InTheCloudDan
Copy link
Author

@HaaLeo as far as I can tell, it was actually using v1.5.0 based on this log line:
Specifically, running GitHub Action HaaLeo/publish-vscode-extension@v1.5.0. and I ran it earlier in the day yesterday that was definitely using v1.5.0 with the same issue.

@HaaLeo
Copy link
Owner

HaaLeo commented Feb 2, 2024

I think there's a bug causing it to log always v1.5.0 instead of v1.6.0. Can you say when it failed first yesterday? That would help me to check whether it was before or after I have deployed v1.6.0.

@InTheCloudDan
Copy link
Author

13 hours ago, sorry can't find exact time stamp. Ahh ok, I'll try explicitly setting v1.5.0 and double check.

@InTheCloudDan
Copy link
Author

It does look like setting that version works, thanks!

@HaaLeo
Copy link
Owner

HaaLeo commented Feb 2, 2024

I just published v1.6.1 which reverts the action's build target back to es6. Could you give it a try again?

@rtetley
Copy link

rtetley commented Feb 13, 2024

Hi @HaaLeo
I have the same problem, even after specifying v1.6.1
Screenshot 2024-02-13 at 10 50 24

@HaaLeo
Copy link
Owner

HaaLeo commented Feb 13, 2024

@rtetley thx for bringing this up again. It seems this is a regression of vsce v2.23.0 for yarn based repositories (microsoft/vscode-vsce#928). Please endorse the upstream package to fix this.

I'll consider to revert the package version in the meantime. However, I cannot name any ETA for this.

@HaaLeo
Copy link
Owner

HaaLeo commented Feb 13, 2024

So apparently I managed to squeeze in the fix within my lunch break. I hope reverting vsce to v2.22.0 (within the action's v1.6.2 release) fixes this for now.

Feel free to comment if that's not the case then I'll reopen the issue.

@HaaLeo HaaLeo closed this as completed Feb 13, 2024
@rtetley
Copy link

rtetley commented Feb 13, 2024

Seems to be working again ! Thanks a lot ! :-)

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

3 participants