Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: Cannot add shim with spaces in path #6

Closed
3 tasks done
WoMspace opened this issue Jul 3, 2023 · 2 comments
Closed
3 tasks done

[BUG]: Cannot add shim with spaces in path #6

WoMspace opened this issue Jul 3, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@WoMspace
Copy link

WoMspace commented Jul 3, 2023

Prerequisites

  • I have written a descriptive issue title.
  • I have searched all issues/PRs to ensure it has not already been reported or fixed.
  • I have verified that I am using the latest version of Scoop and corresponding bucket.

Package Name

shim

Expected/Current Behaviour

Attempting to add a custom shim with spaces in the path name.

I try:

scoop shim add blender "C:\Program Files (x86)\Steam\steamapps\common\Blender\blender.exe"

I expect:

Added shim

I get:

ERROR: Command path does not exist: C:\Program

Steps to Reproduce

Have a binary installed to a path that contains a space, in my case, Blender via steam.
PS> scoop shim add blender "C:\Program Files (x86)\Steam\steamapps\common\Blender\blender.exe"

Possible Solution

I suspect the parsing for the shim path doesn't take quotes into account. I tried with single quotes, double quotes, and various methods of escaping spaces

Scoop and Buckets Version

Current Scoop version:
v0.3.1 - Released at 2022-11-15

'extras' bucket:
de518b81b (HEAD -> master, origin/master, origin/HEAD) xmrig: Update to version 6.20.0

'java' bucket:
3be07903 (HEAD -> master, origin/master, origin/HEAD) temurin11-nightly-jre: Update to version 11.0.20-7.0.202307011715

'main' bucket:
a7d80ade4 (HEAD -> master, origin/master, origin/HEAD) memcached: Update to version 1.6.21

'nerd-fonts' bucket:
176a44f (HEAD -> master, origin/master, origin/HEAD) LXGWNeoXiHei: Update to version 1.102.1

Scoop Config

last_update        scoop_branch scoop_repo
-----------        ------------ ----------
3/7/23 11:00:12 AM master       https://github.com/ScoopInstaller/Scoop

PowerShell Version

Name                           Value
----                           -----
PSVersion                      7.3.5
PSEdition                      Core
GitCommitId                    7.3.5
OS                             Microsoft Windows 10.0.22621
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Additional Softwares

Steam

@WoMspace WoMspace added the bug Something isn't working label Jul 3, 2023
@HUMORCE
Copy link
Member

HUMORCE commented Jul 3, 2023

It's bug in Scoop core.

Duplicate of ScoopInstaller/Scoop#5313

@HUMORCE HUMORCE closed this as completed Jul 3, 2023
@WoMspace
Copy link
Author

WoMspace commented Jul 3, 2023

ah cool thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants