Skip to content

Filesystem exists throws an exception #828

@macumber

Description

@macumber

Issue overview

It turns out that C:\Users\macumber\AppData\Local\Microsoft\WindowsApps\python.exe is an App Execution Aliases and filesystem::exists is throwing an exception when it runs across that as part of the path

Current Behavior

Setting the DView path to include an app execution alias causes filesystem::exists to throw an exception and crash the application.

Expected Behavior

The application should not crash.

Steps to Reproduce

Set path to DView to C:\Users\<username>\AppData\Local\Microsoft\WindowsApps\python.exe\DView.exe using "Preferences->Configure External Tools"

Possible Solution

Switch all calls to filesystem methods to the noexcept versions.

Details

Environment

Some additional details about your environment for this issue (if relevant):

  • Platform (Operating system, version): Windows
  • Version of OpenStudioApplication (if using an intermediate build, include SHA): 1.10.0-rc2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions