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

Sublime Integration fails - Can't find "C:\Programs"? #727

Closed
mehdroid opened this issue Nov 24, 2015 · 5 comments
Closed

Sublime Integration fails - Can't find "C:\Programs"? #727

mehdroid opened this issue Nov 24, 2015 · 5 comments

Comments

@mehdroid
Copy link

I followed the steps to integrate sublime with cmder (which I love!) , here is the cmd output:

c:\Program Files (x86)\cmder\vendor\Sublime Text 3
λ sublm .\foo.text
The system cannot find the path specified.

c:\Program Files (x86)\cmder\vendor\Sublime Text 3
λ %CMDER_ROOT%
'C:\Program' is not recognized as an internal or external command,

operable program or batch file.

Does this mean that the environment variable for CMDER_ROOT is not being read correctly? and is it possible to add CMDER_ROOT with the correct/full path in the variable section in settings?

@MartiUK
Copy link
Member

MartiUK commented Nov 24, 2015

It's because shells like cmd and powershell don't handle the space in "Program Files" well.
Why is cmder in your Program Files? Extract it to your desktop or your $HOME, it'll work then.

I've created an issue for you.

@tomm1996
Copy link

Use the DOS-Path for aliases. Navigate to C: and type the command dir /x. In the middle column of the Output it will show the DOS-Name, which in this case usually is PROGRA~2.
Thus the Path will look like

c:\PROGRA2\cmder\vendor\SUBLIM1

@jankatins
Copy link
Contributor

If sublm is a alias, then you could also just quote the first path like I did here with notepad++:

note="C:\Program Files (x86)\Notepad++\notepad++.exe" "$*"

@mehdroid
Copy link
Author

Reply to MartiUK\

I dont have a good answer for that, it just seemed like the way to go at the time? I am beginning to think that having it in the Docs directory would be much simpler

Reply to Warlord/JanSchulz

I will have to try both of those! Thank you :)

@Jackbennett
Copy link
Contributor

Commits have landed to fix this but also we've had weird issues with the "program files" area before, In general don't but your own files in there, windows treats it a bit special with the permissions and odd things can not work. Just leave it for installers to use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants