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

Look in more places for rust-toolchain and viper_tools #251

Merged

Conversation

zgrannan
Copy link
Contributor

@zgrannan zgrannan commented Feb 1, 2024

When using a local version of Prusti, and setting the "Local Prusti Path" to the prusti executable generated using ./x.py build in prusti-dev (i.e. prusti-dev/target/debug), the extension throws an error beause it cannot find rust-toolchain and viper_tools. This is because those files are in the folder prusti-dev, rather than prusti-dev/target/debug.

This PR resolves the issue by also looking in the parent directories of "Local Prusti Path" to locate viper_tools and rust-toolchain.

@fpoli
Copy link
Member

fpoli commented Feb 2, 2024

Thanks! Feel free to merge. Originally the "Prusti local path" was meant to be the result of ./x.py package, but I agree that during development it's not convenient. If you want to trigger a new release of the extension on the marketplace, bump up the version in package.json.

@zgrannan zgrannan merged commit e990a88 into viperproject:master Feb 2, 2024
6 checks passed
@zgrannan zgrannan deleted the zgrannan/more-permissive-tool-search branch February 2, 2024 17:46
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

Successfully merging this pull request may close these issues.

2 participants