xemacs vhdl mode goto error

T

Thomas Fischer

Guest
hello, I need some help with xemacs
I use windows binary of xemacs 21.4.19 with vhdl-mode 3.33.13.
when i compile a vhdl file, i get error messages, but how can i move
to the error in the source file.
when i try right-click->compile->next error, nothing happens.
also the key combination "C-x `", how do I enter this combination on
a german keyboard.
following are the compilation messages:

cd c:\temp\b3dcr01\test\
vcom -93 -work work C:\temp\b3dcr01\test\src\b3dcr01.vhd
Model Technology ModelSim ALTERA vcom 6.1d Compiler 2006.01 Jan 23 2006
-- Loading package standard
-- Loading package std_logic_1164
-- Loading package numeric_std
-- Compiling entity b3dcr01
** Error: C:\temp\b3dcr01\test\src\b3dcr01.vhd(11): (vcom-1136) Unknown
identifier "n".
** Error: C:\temp\b3dcr01\test\src\b3dcr01.vhd(11): (vcom-1136) Unknown
identifier "i".
** Error: C:\temp\b3dcr01\test\src\b3dcr01.vhd(11): near "std_logic":
expecting: ')' ';'

Compilation exited abnormally with code 2 at Sun Aug 20 16:43:53
thanks
 
Thomas Fischer wrote:
I use windows binary of xemacs 21.4.19 with vhdl-mode 3.33.13.
when i compile a vhdl file, i get error messages, but how can i move
to the error in the source file.
The command is "next-error"
I have it bound to a function key.
But whenever Modelsim changes error formats, I have to
fix the Regexp to match in vhdl,options,compiler.
Note that you can read the vcom messages and line numbers
in the compilation buffer.

when i try right-click->compile->next error, nothing happens.
also the key combination "C-x `", how do I enter this combination on
a german keyboard.
don't know. check
see:http://groups.google.com/group/comp.emacs.xemacs

following are the compilation messages:
It looks like you are generating makefiles and running
make and vcom ok. Thats 90% of the battle. Good luck.

-- Mike Treseler
 
Mike Treseler schrieb:
Thomas Fischer wrote:
I use windows binary of xemacs 21.4.19 with vhdl-mode 3.33.13.
when i compile a vhdl file, i get error messages, but how can i move
to the error in the source file.

The command is "next-error"
I have it bound to a function key.
But whenever Modelsim changes error formats, I have to
fix the Regexp to match in vhdl,options,compiler.
Note that you can read the vcom messages and line numbers
in the compilation buffer.

when i try right-click->compile->next error, nothing happens.
also the key combination "C-x `", how do I enter this combination on
a german keyboard.

don't know. check
see:http://groups.google.com/group/comp.emacs.xemacs

following are the compilation messages:

It looks like you are generating makefiles and running
make and vcom ok. Thats 90% of the battle. Good luck.

-- Mike Treseler
thanks
"battle" is the right word...

i'm not an expert in regex, perhaps someone can help me to setup
the regex correctly.

1:
do i have to enable menu "Options->Compiler->"Use Local Error Regex" ?

2:
I found the regex in buffer Options->Compiler->Compiler Setup:

\(ERROR\|WARNING\|\*\* Error\|\*\* Warning\)[^:]*:( *[[0-9]+])?
\(.+\)(\([0-9]+\)):

I do not know the error message from former modelsim vcom,
therefore it's difficult for me to detect what's wrong.
I've downloaded regex coach but I still have problems to determine the
values for
File subexp index: 3
Line subexp idx: 4

thanks
 
Thomas Fischer wrote:

perhaps someone can help me to setup
the regex correctly.
That's off-topic here.
Try an emacs group or google for a tutorial.

I do not know the error message from former modelsim vcom,
therefore it's difficult for me to detect what's wrong.
error messages go to the compilation buffer
or just run vcom from cmd, bash, or the vsim GUI
until you have it solved.

-- Mike Treseler
 
Thomas Fischer wrote:

I found the regex in buffer Options->Compiler->Compiler Setup:
\(ERROR\|WARNING\|\*\* Error\|\*\* Warning\)[^:]*:( *[[0-9]+])?\(.+\)(\([0-9]+\)):
Here's mine:
\(\*\*.Error\|Warning\)[^:]*: \(.+\)(\([0-9]+\)):
 
Thomas Fischer wrote:

)?
\(.+\)(\([0-9]+\)):
There is indeed a bug in the regexp above. It should be:

\(ERROR\|WARNING\|\*\* Error\|\*\* Warning\)[^:]*:\( *[[0-9]+]\)?
\(.+\)(\([0-9]+\)):

(two parenthesis "(" and ")" need to be escaped as "\(" and "\)".)
I've also fixed it in version 3.33.14 at

http://www.iis.ee.ethz.ch/~zimmi/emacs/vhdl-mode.html

Reto
 
thanks for your replies,
unfortunately i did not get it running with your regex,
i think it's a problem with the binary xemacs version for windows.
( i also tried a cygwin version of xemacs, but there is a problem with
the path)

if someone uses this version on windows with vhdl mode successfully , he
may help me,
otherwise i will try another editor.
thanks a lot.


lower is the description of the problem

i downloaded:
http://ftp.xemacs.org/xemacs/binaries/win32/InnoSetup/XEmacs Setup
21.4.19.exe
i downloaded:
http://www.iis.ee.ethz.ch/~zimmi/emacs/vhdl-mode-3.33.14.zip
extracted vhdl-mode-3.33.14.zip
copied and renamed it to C:\Programme\XEmacs\xemacs-packages\lisp\vhdl-mode

when I compile buffer i get the following errors

cd c:\temp\b3dcr01\test\
vcom -93 -work work C:\temp\b3dcr01\test\src\b3dcr01.vhd
Model Technology ModelSim ALTERA vcom 6.1d Compiler 2006.01 Jan 23 2006
-- Loading package standard
-- Loading package std_logic_1164
-- Loading package numeric_std
-- Compiling entity b3dcr01
** Error: C:\temp\b3dcr01\test\src\b3dcr01.vhd(11): (vcom-1136) Unknown
identifier "n".
** Error: C:\temp\b3dcr01\test\src\b3dcr01.vhd(11): (vcom-1136) Unknown
identifier "i".
** Error: C:\temp\b3dcr01\test\src\b3dcr01.vhd(11): near "std_logic":
expecting: ')' ';'

Compilation exited abnormally with code 2 at Mon Aug 21 13:25:39

when I use right click->compile->First Error

File Dialog pops up with
Find This Error in:(Default Cd C:\Temp\B3dcr01\Test\ Vcom -93 -Work Work
C:\Temp\B3dcr01\Test\Src\B3dcr01.vhd
Model Technologgy Modelsim Altera Vcom 6.1d.......
when i close this dialog compilation buffer changes to

** Error: C:\temp\b3dcr01\test\src\b3dcr01.vhd(11): (vcom-1136) Unknown
identifier "n".
** Error: C:\temp\b3dcr01\test\src\b3dcr01.vhd(11): (vcom-1136) Unknown
identifier "i".
** Error: C:\temp\b3dcr01\test\src\b3dcr01.vhd(11): near "std_logic":
expecting: ')' ';'

and the first line light's up green when i move with the mouse over
this line
when i press middle button of the mouse, again same file dialog pops up
 
Thomas Fischer wrote:
thanks for your replies,
unfortunately i did not get it running with your regex,
i think it's a problem with the binary xemacs version for windows.
( i also tried a cygwin version of xemacs, but there is a problem with
the path)
As far as I know XEmacs has a different compile.el version than FSF
Emacs. Maybe the problem lies there. I only tested vhdl-mode
extensively with FSF Emacs.

Reto
 
Reto Zimmermann schrieb:
Thomas Fischer wrote:
thanks for your replies,
unfortunately i did not get it running with your regex,
i think it's a problem with the binary xemacs version for windows.
( i also tried a cygwin version of xemacs, but there is a problem with
the path)

As far as I know XEmacs has a different compile.el version than FSF
Emacs. Maybe the problem lies there. I only tested vhdl-mode
extensively with FSF Emacs.

Reto
thanks,
ok first had to look what FSF emacs is,
i thought that there is only a xemacs windows version, now
i downloaded emacs-21.3-fullbin-i386.tar and it seems to work
as expected.
complete different,
nice highlight colors,
now goto errormessage works,
speedbar works (did not in xemacs),
thanks again
 
Thomas Fischer <tgfischer@t-online.de> writes:

I've downloaded regex coach but I still have problems to determine the
values for
The XEmacs package re-builder (installable via package manager) is
priceless when dealing with that sort of issues.

-- Marcus
 
When you compile a second window opens up below the vhdl code window with
the compile results (errors), Just put the mouse on the error line and
push the middle mouse button. This should move the cursor in the vhdl code
window above to the error line.
Just guessing, but one of the errors looks like you have a semi-colon on
the end of the last line of the port declaration.

Mike
 

Welcome to EDABoard.com

Sponsor

Back
Top