zeus 3.97i open file from cmdline bug

If reporting a bug with the Zeus IDE please post the details here. Please do not post questions here.
Post Reply
gwgs
Posts: 87
Joined: Tue Nov 21, 2006 6:30 pm
Location: Auckland

zeus 3.97i open file from cmdline bug

Post 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
gwgs
Posts: 87
Joined: Tue Nov 21, 2006 6:30 pm
Location: Auckland

Post 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
gwgs
Posts: 87
Joined: Tue Nov 21, 2006 6:30 pm
Location: Auckland

Post by gwgs »

also not opening files if wildcard in filename specified
gwgs
Posts: 87
Joined: Tue Nov 21, 2006 6:30 pm
Location: Auckland

Post by gwgs »

backup files also get written to C:\ even if you provide the path\filename from the cmdline
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post 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
gwgs
Posts: 87
Joined: Tue Nov 21, 2006 6:30 pm
Location: Auckland

Post by gwgs »

Problem still occurring :(

Grant
gwgs
Posts: 87
Joined: Tue Nov 21, 2006 6:30 pm
Location: Auckland

Post 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
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post 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:

Code: Select all

C:\temp>zeus good.txt
works with or without Zeus running.

Cheers Jussi
gwgs
Posts: 87
Joined: Tue Nov 21, 2006 6:30 pm
Location: Auckland

Post 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
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

This bug should be fixed in the latest beta: http://www.zeusedit.com/zforum/viewforum.php?f=6

Cheers Jussi
Last edited by jussij on Mon Apr 02, 2012 10:54 pm, edited 1 time in total.
gwgs
Posts: 87
Joined: Tue Nov 21, 2006 6:30 pm
Location: Auckland

Post by gwgs »

Yup that worked. Thanks Jussi
Post Reply