Skip to content

Start-UnityEditor fails to find a valid path #153

Closed

Description

https://github.com/Microsoft/unitysetup.powershell/blob/46027e37b5d35279fafb0bf60a4becef7e0d478e/UnitySetup/UnitySetup.psm1#L987

##[error]Get-ChildItem : Cannot find path 'C:\Program Files\Unity\ C:\Program Files\U' because it does not exist.
At C:\Users\VssAdministrator\Documents\WindowsPowerShell\Modules\UnitySetup\5.0.104\UnitySetup.psm1:977 char:31
+ ...   $editor = Get-ChildItem "$($setupInstance.Path)" -Filter 'Unity.exe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Program File...Program Files\U:String) [Get-ChildItem], ItemNotFound 

   Exception

    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand

using UnitySetup 5.0.104-develop and 5.0.107-develop

Activity

  1. StephenHodgson commented on Jan 24, 2019

    @StephenHodgson
    ContributorAuthor

    Not sure if it's because the path needs to be escaped because of whitespace characters.

  2. StephenHodgson commented on Jan 28, 2019

    @StephenHodgson
    ContributorAuthor

    Yup, confirmed. This is a duplicate of #152. I updated to a different install version and it worked fine.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions