Skip to content

Run Script Does Not Work For Scripts With UNC File Paths #1302

Open
@Luke-Burgess

Description

@Luke-Burgess

Description
On Windows with a script (.fsx) file in a UNC directory, the "Run Script" button does not work because Ionide uses cmd.exe and the cd command which does not work with UNC file paths.

To Reproduce
Steps to reproduce the behaviour:

  1. Create a script file in a UNC directory with whatever code you like.
  2. Click on the "Run Script" button.
  3. Observe the new terminal instance with the message "CMD does not support UNC paths as current directories.".

Expected behaviour
The script should run.

Environment:

  • OS: Microsoft Windows 10 Pro
  • Ionide version: 4.5.0
  • VSCode version: 1.42.0

Workaround
Use a mapped directory instead...

Additional notes
Having seen this error, if you then kill the terminal (using the "bin" icon) the VS Code window crashes.

Potential fix
Looks like this can be fixed by changing the cd command to pushd on this line. Also the extra quotes on this line around the %s which corresponds to flatArgs are not needed.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugscriptsProblems with .fsx files

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions