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

Space in the current directory crashes "dafny run" #3683

Closed
MikaelMayer opened this issue Mar 3, 2023 · 1 comment · Fixed by #3684 or #3694
Closed

Space in the current directory crashes "dafny run" #3683

MikaelMayer opened this issue Mar 3, 2023 · 1 comment · Fixed by #3684 or #3694
Labels
kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label

Comments

@MikaelMayer
Copy link
Member

Dafny version

3.13.0

Code to produce this issue

method Main() {
  print "hello";
}

Command to run and resulting output

Place this content in a file `folder name/runfails.dfy`
Navigate into the folder `folder name` which should contain a space
Execute

    dafny run runfails.dfy

You'll get

    (0,-1): Error: Unable to open included file
    Error opening file "runfails.dfy": Could not find a part of the path '...\folder%20name\runfails.dfy'.

This is the same result if you run it from outside the folder containing a space in the name.

What happened?

It looks like files with spaces in their name are wrongly encoded with URLs escapes.

What type of operating system are you experiencing the problem on?

Windows

@MikaelMayer MikaelMayer added the kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label label Mar 3, 2023
@MikaelMayer
Copy link
Member Author

A git bisect identified the following PR that introduced the regression bug above.

#3618

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant