Giter Club home page Giter Club logo

ofexport2's People

Contributors

dkadams avatar kunsonx avatar psidnell avatar wambold avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ofexport2's Issues

Repeated executions of maven install removes contents ofexport2/config

Running mvn install twice in a row deletes the contents of the ofexport2/config directory.

The problem is the logic in pom.xml that links the build directory's config to the root directory's config:

<target>
  <delete dir="${project.build.directory}/ofexport/config" />
  <symlink link="${project.build.directory}/ofexport/config" resource="${basedir}/config" />
</target>

When you first run install, this logic deletes the ofexport/config directory created by the appassembler-maven-plugin's copyConfigurationDirectory directive and then replaces it with a symlink. One the second invocation, the path ofexport/config is already a symlink, so ant deletes the contents of the directory.

Workaround: run a clean between invocations of install.

Java error when running OF2 in terminal

Hi Paul. Thanks for creating this awesome setup for exporting OF data! I've been looking for a way to export my OF data and import it into TaskPaper. This looks like the perfect solution! I think I have everything setup correctly but I'm getting an error when I type OF2 into the terminal. Here's the error:

Exception in thread "main" java.lang.UnsupportedClassVersionError: org/psidnell/omnifocus/Main : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

I updated my Java to 1.8 from 1.6 although it's still showing as 1.6 when I type java -version in the terminal. I verified the 1.8 update from system preferences. Any thoughts as to what the issue is? Thanks again for creating this and for your assistance! Have a great day!

JP Roberts

Tests assume time zone is GMT

I'm in the PST timezone. If I run the tests normally, I get:

Tests run: 125, Failures: 7, Errors: 2, Skipped: 0

But if I run with

TZ=GMT mvn clean package

I get:

Tests run: 125, Failures: 1, Errors: 2, Skipped: 0

A number of your tests make assumptions that they are being run in the GMT time zone. I suggest explictly setting the timezone in your tests or changing your documentation.

filtering on dates "today", "yesterday" does not seem to work

I'm trying to filter my completed tasks of today using of2 -ti 'completion.is("today")'. This results in no output, even if there are tasks marked completed today. The same for of2 -ti 'completion.is("yesterday")'.

If I fill in a specific date like of2 -ti 'completion.is("2015-03-19")' it shows the tasks with a completion date of March 18...

If I use of2 -ti 'completion.between("Monday","today")', it will only output completed tasks from Monday to yesterday (including).

`-fx 'name="nameOfFolder"'` not working

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.

Java Exception `Cannot find class [org.psidnell.omnifocus.sqlite.SQLiteDataSource]` when running the latest master

Hi,

Not sure if this is a known issue and my experience with Java is limited so I'm not sure how to fix this. In the latest master release I'm seeing the following error when I try and run the app.

Exception in thread "main" org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.psidnell.omnifocus.sqlite.SQLiteDataSource] for bean with name 'sqLiteDS' defined in class path resource [config.xml]; nested exception is java.lang.ClassNotFoundException: org.psidnell.omnifocus.sqlite.SQLiteDataSource
	at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1325)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineTargetType(AbstractAutowireCapableBeanFactory.java:623)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:592)
	at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1394)
	at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:957)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:742)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)
	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
	at org.psidnell.omnifocus.ApplicationContextFactory.getContext(ApplicationContextFactory.java:36)
	at org.psidnell.omnifocus.Main.main(Main.java:138)
Caused by: java.lang.ClassNotFoundException: org.psidnell.omnifocus.sqlite.SQLiteDataSource
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at org.springframework.util.ClassUtils.forName(ClassUtils.java:249)
	at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:395)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1346)
	at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1317)
	... 11 more
  • OF2 installed from the Omni website (v2.11.2)
  • macOS High Sierra (10.13.2)
  • Java 1.8.0_92

Is this just me missing a dependency somewhere? The release version works, but I was trying this one out because of a commit I saw that mentioned possibly working better with ASCII?

Thanks!

Get java.lang.ClassCastException when running of2

Hi,
I installed version 1.0.19 (2015-01-07) and get the following error when running of2 with anything other than the -h option.

$ ./of2 -v
Loading...
Exception in thread "main" java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Double
    at org.psidnell.omnifocus.sqlite.SQLiteClassDescriptor.getValue(SQLiteClassDescriptor.java:135)
    at org.psidnell.omnifocus.sqlite.SQLiteClassDescriptor.load(SQLiteClassDescriptor.java:93)
    at org.psidnell.omnifocus.sqlite.SQLiteDAO.load(SQLiteDAO.java:125)
    at org.psidnell.omnifocus.sqlite.SQLiteDAO.load(SQLiteDAO.java:102)
    at org.psidnell.omnifocus.Main.loadData(Main.java:59)
    at org.psidnell.omnifocus.Main.main(Main.java:160) 

I have the following Java version:

$ java -version
java version "1.8.0_40"
Java(TM) SE Runtime Environment (build 1.8.0_40-b25)
Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)

And Omnifocus is version 2.1.1 (v92.6 r228096), Pro, bought from The OmniGroup.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.