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

Standard gem version issue #25

Open
jperna7254 opened this issue Apr 11, 2024 · 3 comments
Open

Standard gem version issue #25

jperna7254 opened this issue Apr 11, 2024 · 3 comments

Comments

@jperna7254
Copy link

image

I clearly have a version that is higher than 1.24.3 but still complains about the version and will not start

@searls
Copy link
Contributor

searls commented Apr 11, 2024

…… Seems bad.

@searls
Copy link
Contributor

searls commented Apr 11, 2024

I won't have a chance to try to repro this myself, but if you can try debugging the extension yourself, the first thing I'd check for is what values are being passed to the semver package's satisfies function:

const requiredGemVersion = '>= 1.24.3'
async function supportedVersionOfStandard (command: string): Promise<boolean> {
try {
const { stdout } = await promiseExec(`${command} -v`)
const version = stdout.trim()
if (satisfies(version, requiredGemVersion)) {
return true
} else {
log('Disabling because the extension does not support this version of the standard gem.')
log(` Version reported by \`${command} -v\`: ${version} (${requiredGemVersion} required)`)
await displayError(`Unsupported standard version: ${version} (${requiredGemVersion} required)`, ['Show Output'])
return false
}
} catch (e) {
if (e instanceof ExecError) e.log()
log('Failed to verify the version of standard installed, proceeding anyway…')
return true
}
}

@jperna7254
Copy link
Author

Little more detail, the issue occurs when i use this extension to switch between projects
https://marketplace.visualstudio.com/items?itemName=alefragnani.project-manager

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