Running GTD Sync (i.e. the actual synchronisation process) under linux for the first time leads to errors.
WARNING: error executing script /earth/Office/.config/freeplane/1.3.x/addons/gtdSyncWithTodoTxt/scripts/gtdSyncWithTodoTxt.groovy - giving up
groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method java.io.File#<init>.
Cannot resolve which method to invoke for [null] due to overlapping prototypes between:
[class java.lang.String]
[class java.net.URI]
Mar 26, 2015 10:44:52 PM org.freeplane.core.util.LogUtils warn
WARNING: Error executing the script:
Ambiguous method overloading for method java.io.File#<init>.
Cannot resolve
which method to invoke for [null] due to overlapping prototypes between:
[class java.lang.String]</init></init>
Hi Evereasy,
Could you send me the error messages, if you start with a clean GTD mind map under Linux? With clean I mean the GTD mind map has not been synchronised yet and apart from gtdMindMapLanguage there are no attributes in the root node.
Could you also test the workaround to enter the Linux todo.txt manually? It is the same question as I asked in this post: [f7f5392f#cff0]. I prefer you reply here and not on the discussion forum.
Thanks in advance,
Henk
Related
Discussion: Bèta test
Hi Henk
Just discovered FreePlane and your add-on. Could be just what I'm looking for :)
Unfortunately I'm having the same issue on a Mac when attempting first sync. Same error message. Workaround didn't work.
Mac OS 10.10.2
Java Version 8 Update 40 (Build 1.8.0_40-b27)
FreePlane 1.3.15
But, had a quick look and commenting out line 202 in gtdSyncWithTodoTxt.groovy:
stops the error.
Also had to remove a '\' that had been added to the end of todoTxtPath root node attribute. But then it did sync.
Hope that helps
Thanks Steve!
This line defines the initial directory that the dialog box shows. I had used (or copied) the environment variable USERPROFILE which obviously does not exists in Mac and Linux. I have already put a new version but I forgot about the backslash.
I am going to correct that first
Cheers,
Henk
Hi Steve,
In v0.7.2 I replaced the '\' with File.separator which should add '\' or '/' depending on the operating system. Since you said that you only had to remove the backslash on Mac, I hope it will not lead to a double separator to the end of todoTextPath. Could you check that for me?
Thanks in advance,
Henk
Hi Henk
Yes, v0.7.2 has resolved the issue for me, no error message and todoTextPath is set correctly.
Keep up the good work :)
Thanks
Steve
Hi Evereasy,
As you mention in [f7f5392f#05fc] GTD Sync does not work with the workaround. Just a check question, do you allow scripts to read and edit files in the Freeplane settings as shown in the Quick Start mind map?
Do you have developing skills? If not, I will ask someone to assist through the Freeplane forum.
And I still would like to have the error messages. Please let me know if they are still the same as posted in [f7f5392f], then I will use those.
Thanks in advance,
Henk
Related
Discussion: f7f5392f
Discussion: Bèta test
Hi Henk,
Still the same as posted in [f7f5392f].
Only do programming (changing/adding code) in various language (Java, groovy, sh, C) occasionally. If you can provide me information about how to enable groovy tracing inside Freeplane. I can give it a try later this week.
Best regards,
Evereasy
Related
Discussion: f7f5392f
Hi Evereasy,
Thanks to Steve I think I have solved the issue for Linux. Could you check if the new v0.7.2 works on Linux? Could you also check that the file separator at the end of todoTxtPath is correct?
Thanks in advance,
Henk
Hi Henk,
It is confirmed. The v0.7.2 works on Linux and the file separator at the end of todoTxtPath is correct ("/").
Thank you for the fix. Now I can start getting things done with GTD Sync with todo.txt!
Stay tune for more updates.
Evereasy
Good to hear, Evereasy!
Solution with regard to errors in root node attribute todoTxtPath: