brackets-archive / bracketsIssues

Archive of issues in brackets.
0 stars 0 forks source link

[CLOSED] Windows: setup_for_hacking.bat has confusing output #2352

Open core-ai-bot opened 2 years ago

core-ai-bot commented 2 years ago

Issue by joelrbrandt Wednesday Jan 02, 2013 at 21:21 GMT Originally opened as https://github.com/adobe/brackets/issues/2468


When a user first runs setup_for_hacking.bat on Windows, they receive confusing output. Assuming they do not already have a 'dev' symlink, they get a message that says "The system cannot find the file specified."

The offending code is:

REM - Remove existing 'dev' directory (if present)
rmdir %1\dev

Typical "correct" input/output is:

C:\Users\labuser\development>brackets\tools\setup_for_hacking.bat "C:\Users\labuser\development\brackets-shell-too\Release"
The system cannot find the file specified.
symbolic link created for C:\Users\labuser\development\brackets-shell-too\Release\dev <<===>> C:\Users\labuser\development\brackets\

The fix is probably to check if %1\dev exists and only remove it if it does.

core-ai-bot commented 2 years ago

Comment by joelrbrandt Wednesday Jan 02, 2013 at 21:22 GMT


http://stackoverflow.com/questions/4340350/how-to-check-if-a-file-exists-from-inside-a-batch-file

core-ai-bot commented 2 years ago

Comment by joelrbrandt Thursday Jan 03, 2013 at 01:52 GMT


Confirming fixed and closing. Thanks@gruehle