tbodt / deoplete-tabnine

Deoplete source for TabNine
256 stars 17 forks source link

Installation fails on Windows due to missing/wrong Parameter in the powershell installation script #63

Closed 7erra closed 3 years ago

7erra commented 3 years ago

On Windows (Version: 10.0.19043 Build 19043) the install.ps1 script fails with the following error:

Downloading TabNine executable...

    Verzeichnis: C:\Users\Terra\AppData\Local\nvim\plugged\deoplete-tabnine\binaries\3.7.12

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d-----        16.10.2021     20:31                x86_64-pc-windows-gnu
System.Management.Automation.ParameterBindingException: Es wurde kein Parameter gefunden, der dem Parameternamen "DestinationPath" entspricht.
   bei System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
   bei System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
   bei System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
   bei System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)

Changing

Expand-Archive -Force -Path "$path\TabNine.zip" -DestinationPath "$path"

to

Expand-Archive -Force -Path "$path\TabNine.zip" -OutputPath "$path"

results in a successful installation. My powershell version is:

Name                           Value
----                           -----
PSVersion                      5.1.19041.1237
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.19041.1237
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
Shougo commented 3 years ago

Really? -DestinationPath seems correct.

https://docs.microsoft.com/ja-jp/powershell/module/microsoft.powershell.archive/expand-archive?view=powershell-7

Shougo commented 3 years ago

https://github.com/MicrosoftDocs/PowerShell-Docs/issues/6030

You have installed pscx and it overwrites standard cmdlet. It is not deoplete-tabnine's problem.

7erra commented 3 years ago

MicrosoftDocs/PowerShell-Docs#6030

You have installed pscx and it overwrites standard cmdlet. It is not deoplete-tabnine's problem.

Thanks! That fixed the issue. I had forgotten that I installed that module and I am by no means a powershell expert. It is rather weird that it changes a parameter name like that.