#1701 MacroManager and macros with / in their name

None
pending-fixed
nobody
None
5
2017-11-01
2013-03-09
Alan Ezust
No

There is a macro called "Replace XML/HTML tags". When I try to download it, I get this error:
11:43:03 AM [Macro manager thread] [error] Roster$Install: java.io.FileNotFoundException: /home/ezust/.jedit/macros/Replace_HTML/XML_tags.bsh (No such file or directory)
11:43:03 AM [Macro manager thread] [error] Roster$Install: at java.io.FileOutputStream.open(Native Method)
11:43:03 AM [Macro manager thread] [error] Roster$Install: at java.io.FileOutputStream.<init>(FileOutputStream.java:209)
11:43:03 AM [Macro manager thread] [error] Roster$Install: at java.io.FileOutputStream.<init>(FileOutputStream.java:99)
11:43:03 AM [Macro manager thread] [error] Roster$Install: at macroManager.Roster$Install.download(Roster.java:187)
11:43:03 AM [Macro manager thread] [error] Roster$Install: at macroManager.Roster$Install.perform(Roster.java:123)
11:43:03 AM [Macro manager thread] [error] Roster$Install: at macroManager.Roster.performOperations(Roster.java:79)
11:43:03 AM [Macro manager thread] [error] Roster$Install: at macroManager.MacroManagerProgress$RosterThread.run(MacroManagerProgress.java:241)

Discussion

  • Skeeve

    Skeeve - 2017-11-01

    Attached patch file will replace every file.separator occuring in a macro's filename with a "-".

    Additionally I've replaced the deprecated Dialog.show() with setVisible(true).

    I couldn't replace the deprecated thread.stop() which is used 4 times. Please someone else take over to get rid of those 4 warnings.

     
    Last edit: Skeeve 2017-11-01
  • Skeeve

    Skeeve - 2017-11-01
    • status: open --> pending-fixed
    • Group: -->
     

Log in to post a comment.