Now that all my other doubts are cleared and I have a 75% working setup, I am back to the definition search. Clearly I've got file-path search, and symbol-reference search. But not definition search. So what I want to know is , if there is a switch I forgot to set on the invocation of ctags, or is there something else wrong? And also, how can I confirm the presence of definition data in the generated indexes? In other words, this could be an opengrok problem, using the index, or it could be a ctags problem, building the index. How can I know where the problem lies?
Thanks in advance Shailey From: Lubos Kosco [mailto:lubos.ko...@oracle.com] Sent: Friday, November 18, 2011 6:28 PM To: Gandhi, Shailey (GWMG Technology) Cc: opengrok-discuss@opensolaris.org Subject: Re: [opengrok] Question about xref search inline On 18.11.2011 12:21, Gandhi, Shailey wrote: I am trying to figure out a way to send you the logs or the source code. http://defect.opensolaris.org/bz/ is the preferred way to log bugs alt. you can try mailing someone from dev folks(Knut, Trond, or anyone who lately pushed some code - https://www.ohloh.net/p/opengrok/commits) or opengrok-...@opensolaris.org<mailto:opengrok-...@opensolaris.org> In the meanwhile could you please explain to me what does a symbol (as in symbol search) stand for in opengrok? I have already checked the help but need more clarification. symbol - I borrow the definition from source(which is not that generic, but generic enough ;) ): http://src.opensolaris.org/source/xref/opengrok/trunk/src/org/opensolaris/opengrok/analysis/JFlexXref.java#323 now an explanation: it's basically a reference - so it can point to a previous declaration, or basically any other occurrence of the same token marked as symbol (which can create a bit of ambiguity, but until we improve it people just have to recognize where the search comes from) - in ideal case it would behave like navigating in some IDE, but our analyzers could be improved in this regard (one of the features people want is a caller/callee functionality - which is basically narrowing down current ref(symbol) searches for one of the use cases) obviously this can be improved and if you want, feel free to checkout the code and help with this effort, I think a lot of people will be happy if it will be done in a convenient and simple way xing the fingers L Thanks a lot for helping me out. Shailey From: Lubos Kosco [mailto:lubos.ko...@oracle.com] Sent: Friday, November 18, 2011 4:11 PM To: Gandhi, Shailey (GWMG Technology) Cc: opengrok-discuss@opensolaris.org<mailto:opengrok-discuss@opensolaris.org> Subject: Re: [opengrok] Question about xref search you can use luke (http://code.google.com/p/luke/) to inspect the index and check definition table if it has the definition if not, then obviously you have some prob with indexer to fill it in, but as you might have guessed it's hard to figure it out without logs or knowledge about your environment (I have a feeling it's not setup well) you can try revisiting the head of OpenGrok script and check if you have all env vars set up ev. drop the config script you use and just run OpenGrok and set all vars (e.g. as in http://hub.opensolaris.org/bin/view/Project+opengrok/installdescription try (first change the paths please) $ OPENGROK_VERBOSE=true OPENGROK_INSTANCE_BASE=/path/to/opengrok EXUBERANT_CTAGS=/path/to/ctags.bin OPENGROK_TOMCAT_BASE=/path/to/my/tomcat/install ./OpenGrok deploy $ OPENGROK_VERBOSE=true OPENGROK_INSTANCE_BASE=/path/to/opengrok EXUBERANT_CTAGS=/path/to/ctags.bin OPENGROK_TOMCAT_BASE=/path/to/my/tomcat/install ./OpenGrok index /path/to/sources note that default OPENGROK_INSTANCE_BASE is /var/opengrok , tomcat base differs based on systems, similar for ctags, for most systems it should detect the paths (but not for all OSes :( ... send a patch for yours) ) xing the fingers ... it seems it's a pity Oracle doesn't sell support for OpenGrok L On 18.11.2011 11:27, Gandhi, Shailey wrote: Thanks for your response. But this is not how it is working for me. I have a .java file with a class xyz defined in it. When I click on xyz , it gets me back to the search page with no results for definition search At the bottom I see : Did you mean (for project) : xyz yz... Why doesn't it jump back to the same .java file. Shailey -------------------------------------------------------------------------- NOTICE: Morgan Stanley is not acting as a municipal advisor and the opinions or views contained herein are not intended to be, and do not constitute, advice within the meaning of Section 975 of the Dodd-Frank Wall Street Reform and Consumer Protection Act. If you have received this communication in error, please destroy all electronic and paper copies and notify the sender immediately. Mistransmission is not intended to waive confidentiality or privilege. Morgan Stanley reserves the right, to the extent permitted under applicable law, to monitor electronic communications. This message is subject to terms available at the following link: http://www.morganstanley.com/disclaimers. If you cannot access these links, please notify us by reply message and we will send the contents to you. By messaging with Morgan Stanley you consent to the foregoing.
_______________________________________________ opengrok-discuss mailing list opengrok-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/opengrok-discuss