General error during semantic analysis: nyi class

288 views
Skip to first unread message

Jeff Finley

unread,
Jun 3, 2013, 10:25:04 PM6/3/13
to gae...@googlegroups.com

Using Eclipse 

Version: Juno Service Release 2

Build id: 20130225-0426


def gaeVersion = '1.8.0'

def groovyVersion = '2.1.3'


my code is: ///////////////////


package com.tndegrees.model


import groovyx.gaelyk.datastore.Entity

import groovyx.gaelyk.datastore.Key

import groovyx.gaelyk.datastore.Unindexed


@Entity(unindexed=false)

class Person {

  @Key String id

  String firstName

  String lastName

}


I receive the following error and stacktrace:

General error during semantic analysis: nyi class 

 org.eclipse.jdt.internal.compiler.lookup.UnresolvedReferenceBinding java.lang.IllegalStateException: nyi class 

 org.eclipse.jdt.internal.compiler.lookup.UnresolvedReferenceBinding at 

 org.codehaus.jdt.groovy.internal.compiler.ast.JDTClassNodeBuilder.configureType(JDTClassNodeBuilder.java:68) 

 at org.codehaus.jdt.groovy.internal.compiler.ast.JDTResolver.createJDTClassNode(JDTResolver.java:470) at 

 org.codehaus.jdt.groovy.internal.compiler.ast.JDTResolver.convertToClassNode(JDTResolver.java:449) at 

 org.codehaus.jdt.groovy.internal.compiler.ast.JDTAnnotationNode.createExpressionFor(JDTAnnotationNode.java:

 179) at 

 org.codehaus.jdt.groovy.internal.compiler.ast.JDTAnnotationNode.createExpressionFor(JDTAnnotationNode.java:

 158) at 

 org.codehaus.jdt.groovy.internal.compiler.ast.JDTAnnotationNode.ensureMembersInitialized(JDTAnnotationNode.j

 ava:143) at 

 org.codehaus.jdt.groovy.internal.compiler.ast.JDTAnnotationNode.getMember(JDTAnnotationNode.java:67) at 

 org.codehaus.groovy.transform.ASTTransformationCollectorCodeVisitor.getTransformClassNames(ASTTransforma

 tionCollectorCodeVisitor.java:102) at 

 org.codehaus.groovy.transform.ASTTransformationCollectorCodeVisitor.visitAnnotations(ASTTransformationColle

 ctorCodeVisitor.java:212) at 

 org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitClass(ClassCodeVisitorSupport.java:48) at 

 org.codehaus.groovy.transform.ASTTransformationCollectorCodeVisitor.visitClass(ASTTransformationCollectorCo

 deVisitor.java:76) at org.codehaus.groovy.transform.ASTTransformationVisitor

 $1.call(ASTTransformationVisitor.java:204) at 

 org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1191) at 

 org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:623) at 

 org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:601) at 

 org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:578) at 

 org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.processToPhase(GroovyCompilat

 ionUnitDeclaration.java:171) at 

 org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.resolve(GroovyCompilationUnitD

 eclaration.java:2015) at org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:827) at 

 org.eclipse.jdt.internal.compiler.ProcessTaskManager.run(ProcessTaskManager.java:137) at 

 java.lang.Thread.run(Thread.java:722)

Guillaume Laforge

unread,
Jun 4, 2013, 2:38:58 AM6/4/13
to gae...@googlegroups.com
Do you have a class named "nyi" somewhere on your classpath?

Have you tried building the project with the Gradle build instead?
I'm afraid it might be a problem related to Groovy Eclipse, and not really specific to Gaelyk.

Guillaume


--
--
You've received this message because you've subscribed to the Gaelyk Google Group.
To send an email to the group, please write to: gae...@googlegroups.com
To unsuscribe from this group: gaelyk+un...@googlegroups.com
To show more options: http://groups.google.fr/group/gaelyk?hl=en
 
---
You received this message because you are subscribed to the Google Groups "Gaelyk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gaelyk+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Guillaume Laforge
Groovy Project Manager
Pivotal, Inc.

Vladimír Oraný

unread,
Jun 4, 2013, 3:10:13 AM6/4/13
to gae...@googlegroups.com
Yeah, this is probably Groovy Eclipse problem. I got these many times. I think "nyi" means Not Yet Implemented". Please post it to Groovy Eclipse user mailing list too.


2013/6/4 Guillaume Laforge <glaf...@gmail.com>

Jeff Finley

unread,
Jun 4, 2013, 9:50:04 PM6/4/13
to gae...@googlegroups.com, vlad...@orany.cz
What IDE do you two use?  Eclipse is about ready to drive me crazy trying to use Gaelyk with it.

Jeff Finley

unread,
Jun 4, 2013, 10:02:40 PM6/4/13
to gae...@googlegroups.com, vlad...@orany.cz
Ya just have to shake your head sometimes.  It assembled just fine using ./gradlew assemble.  Eclipse still had the error, so I refreshed and cleaned.  Still had the error as I expected.  I deleted the class I posted, it was a make believe class, and the error went away on the real class that I was creating.  It moved to an empty DAO class that I was starting to build in lieu of the annotations because they weren't working.  I deleted that class and the error went away and the annotations seem to be working fine.  If it rears it's head again I'll post back.

Thanks you two for responding.


On Tuesday, June 4, 2013 2:10:13 AM UTC-5, Vladimír Oraný wrote:

Jeff Finley

unread,
Jun 6, 2013, 11:36:17 PM6/6/13
to gae...@googlegroups.com
*update again*

package com.tndegrees.model


import groovyx.gaelyk.datastore.Entity

import groovyx.gaelyk.datastore.Key

import groovyx.gaelyk.datastore.Unindexed

class Avatar{

String id

URI image

String words

}

does not generate the error but the following does:

package com.tndegrees.model


import groovyx.gaelyk.datastore.Entity

import groovyx.gaelyk.datastore.Key

import groovyx.gaelyk.datastore.Unindexed

@Entity(unindexed=false)

class Avatar{

String id

URI image

String words

}

so it appears to be a conflict on the implementation of the @Entity

This does work with the gaelyk gradle build.

Jeff Finley

unread,
Jun 7, 2013, 1:09:18 PM6/7/13
to gae...@googlegroups.com
*UPDATE*  Andrew @ Groovy-Eclipse has opened a bug http://jira.codehaus.org/browse/GRECLIPSE-1639
Reply all
Reply to author
Forward
0 new messages