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

Gary Wang bugzilla_noreply at kde.org
Thu Nov 19 01:58:29 GMT 2020


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

--- Comment #2 from Gary Wang <wzc782970009 at gmail.com> ---
(In reply to Hannah von Reth from comment #1)
> Please follow the guide and update your powershell.
> https://community.kde.org/Guidelines_and_HOWTOs/Build_from_source/
> Windows#Setting_up_a_powershell

I was using PowerShell 5.1 (according to the wiki page, seems >= 5.0 will be
fine):

echo $PSVersionTable.PSVersion

Major  Minor  Build  Revision
-----  -----  -----  --------
5      1      19041  610

After upgrade my PowerShell to 7.1.0 by downloading and installing
PowerShell-7.1.0-win-x64.msi following the "In case you need a newer one, we
recommend Powershell Core." link, I still got the same error:

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.


The "The latest version of the standard powershell can be found here." link
seems outdated, it leads to a page says "Windows Management Framework 5.0
(Superceeded by WMF 5.1 RTM version: http://aka.ms/wmf5download)", also in the
http://aka.ms/wmf5download page, after download and run
W2K12-KB3191565-x64.msu, it says the update is not valid for my computer (not
the original text. I'm not sure what's the original text since I'm not using
English as the system language)


Let me know if you need any other information. Thanks!

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


More information about the Kde-windows mailing list