Open class implementing trait in editor or search for trait results in error
@eric-milles is already working on this.
Since Apr 12, 2018.
Assessment
This issue has not been assessed yet.
Description
Open the class in the Groovy Editor and the error below is logged. This may be related to #175, since the referenced trait is only reconciled to compile phase 3.
MyClass.groovy:
class MyClass implements MyTrait {
}
MyTrait.groovy:
trait MyTrait {
def m() { 'm' }
}
Groovy:Groovy compiler error: exception in phase 'canonicalization' in source unit '...\eclipse-space\Groovy\src\main\traits2\MyClass.groovy' JDTClassNode.getTypeClass() cannot
locate class for traits.MyTrait using transform loader groovy.lang.GroovyClassLoader@36edbb99
- Dominant language
- Java
- Stars
- 681
- Forks
- 197
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from groovy/groovy-eclipse
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
groovy/groovy-eclipse#485 ·
-
Compile problem Open
Difficulty 4/5 3-5 days Newbie friendliness 48/100
groovy/groovy-eclipse#1700 · 3 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
groovy/groovy-eclipse#1699 · 1 comment ·
-
enhancement
groovy/groovy-eclipse#1672 · 3 comments · 1 assignee ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
groovy/groovy-eclipse#1667 ·
All issues in groovy/groovy-eclipse
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
bug needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 1/5 Under an hour Newbie friendliness 94/100
objectionary/hone-maven-plugin#1061 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
spring-projects/spring-modulith#1895 ·