Skip to content

-fx 'name="nameOfFolder"' not working #11

@Zettt

Description

@Zettt

Hi,

I want to exclude a certain folder in my export, but it gives an error. See below.

Exception in thread "main" org.psidnell.omnifocus.visitor.TraversalException: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
    at org.psidnell.omnifocus.visitor.Traverser.traverse(Traverser.java:45)
    at org.psidnell.omnifocus.OFExport.process(OFExport.java:106)
    at org.psidnell.omnifocus.Main.run(Main.java:105)
    at org.psidnell.omnifocus.Main.main(Main.java:164)
Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
    at org.psidnell.omnifocus.expr.ExprMarkVisitor.evaluate(ExprMarkVisitor.java:45)
    at org.psidnell.omnifocus.expr.ExprVisitor.enter(ExprVisitor.java:67)
    at org.psidnell.omnifocus.visitor.Traverser.doTraverseFolder(Traverser.java:82)
    at org.psidnell.omnifocus.visitor.Traverser.doTraverseFolder(Traverser.java:93)
    at org.psidnell.omnifocus.visitor.Traverser.doTraverse(Traverser.java:54)
    at org.psidnell.omnifocus.visitor.Traverser.traverse(Traverser.java:43)
    ... 3 more

The command I use is this:

of2 -fx 'name="Recurring"'

The original command I was using is this:

of2 -ti '!completed && due.soon' -px onHold -fx 'name="Recurring"' -f html-plain

html-plain is a special template that doesn't include the task notes. I cooked that up because the documentation mentioned -m 'type=="Task" && note=null' method was not working either.

I hope this is enough information to find the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions