Skip to content
This repository has been archived by the owner on Apr 10, 2021. It is now read-only.

Not working on Netbeans 11.1 #122

Open
faelgabriel opened this issue Oct 16, 2019 · 0 comments
Open

Not working on Netbeans 11.1 #122

faelgabriel opened this issue Oct 16, 2019 · 0 comments

Comments

@faelgabriel
Copy link

faelgabriel commented Oct 16, 2019

This plugin is not working on the Netbeans 11.1 version.

When I try to save a file, the IDE throws the following exception:

java.lang.StringIndexOutOfBoundsException: begin 0, end 2397, length 2329
at java.base/java.lang.String.checkBoundsBeginEnd(String.java:3720)
at java.base/java.lang.String.substring(String.java:1909)
at com.welovecoding.nbeditorconfig.processor.operation.TrimTrailingWhiteSpaceOperation.detectCaretOffset(TrimTrailingWhiteSpaceOperation.java:51)
at com.welovecoding.nbeditorconfig.processor.operation.TrimTrailingWhiteSpaceOperation.operate(TrimTrailingWhiteSpaceOperation.java:28)
at com.welovecoding.nbeditorconfig.processor.operation.TrimTrailingWhiteSpaceOperation.operate(TrimTrailingWhiteSpaceOperation.java:18)
at com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor.excuteOperations(EditorConfigProcessor.java:192)
at com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor.applyRulesToFile(EditorConfigProcessor.java:96)
[catch] at com.welovecoding.nbeditorconfig.listener.FileChangeListener.fileChanged(FileChangeListener.java:58)
at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObjectKeeper.fileChanged(FileObjectKeeper.java:342)
at org.openide.filesystems.FCLSupport$DispatchEventWrapper.dispatchEventImpl(FCLSupport.java:153)
at org.openide.filesystems.FCLSupport$DispatchEventWrapperSingle.dispatchAllEventsSync(FCLSupport.java:199)
at org.openide.filesystems.FCLSupport$DispatchEventWrapper.dispatchEvent(FCLSupport.java:112)
at org.openide.filesystems.FCLSupport.dispatchEvent(FCLSupport.java:80)
at org.openide.filesystems.FileObject$ED.dispatch(FileObject.java:1373)
at org.openide.filesystems.EventControl.invokeDispatchers(EventControl.java:188)
at org.openide.filesystems.EventControl.exitAtomicAction(EventControl.java:163)
at org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:104)
at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:494)
at org.openide.filesystems.FileUtil.runAtomicAction(FileUtil.java:396)
at org.openide.text.DataEditorSupport.saveDocument(DataEditorSupport.java:578)
at org.netbeans.modules.csl.core.GsfDataObject$GenericEditorSupport$Environment$SaveSupport.save(GsfDataObject.java:199)
at org.openide.actions.SaveAction.performAction(SaveAction.java:107)
at org.openide.actions.SaveAction.performAction(SaveAction.java:77)
at org.openide.actions.SaveAction$Delegate.actionPerformed(SaveAction.java:224)
at org.openide.awt.ContextAction$Performer.actionPerformed(ContextAction.java:448)
at org.openide.awt.ContextManager.actionPerformed(ContextManager.java:263)
at org.openide.awt.ContextAction.actionPerformed(ContextAction.java:106)
at org.openide.util.actions.ActionInvoker$1.run(ActionInvoker.java:68)
at org.openide.util.actions.ActionInvoker$ActionRunnable.actionPerformed(ActionInvoker.java:137)
at org.netbeans.core.ModuleActions.invokeAction(ModuleActions.java:84)
at org.netbeans.modules.openide.actions.ActionsBridgeImpl.invokeAction(ActionsBridgeImpl.java:35)
at org.openide.util.actions.ActionInvoker$ActionRunnable.doRun(ActionInvoker.java:128)
at org.openide.util.actions.ActionInvoker$2.run(ActionInvoker.java:85)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)

I am using editorconfig-netbeans v0.10.4, but I have tried using v0.10.3 and it's not working as well.

System info:

Product Version = Apache NetBeans IDE 11.1
Operating System = Windows 10 version 10.0 running on amd64
Java; VM; Vendor = 13.0.1; OpenJDK 64-Bit Server VM 13.0.1+9; Oracle Corporation
Runtime = OpenJDK Runtime Environment 13.0.1+9
Java Home = C:\Program Files\Java\jdk-13.0.1
System Locale; Encoding = en_US (nb); Cp1252
Home Directory = C:\Users\Rafael
Current Directory = C:\Program Files\NetBeans-11.1
User Directory = C:\Users\Rafael\AppData\Roaming\NetBeans\11.1
Cache Directory = C:\Users\Rafael\AppData\Local\NetBeans\Cache\11.1
Installation = C:\Program Files\NetBeans-11.1\netbeans\nb
C:\Program Files\NetBeans-11.1\netbeans\ergonomics
C:\Program Files\NetBeans-11.1\netbeans\ide
C:\Program Files\NetBeans-11.1\netbeans\extide
C:\Program Files\NetBeans-11.1\netbeans\java
C:\Program Files\NetBeans-11.1\netbeans\apisupport
C:\Program Files\NetBeans-11.1\netbeans\webcommon
C:\Program Files\NetBeans-11.1\netbeans\websvccommon
C:\Program Files\NetBeans-11.1\netbeans\enterprise
C:\Program Files\NetBeans-11.1\netbeans\profiler
C:\Program Files\NetBeans-11.1\netbeans\php
C:\Program Files\NetBeans-11.1\netbeans\harness
C:\Program Files\NetBeans-11.1\netbeans\groovy
C:\Program Files\NetBeans-11.1\netbeans\javafx
C:\Program Files\NetBeans-11.1\netbeans\platform

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant