Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > xemacs vhdl mode goto error

Reply
Thread Tools

xemacs vhdl mode goto error

 
 
Thomas Fischer
Guest
Posts: n/a
 
      08-20-2006
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
 
Reply With Quote
 
 
 
 
Mike Treseler
Guest
Posts: n/a
 
      08-20-2006
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
 
Reply With Quote
 
 
 
 
Thomas Fischer
Guest
Posts: n/a
 
      08-20-2006
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
 
Reply With Quote
 
Mike Treseler
Guest
Posts: n/a
 
      08-20-2006
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
 
Reply With Quote
 
Mike Treseler
Guest
Posts: n/a
 
      08-21-2006
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]+\)):
 
Reply With Quote
 
Reto Zimmermann
Guest
Posts: n/a
 
      08-21-2006
Thomas Fischer wrote:

> \(ERROR\|WARNING\|\*\* Error\|\*\* Warning\)[^:]* *[[0-9]+])?
> \(.+\)(\([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
 
Reply With Quote
 
Thomas Fischer
Guest
Posts: n/a
 
      08-21-2006
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/binarie...noSetup/XEmacs Setup
21.4.19.exe
i downloaded:
http://www.iis.ee.ethz.ch/~zimmi/ema...de-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 inDefault 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




 
Reply With Quote
 
Reto Zimmermann
Guest
Posts: n/a
 
      08-21-2006
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
 
Reply With Quote
 
Thomas Fischer
Guest
Posts: n/a
 
      08-21-2006
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
 
Reply With Quote
 
Marcus Harnisch
Guest
Posts: n/a
 
      08-28-2006
Thomas Fischer <> 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Xemacs vhdl-mode editing header string bluesforsalvador VHDL 0 06-09-2008 07:32 PM
Xemacs vhdl-mode.el editing/compiling question bluesforsalvador VHDL 0 06-09-2008 03:03 PM
XEmacs python-mode question Thomas Heller Python 2 01-13-2006 06:39 PM
Folding in XEmacs with python mode. Jorge Godoy Python 0 07-25-2004 06:59 PM
XEmacs python mode + WxWindows => Freeze Ian Adams Python 0 04-16-2004 11:02 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57