-
Notifications
You must be signed in to change notification settings - Fork 78
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
sfdx force:package:installed:list -> TypeError: this.config.getPluginsList is not a function #2426
Comments
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support. |
Edit: same result happens with
|
This is also impacting our project as of this morning. All package-related commands in our CI process are throwing
I was last able to create an unlocked package version around 5:30pm (UK) yesterday. I've also tried ramping down the SF CLI docker image used from salesforce/cli:latest-full to salesforce/cli:2.3.0-full with no change. |
Hello, same result with the previous CLI release (2.6.6.) : CLInpm install @salesforce/[email protected] RESULTsf package install --package 04t5w000005diA4AAI --target-org [email protected] --no-prompt --wait 5 --json\n> Result : TypeError: this.config.getPluginsList is not a function" |
I am also receiving this issue, seems to occur with any
|
Package creation and package installation are also affected by this. I can reproduce this with 2.5.7 locally and in our CI environment. -> packaging 1.22.1 (1.16.1) It works with legacy CLI version 1.86.7 (uses packaging 1.20.1 (1.16.1)) |
Package creation error: CLI command: CLI version: |
Try "sfdx package version create" command. Worked for me. |
"sf update nightly" helped me to resolve this issue |
Bumper versjon og oppdaterer til å kjøre nightly for å omgå denne bug'en forcedotcom/cli#2426
Had the same problem, "sf update nightly" worked for me as well. |
We're also seeing this issue with our CI package creation job. Command: Error: Fix: |
If you're using the SF CLI docker image, switching from latest to |
Throw my hat in the ring. We are seeing this issue as well. |
Same issue here. Any news about a fix ? |
Thanks everyone for alerting us to the issue. The current workaround is to use the We have a couple of solutions in the works. I'll post here once we've landed on one |
Same here, our CI/CD deployment is affected and on hold a.t.m. |
Same issue here. I believe it is with every package command... $ sf package list |
We just published patches to If you're using npm,
If you're using installer,
|
@jeromegv Yes, those have been published too |
hi, following here and throwing some stuff on the wall: by adding confirmed it was indeed an issue with sfdx cli version and the plugin-packaging install did nothing :) |
To add, I've observed this issue with sfdx-scanner as well as with plugin-packaging. oclif/plugin-plugins#642 How do we know that we won't experience these issues on stable in the future? |
Same result for org shape generation |
|
@ethan-sargent I'm not familiar with the issues you posted so it's hard to say that those are caused by the same thing but it's possible. If it helps, here's a detailed explanation about why this happened and what we'll do to fix it. @oclif/core (the CLI framework that sf is built on) creates a This can be problematic if the command requires a higher version of This historically hasn't been a problem for us because we bump @oclif/core to the latest version for every release and because we lock the dependencies of bundled plugins. But the introduction of just-in-time plugin installation has made this issue more apparent because JIT plugins always pull in the latest versions of its dependencies during installation. If the dependencies had been locked, then it wouldn't have pulled in the newer version and caused the issue described in the previous paragraph. So there are two problems that need to be solved:
Solving the second problem helps reduce the frequency of the first problem and it also solves the problem of a dependency or transitive dependency suddenly introducing a breaking change (think the color.js debacle). But it doesn't totally solve the first problem because a plugin could have purposely and legitimately bumped their version of @oclif/core before it was bumped in the root sf plugin. For this I have a number of ideas that I need to investigate and run by the team. This is a high priority for us given that this isn't the first time this happened (see #2330). |
I see this was closed but we are still experiencing this and none of the suggested fixes, Getting error |
I am still seeing this as well and none of the recommendations are helping. Reverting back to using sfdx does allow me to do some command. |
@veaux @molson-sfdc can you provide more details? The following would be helpful:
And then which commands you're seeing the error on |
@mdonnalley I'm seeing error on pretty much all sf commands. I stopped using them and using sfdx instead. CLI Version: Architecture: Node Version: Plugin Version: OS and Version: Shell: Root Path: |
@veaux Thanks - I'm not seeing the same on |
@mdonnalley I did a complete reinstall of |
Hello Everyone, Can anyone confirm that, 2.5.8 is locked to a specific packaging plugin version or not? |
The command
|
@djodrell can you open a new issue if you've got a way to consistently get that error? I'm not sure it's the same is the one you just posted on. |
@mshanemc In spite of the "Error" reported above, the command still appears to have been successful.
|
I have the exact same problem. its been an issue with the CLI since August 2023. Could you please at least explain why we get these error messages instead of telling us to install / reinstall the modeler ?? We do not have access anymore to the version of the CLI explained in the documentation ( https://help.salesforce.com/s/articleView?id=sf.modeler_vscode_installation_prerequisites.htm&type=5), which is @salesforce/[email protected], the snippets that you propose in the documentation are incomplete, truncated or do not compile in the terminal so all needs to be done manually !! (eg, set VCTargetsPath=C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Microsoft\VC\v160\ ) can we have reliable info and a reason why or a way to debug it ourselves ?´thank you |
Summary
Steps To Reproduce
On private repo, sorry :/
Expected result
The list of packages :)
Actual result
TypeError: this.config.getPluginsList is not a function
System Information
Additional information
I have multiple companies using sfdx-hardis that have their CI/CD pipelines blocked because of this issue :(
The text was updated successfully, but these errors were encountered: