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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰: Giving paths with the alias ~ isn't recognised as a valid directory #28

Open
4 tasks done
jossmoff opened this issue Dec 11, 2022 · 0 comments
Open
4 tasks done
Labels
bug Something isn't working common For common frontend functionality
Milestone

Comments

@jossmoff
Copy link
Member

jossmoff commented Dec 11, 2022

Polywit issue checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of polywit.

  • I have confirmed this bug exists on the main branch of polywit.

  • I have added the relevant language tag if this bug is validator specific.

Reproducible Example

polywit kotlin ~/polywit/benchmarking/benchmarks/polywit-benchmarks/kotlin/jbmc-regression/exceptions2 --witness ~/polywit/benchmarking/benchmarks/witnesses/polywit-benchmarks/kotlin/exceptions2.yml/witness.graphml 

Results in:

polywit kotlin: error: argument benchmark: readable_dir:~/polywit/benchmarking/benchmarks/polywit-benchmarks/kotlin/jbmc-regression/exceptions2 is not a valid path

Issue Description

The path alias ~ is not accepted as giving a valid directory by os.path. Instead for most use cases ~ should be translated to $HOME which it is most commonly the alias for.

Expected Behavior

The following command should proceed to validation and not error:

polywit kotlin ~/polywit/benchmarking/benchmarks/polywit-benchmarks/kotlin/jbmc-regression/exceptions2 --witness ~/polywit/benchmarking/benchmarks/witnesses/polywit-benchmarks/kotlin/exceptions2.yml/witness.graphml

Installed Versions

1.0.0

@jossmoff jossmoff added bug Something isn't working common For common frontend functionality labels Dec 11, 2022
@jossmoff jossmoff added this to the Version 2.0.0 milestone Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working common For common frontend functionality
Projects
None yet
Development

No branches or pull requests

1 participant