Menu

#13 GTD Sync not working in Linux and Mac

0.7.2
complete
evereasy
True
Bug
2024-05-06
2015-03-29
No

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>

2 Attachments

Discussion

  • Henk van den Akker

    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

    • Steve

      Steve - 2015-03-29

      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:

      currentDirectory:new java.io.File(System.getenv('USERPROFILE')),
      

      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

       
      • Henk van den Akker

        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

         
        • Henk van den Akker

          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

           
          • Steve

            Steve - 2015-03-29

            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

             
  • Henk van den Akker

    • assigned_to: Henk van den Akker --> evereasy
     
  • Henk van den Akker

    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

  • evereasy

    evereasy - 2015-03-29

    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

  • Henk van den Akker

    • labels: Linux --> Linux, Mac
    • status: open --> in-progress
    • assigned_to: evereasy --> Henk van den Akker
    • Milestone: none --> 0.7.2
     
  • Henk van den Akker

    • status: in-progress --> test
     
  • Henk van den Akker

    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

     
  • Henk van den Akker

    • assigned_to: Henk van den Akker --> evereasy
     
  • evereasy

    evereasy - 2015-03-30

    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

     
  • Henk van den Akker

    Good to hear, Evereasy!

    Solution with regard to errors in root node attribute todoTxtPath:

    1. Commented out line referring to Windows environment variable USERPROFILE
    2. Replaced backslash with File.separator.
     
  • Henk van den Akker

    • status: test --> complete
     
  • Henk van den Akker

    • Ticket type: Defect --> Bug
     
  • Henk van den Akker

    • Closed: --> True
     

Log in to post a comment.