-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Navigation not working #347
Comments
Could you open the Console view and then the Groovy Event Console withi it? Code Select should log its progress and any errors it encounters trying to resolve the methods.
|
This is what Greclipse writes to the Groovy Event Console when I click on
|
Bummer. I'll have a look when I get some free time.
|
Interesting. Ctrl clicking on |
Yes, it's interesting. I didn't realize that, I never use Ctrl+Click... |
Ctrl-click is entering CodeSelectHelper.select with a offset and length that cover the entire name. F3 enters the same with the offset of the cursor and a length of 0. Because of this difference, the string literal check (below) is improperly returning true. protected static boolean isStringLiteral(ASTNode node, char[] contents, int start, int length) {
if (node instanceof ConstantExpression && ClassHelper.STRING_TYPE.equals(((ConstantExpression) node).getType())) {
return (start > node.getStart() && length < node.getLength());
}
return false;
} |
Hi Eric, |
This use case is taken from the old GRECLIPSE-1755, but the symptom is different.
Create a Groovy project which depends on
org.hibernate:hibernate-core:3.5.6-Final
and write the following class:When I opened GRECLIPSE-1755, Greclipse was confusing
org.hibernate.Session.createSQLQuery(String)
withorg.hibernate.classic.Session.createSQLQuery(String, String, Class)
, which is deprecated, and hence it was showing my method call with the deprecation highlighting.This does not happen any more, but what I see now is that I can't navigate to
org.hibernate.impl.SessionFactoryImpl.getCurrentSession()
(by hitting F3 oncurrentSession
) or toorg.hibernate.Session.createSQLQuery(String)
(by hitting F3 oncreateSQLQuery
). Eclipse does nothing, apart from writing "Current text selection cannot be opened in an editor" in the status bar.By the way, I noticed a lot of such problems in one of our main projects, but it's hard to extract a small and sharable use case from there. While trying to reproduce GRECLIPSE-1755 I could finally reproduce this behaviour, I hope you'll be able to reproduce as well.
The text was updated successfully, but these errors were encountered: