Bug #1153

RCP: 0.7.7: InjectWordPropTable macro cannot be run

Added by Matthieu Decorde over 4 years ago. Updated over 4 years ago.

Status:Feedback Start date:12/01/2014
Priority:Normal Due date:
Assignee:- % Done:

90%

Category:Macros Spent time: -
Target version:TXM 0.7.7

Description

An internal error occurred during: "Exécution de InjectWordPropTableMacro.groovy".
BUG! exception in phase 'semantic analysis' in source unit 'file:/home/mdecorde/TXM/scripts/macro/org/txm/annotation/InjectWordPropTableMacro.groovy' Queuing new source whilst already iterating.  Queued source is 'file:/home/mdecorde/TXM/scripts/macro/org/txm/annotation/AnnotationInjectionFilter.groovy'

Hypothesis: The macro is defined several times

http://jira.codehaus.org/browse/GRECLIPSE-1037

Solution

Groovy class must explicitely invok "super(...)" in their no-args constructor.
In InjectPropTableFilter, add:

    public AnnotationInjectionFilter() {
        super(new File("").toURI().toURL());
    }    

Validation test

  • Run InjectWordProp macro. No need to start the macro.

MD: OK Linux64, Mac OS X 10.6

History

#1 Updated by Matthieu Decorde over 4 years ago

  • Category set to Macros
  • Target version set to TXM 0.7.7

#2 Updated by Matthieu Decorde over 4 years ago

  • Description updated (diff)

#3 Updated by Matthieu Decorde over 4 years ago

  • Description updated (diff)
  • % Done changed from 0 to 80

#4 Updated by Matthieu Decorde over 4 years ago

  • Status changed from New to Feedback

#5 Updated by Matthieu Decorde over 4 years ago

  • Description updated (diff)
  • % Done changed from 80 to 90

Also available in: Atom PDF