Page 1 of 1
zeus 3.97i open file from cmdline bug
Posted: Mon Mar 19, 2012 10:33 pm
by gwgs
Since the upgrade when i open a file from the cmdline, it opens a blank version of the file. If I open the file with the open dialog it opens correctly
Grant
Posted: Mon Mar 19, 2012 10:36 pm
by gwgs
seems to be trying to open up the filenames passed in as if they're located in the root of C: drive, not the current directory where zeus was called from.
so I get C:\test.py instead of d:\source\test.py
Posted: Mon Mar 19, 2012 11:09 pm
by gwgs
also not opening files if wildcard in filename specified
Posted: Mon Mar 19, 2012 11:24 pm
by gwgs
backup files also get written to C:\ even if you provide the path\filename from the cmdline
Posted: Tue Mar 20, 2012 7:23 am
by jussij
The command line parsing code was changed to fix a bug reported by another Zeus user. That change introduced this new bug
This bug should be fixed in this beta:
http://www.zeusedit.com/z300/ze397j-beta.zip
Cheers Jussi
Posted: Tue Mar 20, 2012 8:11 pm
by gwgs
Problem still occurring
Grant
Posted: Wed Mar 21, 2012 2:14 am
by gwgs
more information, if you start zeus from the cmdline it gets the filename/path incorrect.
if you call zeus from the cmdline when it is already open, it will open the file correctly
eg:
zeus test.py
doesn't work
zeus
zeus test.py
does work
Posted: Wed Mar 21, 2012 3:53 am
by jussij
It is working fine at this end. Make sure you are in fact running the latest beta version.
For example a
dir g*.txt of the
c:\temp folder results in this output:
Code: Select all
---------------------------------------------------------------------------
Zeus for Windows Programmers Editor - Version 3.97j - beta
Copyright (c) Xidicone P/L 1993-2012. All rights reserved.
---------------------------------------------------------------------------
Volume in drive C has no label.
Volume Serial Number is D8DC-6971
Directory of C:\temp
13/08/2011 08:20 PM 1,112 gm.txt
25/01/2012 08:11 PM 4,275 good.txt
2 File(s) 5,387 bytes
0 Dir(s) 2,459,774,976 bytes free
At the c:\temp folder command line prompt this command:
works with or without Zeus running.
Cheers Jussi
Posted: Wed Mar 21, 2012 9:11 am
by gwgs
Definitely v3.97j beta.
New info:
It works for anything opened on C: drive, but not for files opened on any other drive
eg:
C:\python27\readme.txt works
D:\pythonsource\readme.txt doesn't, just opens a blank file of C:\readme.txt
Hope this helps
Grant
Posted: Thu Mar 22, 2012 4:28 am
by jussij
This bug should be fixed in the latest beta:
http://www.zeusedit.com/zforum/viewforum.php?f=6
Cheers Jussi
Posted: Thu Mar 22, 2012 7:38 am
by gwgs
Yup that worked. Thanks Jussi