Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
Description
- Create a Java project "test2"
- Create a type system description "typeSystemDescriptor2.xml" in "test2"
- Create a type "some.typename.you.Choose2" in that descriptor
- Save "typeSystemDescriptor2.xml"
- Create a Java project "test"
- Add "test2" as a build dependency to "test"
- Create a type system description "typeSystemDescriptor.xml" in "test"
- Create a type "some.typename.you.Choose" in that descriptor
- Add "typeSystemDescriptor2.xml" via import-by-name
- Save "typeSystemDescriptor.xml"
- Enable "limited" in "typeSystemDescriptor.xml"
- Press JCasGen in "typeSystemDescriptor.xml"
Expected result:
- JCas files generated for "some.typename.you.Choose"
- no JCas files generated for "some.typename.you.Choose2"
Actual result:
- no JCas files generated whatsoever
Diagnosis
- isOutOfScope() requires the sourceUrl in the type descriptor to be set
- apparently, the sourceUrl is not set when "typeSystemDescriptor.xml" is created (also not when saved)
Workaround
- close the editor for "typeSystemDescriptor.xml"
- reopen it
- Enable "limited" in "typeSystemDescriptor.xml"
- Press JCasGen in "typeSystemDescriptor.xml"