Hi,
I have got zeus 3.96m (trial) and I wanted to replace the DOS shell. (cmd.exe whith powershell (the new msh)).
http://www.microsoft.com/technet/script ... load2.mspx
I used COMSPEC variable to set it.
As OS I use vista enterprise
Now the problems
1. Tools->DOS Shell dies immediately after lunch
I have digged and the problem is the /k option. necessary for dos but not for msh.
2. xtags
with powershell as shell xtags will not run.
The error is "Unexpected Error Spawning xTags Executable"
I have checked and xtags is in the path.
I have suspected something wrong with the installation and I have tested xtags by hand
If I run the command in powershell
PS C:\Users\Alin M Elena\testZeus> xtags --c-types=+fp --excmd=p --fields=+afmikKlnsSz --sort=no -f test.f90.tag test.f90
xtags.exe: Warning: invalid character range
xtags.exe: Warning: invalid character range
xtags.exe: Warning: invalid character range
xtags.exe: Warning: invalid character range
xtags.exe: Warning: invalid character range
xtags.exe: Unknown option: --
are there any other variables to set other than PATH? LIB etc?
3. Should I be worried that xtags uses --c-types on a fortran file?
Alin
Replacing the DOS Shell
-
- Posts: 3
- Joined: Tue Jan 08, 2008 10:35 am
Hi Alin,


But it should be possible to change Zeus to run the xtags.exe directly which might fix the problem


I'm not sure why these invalid character range and unknown option messages are getting generated since these are just ctags command line options, for example:
In the Zeus install directory there is an xtags.ini file. You can edit this file to change the xtags.exe command line 
Cheers Jussi
I will fix this so the /k option is only used for the cmd.exe command processor1. Tools->DOS Shell dies immediately after lunch I have digged and the problem is the /k option. necessary for dos but not for msh.

The xtags.exe is running being run via the cmd.exe command processor and this might be why it is not running2. xtags with powershell as shell xtags will not run.

But it should be possible to change Zeus to run the xtags.exe directly which might fix the problem

I don't think you even need to set these. Zeus will find always find xtags.exe since it looks in the Zeus install directoryAre there any other variables to set other than PATH? LIB etc?

What the test.f90.tag tags file createIf I run the command in powershell
PS C:\Users\Alin M Elena\testZeus>xtags --c-types=+fp --excmd=p --fields=+afmikKlnsSz --sort=no -f test.f90.tag test.f90
xtags.exe: Warning: invalid character range
xtags.exe: Warning: invalid character range
xtags.exe: Warning: invalid character range
xtags.exe: Warning: invalid character range
xtags.exe: Warning: invalid character range
xtags.exe: Unknown option: --

I'm not sure why these invalid character range and unknown option messages are getting generated since these are just ctags command line options, for example:
Code: Select all
C:\Users\Alin M Elena\testZeus>xtags -?

Probably not. This option is described by ctags as follows:3. Should I be worried that xtags uses --c-types on a fortran file?
So it will only ever be triggered for C files.--<LANG>-kinds=[+|-]kinds
Enable/disable tag kinds for language <LANG>.
Cheers Jussi
-
- Posts: 3
- Joined: Tue Jan 08, 2008 10:35 am
Hi Jussi,
if i run
the file gets created
it seems that it does not like --options
I have checked and the warning appears in cmd.exe, too but not the error.
Alin
NoWhat the test.f90.tag tags file create
if i run
Code: Select all
xtags -N -u -f test.f90.tag test.f90
it seems that it does not like --options
I have checked and the warning appears in cmd.exe, too but not the error.
Alin
-
- Posts: 3
- Joined: Tue Jan 08, 2008 10:35 am
Hi Jussi,
it seems that the parameters get passed in a strange way to the program in msh
the solution to the problem is to quote each parameter.
so xtags.ini becomes
from
Alin
it seems that the parameters get passed in a strange way to the program in msh
Code: Select all
./ctags --c-types=+fp --excmd=p --fields=+afmikKlnsSz --sort=no -f test.f90.tag test.f90
arg 0 C:\Users\Alin M Elena\ctags\ctags.exe
arg 1 c-types=+fp
arg 2 --
arg 3 excmd=p
arg 4 --
arg 5 fields=+afmikKlnsSz
arg 6 --
arg 7 sort=no
arg 8 -f
arg 9 test.f90.tag
arg 10 test.f90
so xtags.ini becomes
Code: Select all
[xTags]
Arguments=\"--c-types=+fp\" \"--excmd=p\" \"--fields=+afmikKlnsSz\" \"--sort=no\"
Code: Select all
[xTags]
Arguments=--c-types=+fp --excmd=p --fields=+afmikKlnsSz --sort=no