xemacs vhdl mode goto error

T

Thomas Fischer

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
 
M

Mike Treseler

Thomas said:
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
 
T

Thomas Fischer

Mike said:
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.


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


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
 
M

Mike Treseler

Thomas said:
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
 
M

Mike Treseler

Thomas said:
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]+\)):
 
T

Thomas Fischer

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
 
R

Reto Zimmermann

Thomas said:
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
 
T

Thomas Fischer

Reto said:
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
 
M

Marcus Harnisch

Thomas Fischer said:
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
 
M

Michael_R_Hicks-NR

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,043
Latest member
CannalabsCBDReview

Latest Threads

Top