tzachar / cmp-tabnine

TabNine plugin for hrsh7th/nvim-cmp
MIT License
286 stars 28 forks source link

setting `execution policy` on windows #78

Closed xanderjakeq closed 1 year ago

tzachar commented 1 year ago

Not windows expert, but why is this necessary? I had no issues installing on windows in the past. Maybe this is something specific to your setup?

xanderjakeq commented 1 year ago

I'm on windows 10 and I had problems installing it. I also don't use powershell much.

When I ran powershell ./install.ps1 from the repo, I got this message. Seems powershell doesn't allow running scripts by default. Might be useful for other windows users to know.

...\install.ps1 cannot be
loaded because running scripts is disabled on this system. For more information, see
about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
+ ./install.ps1
+ ~~~~~~~~~~~~~
    + CategoryInfo          : SecurityError: (:) [], PSSecurityException
    + FullyQualifiedErrorId : UnauthorizedAccess
tzachar commented 1 year ago

Again, I think this is specific to your own setup of Windows. Can you change the wording to something like the following: If you get a PSSecurityException while trying to install, try the following in Powershell: Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser and then give a reference to the settings. Cool?

tzachar commented 1 year ago

LGTM 10x