Having trouble changing the compile command
Having trouble changing the compile command
I have a workspace for Ruby and a hello_world.rb file. I want to execute it with Compiler->Compile. But I am unable to change the Compiler->Options->Command from the default of "compile $fn". I change "compile" to "ruby" and press the Apply and OK buttons but when I go to compile it is still set to "compile $fn". This repeats.
Re: Having trouble changing the compile command
To understand what is going on consider a workspace containing the one hello_world.rb file as shown below:
When the file is compiled the workspace compiler details are used and this is indicated by the compiler output shown below: Now if no workspace was open, there would be only one compiler defined for the hello_world.rb file, the one found in the document type.
In this case when the file is compiled those document type compiler details are used as shown below: In summary, this is the behaviour:
The workspace compiler details defines a compiler command line as shown below:
The Ruby document type also defines a compiler command line as shown below:
With this arrangement there are two compilers defined for that hello_world.rb file, one found in the workspace and one in the document type.When the file is compiled the workspace compiler details are used and this is indicated by the compiler output shown below: Now if no workspace was open, there would be only one compiler defined for the hello_world.rb file, the one found in the document type.
In this case when the file is compiled those document type compiler details are used as shown below: In summary, this is the behaviour:
- When there are multiple choices for the compiler, the workspace compiler options take a higher precedence.
- Details of the chosen compiler are displayed in the compiler output.
- To stop the workspace compiler from being used just remove those compiler details from the workspace and the document type details will then be used.
- If the file being compiled is not in the workspace, then the document type details will be use.
Re: Having trouble changing the compile command
Thanks for the reply. I have a few issues.
First Issue: I installed Zeusedit on a new machine with Windows 11. I looked to see if the license allowed more than one machine and I found a forum post saying it did, but that was back in 2004.
Second Issue: When I was installing it I was given a default installation directory path that was under my user directory rather than c:\Program Files . I wasn't familiar with installing software in my user space so I chose to install it in c:\Program Files (may uninstall and go with default). It warned me about administrator rights for the Microsoft runtime but I ran it as administrator and it appeared to go OK. However, when I started the program for the first time I got an error dialog. I believe it was saying it couldn't read something but unfortunately I did not take a screen print or write it down. I exited and restarted to see it and it has not appeared since that first execution.
Third Issue: Document types. I have none. The directory zConfig has files, but there are no document types displayed in Options->Document Types.
First Issue: I installed Zeusedit on a new machine with Windows 11. I looked to see if the license allowed more than one machine and I found a forum post saying it did, but that was back in 2004.
Second Issue: When I was installing it I was given a default installation directory path that was under my user directory rather than c:\Program Files . I wasn't familiar with installing software in my user space so I chose to install it in c:\Program Files (may uninstall and go with default). It warned me about administrator rights for the Microsoft runtime but I ran it as administrator and it appeared to go OK. However, when I started the program for the first time I got an error dialog. I believe it was saying it couldn't read something but unfortunately I did not take a screen print or write it down. I exited and restarted to see it and it has not appeared since that first execution.
Third Issue: Document types. I have none. The directory zConfig has files, but there are no document types displayed in Options->Document Types.
Re: Having trouble changing the compile command
That still applies, you only need one license per user.I looked to see if the license allowed more than one machine and I found a forum post saying it did, but that was back in 2004.
This definitely will cause issues as that folder is protected by Microsoft, hence the reason you need admin rights to install the software at that location.It warned me about administrator rights for the Microsoft runtime but I ran it as administrator and it appeared to go OK.
So when you run the installer with admin rights the installer gets elevated permission to run that install.
However, after installation, when you run Zeus it has normal user rights and that means Zeus does not have write access to that folder.
That would have been because of the write protection on that folder.However, when I started the program for the first time I got an error dialog.
Those files where put there by the installer, but they are not really in the correct location because that folder is write protected.The directory zConfig has files, but there are no document types displayed in Options->Document Types.
This is what I think is happening.
Because Zeus knows it can't access the zConfig folder found in the Program Files location it looks for a place where is does have write access.
You can find that location of that folder by running this using the Tools, DOS Command Line menu and running this command:
Code: Select all
Arguments: dir
Directory: $zud
Code: Select all
C:\Users\<UserId>\AppData\Local\Programs\Zeus (x64)
What you can do is move that zConfig folder to that location.

I would also use the Macros, Load menu to see if the zScript folder is also located in that writable user folder. I suspect it is, in which case just move the zScript files there as well.

Cheers jussi