Re: [CEDET-devel] Semantic support for Vera and SystemVerilog languages
Brought to you by:
zappo
From: Eric M. L. <er...@si...> - 2010-05-20 00:41:31
|
Hi, It looks like the parser didn't install. To force ctags to run on a buffer, try: M-x semantic-ectag-parse-buffer RET It will be blunt if the current mode isn't supported. If it isn't, that means the changes you made to semantic-ectag-lang.el to uncomment the lines for installing ctags support to verilog didn't take. You'll want to double check that the support lines for those modes are uncommented, and that you have recompiled Semantic with those changes. You will need to then restart Emacs and make sure you have called semantic-load-enable-primary-exuberent-ctags-support in your .emacs file. Then you can try again with M-x semantic-ectag-parse-buffer RET If that works, you can then try bovinate, and if that works, you can then try some of the other commands. Eric On 05/19/2010 06:46 PM, Alex Khazin wrote: > Hi Eric, > > I tried to run 'M-x bovinate RET' but got only 'nil' > Attaching the vera files I've tried on > > Regarding the debugging . I got the next output of the > 'toggle-debug-on-error' > > Debugger entered--Lisp error: (wrong-type-argument stringp nil) > re-search-forward(nil nil t) > semantic-go-to-tag(nil) > semantic-documentation-for-tag(nil) > semantic-format-tag-short-doc-default(nil nil t) > semantic-format-tag-short-doc(nil nil t) > semantic-test-all-format-tag-functions(nil) > call-interactively(semantic-test-all-format-tag-functions) > execute-extended-command(nil) > call-interactively(execute-extended-command) > recursive-edit() > > > I'm not sure how to go on from here . I guess I need to read more on elisp. > I'll happy for any guidance. > > > Thanks, > Alex > > > On Tue, May 18, 2010 at 2:08 AM, Eric M. Ludlam <er...@si... > <mailto:er...@si...>> wrote: > > Hi, > > There are a couple options. One might be to use > > M-x bovinate RET > > to just dump out the tags for a buffer, and look at them to see if > the LISP construct makes any sense. > > Next you should use > > M-x toggle-debug-on-error RET > > to enable debugging, then run semantic-test-all-format-tag-functions > and see where it goes boom. You may need to either patch the > default function (to not crash) or add your own overload function > (to make it look like verilog) or fix the parser somewhere to clean > up some issues with unexpected data in the tag format. > > I'll assume you are not too familiar with Emacs Lisp, so if you > share some basic examples to get to the same state you are in, I can > help make it go. > > Eric > > > On 05/17/2010 10:54 AM, Alex Khazin wrote: > > Hi Eric, > > My question is what should be the next step ? I tried to run > 'semantic-test-all-format-tag-functions' , but I get the error : > > "Wrong type argument: stringp , nil " > > What might be the source of this error ? > > > Thanks, > Alex > > On Mon, May 17, 2010 at 12:45 AM, Alex Khazin > <ale...@gm... <mailto:ale...@gm...> > <mailto:ale...@gm... <mailto:ale...@gm...>>> > wrote: > > I think I found the resolution : > > (defvar semantic-ectag-program > "/pkg/qct/software/ctags/5.7/bin/ctags") > > Thanks, > Alex > > > > On Sun, May 16, 2010 at 5:40 PM, Alex Khazin > <ale...@gm... <mailto:ale...@gm...> > <mailto:ale...@gm... <mailto:ale...@gm...>>> > wrote: > > Hi Eric , > > Thanks a lot for the quick response . > > When I tried to load > "semantic-load-enable-primary-exuberent-ctags-support" , but > encounter on the next error : > > Debugger entered--Lisp error: (error "Exuberent CTags not > found. Use M-x semantic-ectag-version RET") > signal(error ("Exuberent CTags not found. Use M-x > semantic-ectag-version RET")) > error("Exuberent CTags not found. Use M-x > semantic-ectag-version RET") > semantic-ectag-test-version() > semantic-load-enable-primary-exuberent-ctags-support() > eval-buffer(#<buffer *load*> nil "~/.emacs" nil t) > load-with-code-conversion("/usr2/akhazin/.emacs" > "~/.emacs" t t) > load("~/.emacs" t t) > #[nil " …— > > > > I understand that I need to declare some path to CTAGs . > I used > the next one > > (defvar path-to-ctags > "/pkg/qct/software/ctags/5.7/bin/ctags ") > > > but it didn't worked . > > > How can fix it ? > > > Thanks, > Alex > > > > On Sun, May 16, 2010 at 4:45 PM, Eric M. Ludlam > <er...@si... <mailto:er...@si...> > <mailto:er...@si... <mailto:er...@si...>>> > wrote: > > On 05/15/2010 11:54 AM, Alex Khazin wrote: > > Hi All , > > I would like to know if anyone worked/working on > support > for these > languages . > If so , could you please share what is already > done ? I > would like to > participate in this effort > > Thanks in advance, > Alex > > > Hi, > > Verilog and Vera can be supported via the exuberent > ctags > parser support in Semantic. > > To start, edit > cedet/semantic/ctags/semantic-ectag-lang.el > > Find vera and verilog support in two different > places, and > uncomment the in, and recompile. (They are > commented out > because no-one ever tested them.) > > Next, in your .emacs, add: > > (semantic-load-enable-primary-exuberent-ctags-support) > > and try it out. I can lend suggestions on getting it > working better once you have some basic > functionality working. > > Alternately, read > http://cedet.sourceforge.net/addlang.shtml > for more details. > > Eric > > > > > > > > ------------------------------------------------------------------------------ > > > > > _______________________________________________ > Cedet-devel mailing list > Ced...@li... > https://lists.sourceforge.net/lists/listinfo/cedet-devel |