Re: [cedet-semantic] semantic-symref question
Brought to you by:
zappo
From: Eric L. <er...@si...> - 2019-11-23 13:32:39
|
Hi Anand, Of the tools I had integrted, none were particularly spectacular for very large code bases, but ok for smaller ones. I'm not familiar with any symref level external tools for Java other than the core java tools themselves. (ie - the jar files.) There is some support in CEDET already with some jar based semanticdb tables, but I never wrote any introspection tools for symrefs. A new thing that has appeared recently are LSP servers for different languages. A good bet would be to look for an LSP server for Java, and see what it supports. Supporting LSP as a backend for CEDET would be a nice addition. This one: https://github.com/emacs-lsp/lsp-java looks like it supports references. The trick would then be to write a semanticdb backend, and a symref backend over one of these lsp servers Emacs interfaces. This would be a big win for CEDET, as these backends are becoming quite popular, and would let people use CEDET tools as the interface. Eric On 11/21/19 11:24 PM, Anand Tamariya wrote: > Hi Eric, > I've looked at some third party scripts. I realized that they can't work > across multiple languages without context awareness - my language of > interest being Java. > > Your efforts with these tools is in the right direction and really > commendable. They provide great starting points for adding support for > new languages. Do you recall any API which would help me do a global > search as grep / cscope tools do which can then be fed into semantic-symref? > > Regards, > Anand > > On Thu, Nov 21, 2019 at 8:43 AM Eric Ludlam <er...@si... > <mailto:er...@si...>> wrote: > > On 11/19/19 11:33 PM, Anand Tamariya wrote: > > Hi Eric, > > What are your thoughts about integrating semantic parsing with > symref > > for refactoring? Is it possible/desirable? > > Hi Anand, > > That was one of my goals with those two tools. You may notice that > in a > symref buffer, there are some options in the menu for doing renames. I > didn't get very far with this project. > > Someone else started a refactoring tool using a mix of semantic, > symref, > and srecode. > > https://github.com/tuhdo/semantic-refactor > > I haven't done any coding in a while so haven't tried this much myself. > > Eric > |