[Craft] [Bug 429299] launch Craft by running craftenv.ps1 falls on BadExpression error

Gary Wang bugzilla_noreply at kde.org
Thu Nov 19 09:42:01 GMT 2020


https://bugs.kde.org/show_bug.cgi?id=429299

--- Comment #6 from Gary Wang <wzc782970009 at gmail.com> ---
(In reply to Hannah von Reth from comment #5)
> Hmm that looks rather sane.
> 
> And you run D:\CraftRoot\craft\craftenv.ps1 in powershell core?
> (You'll have a to start it explicitly it does not replace the system one)

Yes.

InvalidOperation: D:\CraftRoot\craft\craftenv.ps1:130
Line |
 130 |      (& $env:CRAFT_PYTHON ([IO.PATH]::COMBINE("$env:CraftRoot", "bin", …
     |         ~~~~~~~~~~~~~~~~~
     | The expression after '&' in a pipeline element produced an object that
was not valid. It must result
     | in a command name, a script block, or a CommandInfo object.

PS D:\CraftRoot> echo $PSVersionTable.PSVersion

Major  Minor  Patch  PreReleaseLabel BuildLabel
-----  -----  -----  --------------- ----------
7      1      0


The error message is actually prettier than the one I got from PowerShell 5.1

Is there any log file which I can get so you can get more useful data for
troubleshooting? I know nothing about PowerShell so I don't know where I can
look at for providing more useful information.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Kde-windows mailing list