Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-4132

JCasGen with limit option does not work in Eclipse unless typesystem is reloaded

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • Eclipse plugins
    • None

    Description

      1. Create a Java project "test2"
      2. Create a type system description "typeSystemDescriptor2.xml" in "test2"
      3. Create a type "some.typename.you.Choose2" in that descriptor
      4. Save "typeSystemDescriptor2.xml"
      5. Create a Java project "test"
      6. Add "test2" as a build dependency to "test"
      7. Create a type system description "typeSystemDescriptor.xml" in "test"
      8. Create a type "some.typename.you.Choose" in that descriptor
      9. Add "typeSystemDescriptor2.xml" via import-by-name
      10. Save "typeSystemDescriptor.xml"
      11. Enable "limited" in "typeSystemDescriptor.xml"
      12. 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"

      Attachments

        Activity

          People

            Unassigned Unassigned
            rec Richard Eckart de Castilho
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: