-
Notifications
You must be signed in to change notification settings - Fork 2k
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
First run config fails with exclamation in path #1049
Comments
Just downloaded it and it is there: http://i.imgur.com/BMTvRmO.png |
I tried 3 times. I don't think you should be so quick to close this ticket. Try running cmdr.exe after download. Something is definitely not right. |
The truth is I downloaded it and during first run I got the error messages, read the thread and saw it wasnt there. I think you should try looking after first run. Something is definitely wrong. |
On the second run, after i downloaded the file, there were no errors. On the third run, this error:
That path exists. I even copied and renamed |
I wrote the alias code you seem to have issues with. I just downloaded cmder full from the web site, extracted it to a new folder and ran cmder.exe. It works perfectly see the output of the first run:
The example file is copied to 'C:\Users\dgames\Downloads\cmdernew\config\user-profile.cmd' if the destination does not exist. the result of that copy, '1 file(s) copied.' is evident in the output above in a fresh newly extracted and otherwise unmodified directory structure. I then closed it and relaunched 'cmder.exe' again with no issues. See output of the second run after issuing the 'alias' command to list all default aliases that ultimately came from the file you say is not there:
I then did EXACTLY the same as above with this development archive, https://ci.appveyor.com/api/buildjobs/n15ep9jijgcunjes/artifacts/build/cmder.7z, with EXACTLY the same results. I cannot duplicate your issues with the limited information provided. |
I didn't do anything different from what you describe.
It may be related to Windows file security, or perhaps my using WinRar as
an unarchiver. Additionally I placed it into my Dropbox path. I'm not
running any special security software or configuration.
If we can more closely duplicate one another's configuration it may lead to
some information.
1) What did you decompress with? I used WinRar
2) Do you have Windows SmartScreen enabled? I do
3) What's your version of Windows? I'm running Windows 10
|
Decompressed Cmder Full zip with Windows built in and Cmder Full Dev 7z with unzip 7zip portable. Smartscreen is off. Windows 10 The only time that the user-aliases.cmd.example file is referenced/used is on an initial fresh run when '%cmder_root/config/user-aliases.cmd' does not exist. It the example file does not exist after initial extract the issue is most likely in your system because it is definitely in the archive. Are there spaces in %cmder_root% path? |
Your comment about spaces in the path got me thinking and I think have figured out the problem. The first run initialization does not complete correctly with an exclamation mark I keep my portable apps in Looking at the log I posted above, it seems that it was detected as I tried once more on my desktop under a folder called
I am still unsure how Obviously, best case is to find a way to prevent this from happening. Alternatively, may I suggest some guidance in the documentation about preventing first-run errors? |
! is a reserved character in cmd that wraps a delayed expansion variable name. It is not a good practice to use ! in a file path. |
OK, I will know for the future, but certainly this should be documented... |
@ethanpil Yeah, it's in most documentation regarding batch scripting since Windows 2000. |
Please see issue #1039
I just downloaded a new copy of the latest dev build (cmdr.7z) and I am having the same / similar issue as that thread. I didn't touch any files, just extracted to a folder and ran cmdr.exe
Reading the #1039 thread, I downloaded
https://github.com/cmderdev/cmder/blob/master/vendor/user-aliases.cmd.example
into my local\cmdr\vendor
and now everything works as expected. This file is definitely missing in the dev current build.The text was updated successfully, but these errors were encountered: