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
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
*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
_______________________________________________
opengrok-discuss mailing list
opengrok-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opengrok-discuss