[jedit:plugin-bugs] #1711 DirtyGutter causes issues with FTP plugin

Björn Kautler via jEdit-devel <[email protected]> Sun, 04 Aug 2024 17:34:34 -0000
Newsgroups gmane.editors.jedit.devel
Message-ID </p/jedit/plugin-bugs/1711/17f38f7fc72dfa7ebbc227f08a5086dca3afc1f2.plugin-bugs@jedit.p.sourceforge.net>
jEdit is not hanging for me, and I don't think the problem are the "invalid backslashes".
From what I see (I also get this exception on jEdit 5.7.0 with DirtyGutter 0.3b) I'd say the problem is that the plugin considers all buffers to be local, not considering the file system where the file actually coming from.


---

**[plugin-bugs:#1711] DirtyGutter causes issues with FTP plugin**

**Status:** open
**Group:** 
**Created:** Tue May 07, 2013 05:28 PM UTC by Anonymous
**Last Updated:** Fri Feb 05, 2016 12:57 PM UTC
**Owner:** nobody


When changing a line, jEdit is hanging a little because the DirtyGutter \(LCMPlugin\) is throwing an exception due to invalid slashes in the file path over sftp. Disabling the DirtyGutter plugin resolves this issue.

My environment details:
jEdit 5.1pre1
Java 1.7.0\_15
Windows 7 64bit

here is the exception \(note the backslashes in the first line\):

java.io.FileNotFoundException: \home\jmcmul01\scripts\jim.ksh \(The system cannot find the path specified\)
at java.io.FileInputStream.open\(Native Method\)
at java.io.FileInputStream.<init>\(FileInputStream.java:138\)
at java.io.FileInputStream.<init>\(FileInputStream.java:97\)
at org.gjt.sp.jedit.io.FileVFS.\_createInputStream\(FileVFS.java:519\)
at lcm.LCMPlugin.readFile\(Unknown Source\)
at lcm.providers.diff.DiffBufferHandler.doDiff\(Unknown Source\)
at lcm.providers.diff.DiffBufferHandler.handleContentChange\(Unknown Source\)
at lcm.providers.diff.DiffBufferHandler.contentInserted\(Unknown Source\)
at org.gjt.sp.jedit.buffer.JEditBuffer.fireContentInserted\(JEditBuffer.java:2458\)
at org.gjt.sp.jedit.buffer.JEditBuffer.contentInserted\(JEditBuffer.java:2790\)
at org.gjt.sp.jedit.buffer.JEditBuffer.insert\(JEditBuffer.java:734\)
at org.gjt.sp.jedit.buffer.JEditBuffer.insert\(JEditBuffer.java:678\)
at org.gjt.sp.jedit.textarea.TextArea.replaceSelection\(TextArea.java:2076\)
at org.gjt.sp.jedit.textarea.JEditTextArea.replaceSelection\(JEditTextArea.java:248\)
at org.gjt.sp.jedit.textarea.TextArea.setSelectedText\(TextArea.java:2034\)
at org.gjt.sp.jedit.textarea.TextArea.insertEnterAndIndent\(TextArea.java:4476\)
at sun.reflect.NativeMethodAccessorImpl.invoke0\(Native Method\)
at sun.reflect.NativeMethodAccessorImpl.invoke\(NativeMethodAccessorImpl.java:57\)
at sun.reflect.DelegatingMethodAccessorImpl.invoke\(DelegatingMethodAccessorImpl.java:43\)
at java.lang.reflect.Method.invoke\(Method.java:601\)
at org.gjt.sp.jedit.bsh.Reflect.invokeMethod\(Reflect.java:134\)
at org.gjt.sp.jedit.bsh.Reflect.invokeObjectMethod\(Reflect.java:80\)
at org.gjt.sp.jedit.bsh.Name.invokeMethod\(Name.java:855\)
at org.gjt.sp.jedit.bsh.BSHMethodInvocation.eval\(BSHMethodInvocation.java:75\)
at org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval\(BSHPrimaryExpression.java:102\)
at org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval\(BSHPrimaryExpression.java:47\)
at org.gjt.sp.jedit.bsh.BSHBlock.evalBlock\(BSHBlock.java:130\)
at org.gjt.sp.jedit.bsh.BSHBlock.eval\(BSHBlock.java:80\)
at org.gjt.sp.jedit.bsh.BshMethod.invokeImpl\(BshMethod.java:362\)
at org.gjt.sp.jedit.bsh.BshMethod.invoke\(BshMethod.java:258\)
at org.gjt.sp.jedit.bsh.BshMethod.invoke\(BshMethod.java:186\)
at org.gjt.sp.jedit.BeanShellFacade.runCachedBlock\(BeanShellFacade.java:225\)
at org.gjt.sp.jedit.BeanShell.runCachedBlock\(BeanShell.java:431\)
at org.gjt.sp.jedit.BeanShellAction.invoke\(BeanShellAction.java:73\)
at org.gjt.sp.jedit.gui.InputHandler.invokeAction\(InputHandler.java:342\)
at org.gjt.sp.jedit.gui.InputHandler.invokeAction\(InputHandler.java:307\)
at org.gjt.sp.jedit.gui.DefaultInputHandler.handleKey\(DefaultInputHandler.java:196\)
at org.gjt.sp.jedit.input.AbstractInputHandler.processKeyEventKeyStrokeHandling\(AbstractInputHandler.java:405\)
at org.gjt.sp.jedit.gui.InputHandler.processKeyEvent\(InputHandler.java:151\)
at org.gjt.sp.jedit.textarea.TextArea.processKeyEvent\(TextArea.java:4726\)
at java.awt.Component.processEvent\(Component.java:6282\)
at java.awt.Container.processEvent\(Container.java:2229\)
at java.awt.Component.dispatchEventImpl\(Component.java:4861\)
at java.awt.Container.dispatchEventImpl\(Container.java:2287\)
at java.awt.Component.dispatchEvent\(Component.java:4687\)
at java.awt.KeyboardFocusManager.redispatchEvent\(KeyboardFocusManager.java:1895\)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent\(DefaultKeyboardFocusManager.java:762\)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent\(DefaultKeyboardFocusManager.java:1027\)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions\(DefaultKeyboardFocusManager.java:899\)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent\(DefaultKeyboardFocusManager.java:727\)
at java.awt.Component.dispatchEventImpl\(Component.java:4731\)
at java.awt.Container.dispatchEventImpl\(Container.java:2287\)
at java.awt.Window.dispatchEventImpl\(Window.java:2719\)
at java.awt.Component.dispatchEvent\(Component.java:4687\)
at java.awt.EventQueue.dispatchEventImpl\(EventQueue.java:729\)
at java.awt.EventQueue.access$200\(EventQueue.java:103\)
at java.awt.EventQueue$3.run\(EventQueue.java:688\)
at java.awt.EventQueue$3.run\(EventQueue.java:686\)
at java.security.AccessController.doPrivileged\(Native Method\)
at java.security.ProtectionDomain$1.doIntersectionPrivilege\(ProtectionDomain.java:76\)
at java.security.ProtectionDomain$1.doIntersectionPrivilege\(ProtectionDomain.java:87\)
at java.awt.EventQueue$4.run\(EventQueue.java:702\)
at java.awt.EventQueue$4.run\(EventQueue.java:700\)
at java.security.AccessController.doPrivileged\(Native Method\)
at java.security.ProtectionDomain$1.doIntersectionPrivilege\(ProtectionDomain.java:76\)
at java.awt.EventQueue.dispatchEvent\(EventQueue.java:699\)
at java.awt.EventDispatchThread.pumpOneEventForFilters\(EventDispatchThread.java:242\)
at java.awt.EventDispatchThread.pumpEventsForFilter\(EventDispatchThread.java:161\)
at java.awt.EventDispatchThread.pumpEventsForHierarchy\(EventDispatchThread.java:150\)
at java.awt.EventDispatchThread.pumpEvents\(EventDispatchThread.java:146\)
at java.awt.EventDispatchThread.pumpEvents\(EventDispatchThread.java:138\)
at java.awt.EventDispatchThread.run\(EventDispatchThread.java:91\)




---

Sent from sourceforge.net because [email protected] is subscribed to https://sourceforge.net/p/jedit/plugin-bugs/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/jedit/admin/plugin-bugs/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.

-- 
-----------------------------------------------
jEdit Developers' List
[email protected]
https://lists.sourceforge.net/lists/listinfo/jedit-devel