Unexpected error opening the information file.

If reporting a bug with the Zeus IDE please post the details here. Please do not post questions here.
Post Reply
petar12345
Posts: 26
Joined: Tue May 08, 2007 7:05 pm

Unexpected error opening the information file.

Post by petar12345 »

Please Help Me.

This error ocure many times:

Unexpected error opening the 'c:\MyD\MyPetar\MyD\MyPetar\WinScript\WinScript.zpi' information file.

1. Analysis:
1.1. Zeus editor was opened in some other workspace.
1.2. In windows explorer I was open folder c:\MyD\MyPetar\WinScript
1.3. With mouse double click on WinScript.zwi
1.4. Zeus editor is in WinScript workspace, only one and active project is WinScript
Note: In folder: c:\MyD\MyPetar\WinScript\ are both files: WinScript.zwi and WinScript.zpi
1.5. After action: Remove file from project or Ad current file to project.
the error ocure.

1.6. In WinScript.zwi
good one line :
<Project name="WinScript">WinScript.zpi</Project>
was changed and look like this:
<Project name="WinScript">..\MyD\MyPetar\MyD\MyPetar\WinScript\WinScript.zpi</Project>

1.7. In C:\Program Files\Zeus\Zeus.ini
At least one line with good path:
Workspace File=C:\MyD\MyPetar\ZeuScript\ZeuScript.zwi
LastDirectory=C:\MyD\MyPetar\WinScript\
0=C:\MyD\MyPetar\ZeuScript\ZeuScript.zwi
was changed and it looks like this:
Workspace File=C:/MyD/MyPetar/WinScript/ZeuScript.zwi
LastDirectory=C:/MyD/MyPetar/WinScript/
0=C:/MyD/MyPetar/WinScript/ZeuScript.zwi

1.8. My solution for corect error:
1. Close Zeus editor.
2. In zeus.ini (with windows notepad editor) I correct all lines
with bad path
3. In WinScript.zwi (with windows notepad editor) I correct
Project line like this:
<Project name="WinScript">WinScript.zpi</Project>
4. Double click on WinScript.zwi and Zeus work fine
untill I repeat actions from 1.2 to 1.5 with some other file.zwi
1.9. My solution for that does not happen error:
First, I close zeus. Then, with double click, open other file.zwi.

I work on lap top hp compaq nc6120, XP Professional, Service Pack 3,
Regional setings: Croatian
Keyboard: Croatian - Croatian.
Language for non-Unicode program: Croatian
In Zeus editor option -> Font: Courier New CE.

I was have Zeus 3.97 Beta A. It make same error.
Since yesterday, i have Zeus 3.97c. And same error ocure.
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

1.3. With mouse double click on WinScript.zwi
1.4. Zeus editor is in WinScript workspace, only one and active project is WinScript
Note: In folder: c:\MyD\MyPetar\WinScript\ are both files: WinScript.zwi and WinScript.zpi
1.5. After action: Remove file from project or Ad current file to project.
the error occur.

This to me looks like the problem.

If you have the workspace open in Zeus and then you start to hand editing the same project/workspace files inside Zeus then this is always going to cause problems :!:
1.8. My solution for correct error:
1. Close Zeus editor.

I would have though you could have made the changes with out having to close Zeus :?

This approach should also work just fine:

(1) Close the current workspace using the Workspace, Close menu.

(2) Then complete all your editing steps after 1.2..

(3) Now re-open the workspace using the Workspace History menu.

But if after step (3) you get the Unexpected error opening the 'c:\MyD\MyPetar\MyD\MyPetar\WinScript\WinScript.zpi' information file. then it means you have not edited the XML file correctly and have corrupted the workspace of project file.

Cheers Jussi
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

1.7. In C:\Program Files\Zeus\Zeus.ini

The Zeus.ini file just saves details about the previous editing session.

If this file is causing problems the best thing to do is just delete it and then Zeus will just recreate it ;)

Cheers Jussi
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

1.6. In WinScript.zwi was changed and look like this:
<Project name="WinScript">..\MyD\MyPetar\MyD\MyPetar\WinScript\WinScript.zpi</Project>

If Zeus wrote this Project line then there is definitely something very wrong with your version of Zeus and I would strongly recommend moving to the latest version.

I use Workspaces all the time and I can't remember ever seeing this sort of issue :?

Cheers Jussi
petar12345
Posts: 26
Joined: Tue May 08, 2007 7:05 pm

Post by petar12345 »

1. I never edit project or workspace file with Zeus editor.
2. I have workspace for edit windows script files .vbs
to run using the Windows-based script host (Wscript.exe).
path is:
C:\MyD\MyPetar\WinScript

3. WinScript.zwi
WinScript.zpi
WinScript.ini

are in that folder (C:\MyD\MyPetar\WinScript)

4. Zeus write wrong path in WinScript.zwi file.
5. Zeus write wrong paths in Zeus.ini file.

6. Description:

6.1. I open Zeus with double click on file WinScript.zwi.
6.2. If zeus was closed before step 6.1 and if I close Zeus
after my all work in WinScript workspace, everything is ok.
Both files WinScript.zwi i Zeus.ini are ok.

Note: WinScript.zpi is always ok. In WinScript.zpi never ocure error.

6.3. If zeus was opened in other workspace before step 6.1
and I only edit files and close Zeus. everything is ok.


6.3. If zeus was opened in other workspace before step 6.1
and I add or remove some file or folder from project WinScript
error ocure.

Note: I add or remove file or folder with right click in
Zeus -> navigator -> workspace -> some file or folder,
and in popup menu choose: Add curent file to folder,
remove file from project or remove folder from project.

7. Then Zeus make changes in WinScript.zpi correctly.
WinScript.zpi is always ok.

8. When Zeus tray refresh workspace in navigator error ocure.
In navigator workspace is not project. In it is error massage

Unexpected error opening the
'..\MyD\MyPetar\MyD\MyPetar\WinScript\WinScript.zpi'
information file.

Conclusion:
Zeus was have correct path for WinScript.zpi because he make correct
changes in WinScript.zpi. Before refreshing navigator workspace, zeus
change path in wrong one. With wrong path he can not find WinScript.zpi
and show message in nawigator "Unexpected error...".
This wrong path zeus write in WinScript.zwi.

At the same time, zeus cgange one or more path in zeus.ini file.
Wrong path in zeus.ini look like internet adrress. They have
character "/" instead of "\"
Workspace File=C:/MyD/MyPetar/WinScript/WinScript.zwi
LastDirectory= File=C:/MyD/MyPetar/WinScript
[Projects MRU]
0=C:/MyD/MyPetar/WinScript/WinScript.zwi

9. If I don't corect path in zeus.ini, next time when I open some other
workspace, zeus will make same error in this workspace.

10. If I don't corect path in WinScript.zwi, Zeus never can
open project file for this workspace.


11. Same error ocure with Zeus 3.97 beta A, and naw I have Zeus 3.97c
since 2 days ago.
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

6.1. I open Zeus with double click on file WinScript.zwi.

How do you do this :?:

The Zeus installer does not an association for the zwi file.

What happens if you DO NOT use the double click but use the Workspace, Open menu instide of Zeus :?:

Cheers Jussi
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

I created a the following project file/folder project structure:
Directory of c:\myd

06/09/2010 17:06 <DIR> .
06/09/2010 17:06 <DIR> ..
06/09/2010 17:07 <DIR> MyPetar

Directory of c:\myd\MyPetar

06/09/2010 17:07 <DIR> .
06/09/2010 17:07 <DIR> ..
06/09/2010 17:05 <DIR> WinScript
06/09/2010 17:08 756 WinScript.ini
06/09/2010 17:07 3,682 WinScript.zpi
06/09/2010 17:07 248 WinScript.zwi
3 File(s) 4,686 bytes

Directory of c:\myd\MyPetar\WinScript

06/09/2010 17:05 <DIR> .
06/09/2010 17:05 <DIR> ..
06/09/2010 17:05 10 a.vbs
06/09/2010 17:05 10 b.vbs
06/09/2010 17:05 10 c.vbs
06/09/2010 17:05 10 d.vbs
I then created a new workspace shown below:
<!-- Workspace file for the Zeus for Windows IDE - http://www.zeusedit.com -->
<Workspace name="WinScript" sorted="Yes">
<Mode>Debug</Mode>
<Active>WinScript</Active>
<Project name="WinScript">WinScript.zpi</Project>
</Workspace>
which contained the following project file:
<!-- Project file for the Zeus for Windows IDE - http://www.zeusedit.com -->
<Project name="WinScript" sorted="Yes">
<Folder name="WinScript" sorted="Yes">
<File>WinScript\a.vbs</File>
<File>WinScript\b.vbs</File>
<File>WinScript\c.vbs</File>
</Folder>
</Project>
I then added this registry entry:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\ZeusWorkspace]
@="Xidicone Zeus Workspace"
"EditFlags"=hex:00,00,00,00

[HKEY_CLASSES_ROOT\ZeusWorkspace\shell]

[HKEY_CLASSES_ROOT\ZeusWorkspace\shell\open]

[HKEY_CLASSES_ROOT\ZeusWorkspace\shell\open\command]
@="\"C:\\Program Files\\Zeus\\zeus.exe\" -s -w\"%1\""
and associated it to the zwi files using this registry entry:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.zwi]
@="ZeusWorkspace"
This meant I could now double click on a zwi file in the explorer window and have it open in a new instance of Zeus.

Now no matter how many times I double click on a zwi file or how many times I add/remove files to/from the project I am not able to replicate the error you describe :(

Cheers Jussi
petar12345
Posts: 26
Joined: Tue May 08, 2007 7:05 pm

Post by petar12345 »

We are much closer now.
I use windows to open zeus in unexpected way.

Since 2 or more years ago I add association .Zwi with Zeus in
(Windows explorer)->Tools->Folder options.
Problem probably there since then.
Ok.

I have now in windows those setings:
1. In windows explorer, folder option, files types I have
4 association with zwi:
"Edit with notepad"
"Edit with ZEUS"
"Open in existing zeus session" - (bold - default)
"Open in new zeus session"
In pop-up window:
Editing action for type:
1.1.
Action: "Edit with notepad"

Application used to perform action:
"notepad.exe" %1

{"Yes"} Use DDE
DDE Message: ""
Aplication: "notepad"
DDE Aplication Not Running: ""
Topic: "System"
1.2.
Action: "Edit with ZEUS"

Application used to perform action:
"C:\Program Files\Zeus\zeus.exe" "%1"

{"Yes"} Use DDE
DDE Message: ""
Aplication: "zeus"
DDE Aplication Not Running: ""
Topic: "System"
1.3
Action: "Open in existing zeus session"

Application used to perform action:
"C:\Program Files\Zeus\zeus.exe" -w "%1" "%2" "%3" "%4"

{"Yes"} Use DDE
DDE Message: ""
Aplication: "zeus"
DDE Aplication Not Running: ""
Topic: "System"
1.4
Action: "Open in new zeus session"

Application used to perform action:
"C:\Program Files\Zeus\zeus.exe" -s -w "%1" "%2" "%3" "%4"

{"Yes"} Use DDE
DDE Message: ""
Aplication: "zeus"
DDE Aplication Not Running: ""
Topic: "System"

2. In windows registry for zwi files I have:

2.1.
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.ZWI]
@="ZWI_auto_file"
2.2
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\ZWI_auto_file]
@=""
"EditFlags"=dword:00000000
"BrowserFlags"=dword:00000008

[HKEY_CLASSES_ROOT\ZWI_auto_file\DefaultIcon]
@="C:\\Program Files\\Zeus\\zeus.exe,0"

[HKEY_CLASSES_ROOT\ZWI_auto_file\shell]
@="open"

[HKEY_CLASSES_ROOT\ZWI_auto_file\shell\EDIT]
@="Edit with ZEUS"

[HKEY_CLASSES_ROOT\ZWI_auto_file\shell\EDIT\command]
@="\"C:\\Program Files\\Zeus\\zeus.exe\" %1"

[HKEY_CLASSES_ROOT\ZWI_auto_file\shell\EDIT\ddeexec]

[HKEY_CLASSES_ROOT\ZWI_auto_file\shell\EDIT\ddeexec\Application]
@="zeus"

[HKEY_CLASSES_ROOT\ZWI_auto_file\shell\EDIT\ddeexec\Topic]
@="System"

[HKEY_CLASSES_ROOT\ZWI_auto_file\shell\Edit_with_notepad]
@="Edit with notepad"

[HKEY_CLASSES_ROOT\ZWI_auto_file\shell\Edit_with_notepad\command]
@="\"notepad.exe\" %1"

[HKEY_CLASSES_ROOT\ZWI_auto_file\shell\open]
@="Open in existing zeus session"

[HKEY_CLASSES_ROOT\ZWI_auto_file\shell\open\command]
@="\"C:\\Program Files\\Zeus\\zeus.exe\" -w \"%1\" \"%2\" \"%3\" \"%4\""

[HKEY_CLASSES_ROOT\ZWI_auto_file\shell\open\ddeexec]

[HKEY_CLASSES_ROOT\ZWI_auto_file\shell\open\ddeexec\Application]
@="zeus"

[HKEY_CLASSES_ROOT\ZWI_auto_file\shell\open\ddeexec\Topic]
@="System"

[HKEY_CLASSES_ROOT\ZWI_auto_file\shell\Open_new_zeus]
@="Open in new zeus session"

[HKEY_CLASSES_ROOT\ZWI_auto_file\shell\Open_new_zeus\command]
@="\"C:\\Program Files\\Zeus\\zeus.exe\" -s -w \"%1\" \"%2\" \"%3\" \"%4\""
3. On desk top I have folder "Zeus workspaces".
In it are shortcats. All this shortcats I make
in windows explorer with:
- copy file: fullpath\name1.zwi
- paste sortcat in folder "Zeus workspaces"

Example shortcat:
Target type: "ZWI File"
Target location: "BLA"
Name: "A3_Bla.zwi"
Target: "I:\A3\BLA\A3_BLA.ZWI"
start in: "I:\A3\BLA"
Now I can launch Zeus:
1. double click on "Zeus for Windows" Icon on my desktop.
2. In folder on my desktop "Zeus workspaces" double click
on one shortcat.

3. navigate with windows explorer in folder where is name1.zwi file.
Double click on name1.zwi.


4. In windows registry for clipper prg files:

4.1.
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.prg]
@="PRG_auto_file"

[HKEY_CLASSES_ROOT\.prg\ShellNew]
"NullFile"=""
4.2.
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\PRG_auto_file]
@="Program"
"EditFlags"=dword:00000000
"BrowserFlags"=dword:00000008

[HKEY_CLASSES_ROOT\PRG_auto_file\shell]
@="open"

[HKEY_CLASSES_ROOT\PRG_auto_file\shell\open]

[HKEY_CLASSES_ROOT\PRG_auto_file\shell\open\command]
@="\"C:\\Program Files\\Zeus\\zeus.exe\" \"%1\""

I can see differences between windows registry on my PC a and Your's example.
Probably, I must make changes in windows registry.

Please. Can you make file:
zwiassoc.req with all registry key's that I need for zwi files.
prgassoc.req with all registry key's that I need for clipper prg files.
Can You Send to me mail with files in attachments.
My e-mail is: petar.turkovic@vz.t-com.hr..
If you have any other sugestion for me, please send it to me.

Thank You in advance.
petar12345
Posts: 26
Joined: Tue May 08, 2007 7:05 pm

Post by petar12345 »

Again it was a nice summer in Croatia.
I live in Varazdin, Croatia, on the country side.
Varazdin is old baroque city. In summer we have event which called Spancir fest (20-29 August).

Nice greetings from Varazdin, Croatia. :D
Last edited by petar12345 on Wed Sep 08, 2010 6:09 pm, edited 2 times in total.
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

Hi Petar,

Thanks for the very nice pictures. It looks great in Croatia :)

I will look at you registry setting and see if I can replicate the issue :)

Cheers Jussi
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

Hi Petar,

I have managed to replicated this error :)

If I don't use the -s (run second Zeus) option I get the error:
"C:\Program Files\Zeus\zeus.exe" -w "%1" "%2" "%3" "%4"
But if I use the -s option the error goes away:
"C:\Program Files\Zeus\zeus.exe" -s -w "%1" "%2" "%3" "%4"
This should mean a fix will be ready for the next release ;)

Cheers Jussi
petar12345
Posts: 26
Joined: Tue May 08, 2007 7:05 pm

Post by petar12345 »

Ok. I am waithing. :(
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

The workaround to this issue would be to add the -s option to the registry command line entry so that the workspace file is loaded in a new, second instance of Zeus ;)

Cheers Jussi
Post Reply