-
Notifications
You must be signed in to change notification settings - Fork 20
Labels
Description
If the database indicates a plugin is installed locally, but the plugin is not on disk (or bower registered), an uncaught error is thrown. This can have the effect of halting the installation of framework plugins which results in various issues, the first evidence often being a missing schema error.
adapt-cli/lib/integration/Plugin.js
Lines 152 to 158 in 291b63a
| /** | |
| * whether querying the server or disk for plugin information worked | |
| * @returns {boolean} | |
| */ | |
| get isPresent () { | |
| return Boolean(this._projectInfo || this._sourceInfo) | |
| } |
adapt-cli/lib/integration/Plugin.js
Lines 292 to 303 in 291b63a
| if (this.isLocalSource) { | |
| const info = this.projectVersion ? this._projectInfo : this._sourceInfo | |
| const satisfiesConstraint = !this.hasValidRequestVersion || semver.satisfies(info.version, this.requestedVersion, semverOptions) | |
| const satisfiesFramework = semver.satisfies(framework, info.framework) | |
| if (satisfiesFramework && satisfiesConstraint) this.latestCompatibleSourceVersion = info.version | |
| return info.version | |
| } | |
| if (!this.isPresent) return null | |
| // check if the latest version is compatible | |
| const satisfiesConstraint = !this.hasValidRequestVersion || semver.satisfies(this._sourceInfo.version, this.requestedVersion, semverOptions) |