You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Richard Eckart de Castilho (JIRA)" <de...@uima.apache.org> on 2014/11/30 21:21:12 UTC

[jira] [Created] (UIMA-4132) JCasGen with limit option does not work in Eclipse unless typesystem is reloaded

Richard Eckart de Castilho created UIMA-4132:
------------------------------------------------

             Summary: JCasGen with limit option does not work in Eclipse unless typesystem is reloaded
                 Key: UIMA-4132
                 URL: https://issues.apache.org/jira/browse/UIMA-4132
             Project: UIMA
          Issue Type: Bug
          Components: Eclipse plugins
            Reporter: Richard Eckart de Castilho
            Priority: Minor
             Fix For: 2.7.0SDK


# 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"




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)