welovecoding / editorconfig-netbeans

A NetBeans IDE plugin supporting the EditorConfig standard. ⛺
https://editorconfig.org/
MIT License
126 stars 22 forks source link

Method writeWithEditorKit is a performance problem #109

Open Chris2011 opened 7 years ago

Chris2011 commented 7 years ago

One of the biggest problems, that I figured out, is that when you save your changes, it will run very often the writeWithEditorKit method or the runnables inside. This is a performance problem I think, because first you feel and see it. You see the spinning wheel after you hit save and you feel changed in the editor window. So I only tested it in my dev enviroment with no plugins, only with this plugin but It could be a big problem in the live enviroment.

Method will be called to often.
Method will be called to often.
Method will be called to often.
Method will be called to often.
INFO [com.welovecoding.nbeditorconfig.listener.FileChangeListener]: [EC for C:/Projekte/myProject/.editorconfig] File content changed: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.listener.FileChangeListener]: [EC for {0}] Applying rules
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Getting Primary File
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Getting Path
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Apply rules to file: C:/Projekte/myProject/tslint.json (MIME type: text/x-json)
INFO [org.editorconfig.core.EditorConfig]: Used EditorConfig: C:\Projekte\myProject\.editorconfig
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: charset
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: indent_style
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: indent_size
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: end_of_line
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: insert_final_newline
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: trim_trailing_whitespace
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: tab_width
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: Using line ending: LF
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Mapped rules for: C:/Projekte/myProject/tslint.json
1. charset: UTF-8
2. end_of_line: LF
3. indent_size: 2
4. indent_style: space
5. insert_final_newline: true
6. tab_width: 2
7. trim_trailing_whitespace: true
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: "charset": UTF-8 (C:/Projekte/myProject/tslint.json)
INFO [com.welovecoding.nbeditorconfig.processor.operation.tobedone.CharsetOperation]: ¬ Current charset: ISO-8859-1
INFO [com.welovecoding.nbeditorconfig.processor.operation.tobedone.CharsetOperation]: ¬ Changing charset from "ISO-8859-1" to "UTF-8"
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: "end_of_line": LF (C:/Projekte/myProject/tslint.json)
INFO [com.welovecoding.nbeditorconfig.processor.operation.LineEndingOperation]: ¬ No change needed
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: "indent_size": 2 (C:/Projekte/myProject/tslint.json)
INFO [com.welovecoding.nbeditorconfig.processor.operation.CodeStyleOperation]: ¬ Current value: 4
INFO [com.welovecoding.nbeditorconfig.processor.operation.CodeStyleOperation]: ¬ New value: 2
INFO [com.welovecoding.nbeditorconfig.processor.operation.CodeStyleOperation]: ¬ Changing value from "4" to "2"
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: "indent_style": space (C:/Projekte/myProject/tslint.json)
INFO [com.welovecoding.nbeditorconfig.processor.operation.CodeStyleOperation]: ¬ Current value: true
INFO [com.welovecoding.nbeditorconfig.processor.operation.CodeStyleOperation]: ¬ New value: true
INFO [com.welovecoding.nbeditorconfig.processor.operation.CodeStyleOperation]: ¬ No change needed
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: "insert_final_newline": true (C:/Projekte/myProject/tslint.json)
INFO [com.welovecoding.nbeditorconfig.processor.operation.FinalNewLineOperation]: ¬ Added final new line
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: "trim_trailing_whitespace": true (C:/Projekte/myProject/tslint.json)
INFO [com.welovecoding.nbeditorconfig.processor.operation.TrimTrailingWhiteSpaceOperation]: ¬ Content length until caret: 2.659
INFO [com.welovecoding.nbeditorconfig.processor.operation.TrimTrailingWhiteSpaceOperation]: ¬ Trimmed content length: 2.659
INFO [com.welovecoding.nbeditorconfig.processor.operation.TrimTrailingWhiteSpaceOperation]: ¬ Caret offset: 0
INFO [com.welovecoding.nbeditorconfig.processor.operation.TrimTrailingWhiteSpaceOperation]: ¬ No whitespace trimmed
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Flush style changes for: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Update changes in Editor window for: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Flush file changes for: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Update changes in Editor window for: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.io.writer.StyledDocumentWriter]: Write to "is": java.io.ByteArrayInputStream@326d3b64
INFO [com.welovecoding.nbeditorconfig.io.writer.StyledDocumentWriter]: Write to "document": org.netbeans.modules.csl.core.GsfDocument@265add80, mimeType='text/x-json', kitClass=null, length=2660, version=8, file=org.netbeans.modules.csl.core.GsfDataObject@24835d22[C:\Projekte\myProject\tslint.json@11dd7f09:49308647]
INFO [com.welovecoding.nbeditorconfig.listener.FileChangeListener]: [EC for C:/Projekte/myProject/.editorconfig] File content changed: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.listener.FileChangeListener]: [EC for {0}] Applying rules
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Getting Primary File
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Getting Path
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Apply rules to file: C:/Projekte/myProject/tslint.json (MIME type: text/x-json)
INFO [org.editorconfig.core.EditorConfig]: Used EditorConfig: C:\Projekte\myProject\.editorconfig
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: charset
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: indent_style
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: indent_size
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: end_of_line
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: insert_final_newline
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: trim_trailing_whitespace
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: tab_width
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: Using line ending: LF
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Mapped rules for: C:/Projekte/myProject/tslint.json
1. charset: UTF-8
2. end_of_line: LF
3. indent_size: 2
4. indent_style: space
5. insert_final_newline: true
6. tab_width: 2
7. trim_trailing_whitespace: true
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: "charset": UTF-8 (C:/Projekte/myProject/tslint.json)
INFO [com.welovecoding.nbeditorconfig.processor.operation.tobedone.CharsetOperation]: ¬ Current charset: ISO-8859-1
INFO [com.welovecoding.nbeditorconfig.processor.operation.tobedone.CharsetOperation]: ¬ Changing charset from "ISO-8859-1" to "UTF-8"
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: "end_of_line": LF (C:/Projekte/myProject/tslint.json)
INFO [com.welovecoding.nbeditorconfig.processor.operation.LineEndingOperation]: ¬ No change needed
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: "indent_size": 2 (C:/Projekte/myProject/tslint.json)
INFO [com.welovecoding.nbeditorconfig.processor.operation.CodeStyleOperation]: ¬ Current value: 2
INFO [com.welovecoding.nbeditorconfig.processor.operation.CodeStyleOperation]: ¬ New value: 2
INFO [com.welovecoding.nbeditorconfig.processor.operation.CodeStyleOperation]: ¬ No change needed
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: "indent_style": space (C:/Projekte/myProject/tslint.json)
INFO [com.welovecoding.nbeditorconfig.processor.operation.CodeStyleOperation]: ¬ Current value: true
INFO [com.welovecoding.nbeditorconfig.processor.operation.CodeStyleOperation]: ¬ New value: true
INFO [com.welovecoding.nbeditorconfig.processor.operation.CodeStyleOperation]: ¬ No change needed
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: "insert_final_newline": true (C:/Projekte/myProject/tslint.json)
INFO [com.welovecoding.nbeditorconfig.processor.operation.FinalNewLineOperation]: ¬ No change needed
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: "trim_trailing_whitespace": true (C:/Projekte/myProject/tslint.json)
INFO [com.welovecoding.nbeditorconfig.processor.operation.TrimTrailingWhiteSpaceOperation]: ¬ Content length until caret: 2.660
INFO [com.welovecoding.nbeditorconfig.processor.operation.TrimTrailingWhiteSpaceOperation]: ¬ Trimmed content length: 2.659
INFO [com.welovecoding.nbeditorconfig.processor.operation.TrimTrailingWhiteSpaceOperation]: ¬ Caret offset: 1
INFO [com.welovecoding.nbeditorconfig.processor.operation.TrimTrailingWhiteSpaceOperation]: ¬ No whitespace trimmed
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Flush style changes for: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Update changes in Editor window for: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.io.writer.StyledDocumentWriter]: Write to "is": java.io.ByteArrayInputStream@20d9a11a
INFO [com.welovecoding.nbeditorconfig.io.writer.StyledDocumentWriter]: Write to "document": org.netbeans.modules.csl.core.GsfDocument@265add80, mimeType='text/x-json', kitClass=null, length=2660, version=8, file=org.netbeans.modules.csl.core.GsfDataObject@24835d22[C:\Projekte\myProject\tslint.json@11dd7f09:49308647]
WARNING [org.netbeans.modules.parsing.impl.TaskProcessor]: ParserManager.parse called in AWT event thread by: org.netbeans.modules.csl.core.GsfReformatTask.reformat(GsfReformatTask.java:95)
INFO [com.welovecoding.nbeditorconfig.listener.FileChangeListener]: [EC for C:/Projekte/myProject/.editorconfig] File content changed: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.listener.FileChangeListener]: [EC for C:/Projekte/myProject/.editorconfig] Rules will not be applied to: C:/Projekte/myProject/tslint.json - Change triggered by EditorConfig plugin
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Flush style changes for: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Update changes in Editor window for: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.io.writer.StyledDocumentWriter]: Write to "is": java.io.ByteArrayInputStream@1464c88b
INFO [com.welovecoding.nbeditorconfig.io.writer.StyledDocumentWriter]: Write to "document": org.netbeans.modules.csl.core.GsfDocument@265add80, mimeType='text/x-json', kitClass=null, length=2660, version=8, file=org.netbeans.modules.csl.core.GsfDataObject@24835d22[C:\Projekte\myProject\tslint.json@11dd7f09:49308647]
INFO [com.welovecoding.nbeditorconfig.listener.FileChangeListener]: [EC for C:/Projekte/myProject/.editorconfig] File content changed: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.listener.FileChangeListener]: [EC for C:/Projekte/myProject/.editorconfig] Rules will not be applied to: C:/Projekte/myProject/tslint.json - Change triggered by EditorConfig plugin
INFO [com.welovecoding.nbeditorconfig.io.writer.StyledDocumentWriter]: Moving caret position from 0 to: 2.659 / 2.660
Method will be called to often.
Method will be called to often.
Method will be called to often.
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Flush style changes for: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Update changes in Editor window for: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.io.writer.StyledDocumentWriter]: Write to "is": java.io.ByteArrayInputStream@57290db1
INFO [com.welovecoding.nbeditorconfig.io.writer.StyledDocumentWriter]: Write to "document": org.netbeans.modules.csl.core.GsfDocument@265add80, mimeType='text/x-json', kitClass=null, length=2660, version=14, file=org.netbeans.modules.csl.core.GsfDataObject@24835d22[C:\Projekte\myProject\tslint.json@11dd7f09:49308647]
INFO [com.welovecoding.nbeditorconfig.listener.FileChangeListener]: [EC for C:/Projekte/myProject/.editorconfig] File content changed: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.listener.FileChangeListener]: [EC for {0}] Applying rules
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Getting Primary File
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Getting Path
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Apply rules to file: C:/Projekte/myProject/tslint.json (MIME type: text/x-json)
INFO [org.editorconfig.core.EditorConfig]: Used EditorConfig: C:\Projekte\myProject\.editorconfig
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: charset
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: indent_style
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: indent_size
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: end_of_line
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: insert_final_newline
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: trim_trailing_whitespace
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: tab_width
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: Using line ending: LF
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Mapped rules for: C:/Projekte/myProject/tslint.json
1. charset: UTF-8
2. end_of_line: LF
3. indent_size: 2
4. indent_style: space
5. insert_final_newline: true
6. tab_width: 2
7. trim_trailing_whitespace: true
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: "charset": UTF-8 (C:/Projekte/myProject/tslint.json)
INFO [com.welovecoding.nbeditorconfig.processor.operation.tobedone.CharsetOperation]: ¬ Current charset: UTF-8
INFO [com.welovecoding.nbeditorconfig.processor.operation.tobedone.CharsetOperation]: ¬ No change needed
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: "end_of_line": LF (C:/Projekte/myProject/tslint.json)
INFO [com.welovecoding.nbeditorconfig.processor.operation.LineEndingOperation]: ¬ No change needed
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: "indent_size": 2 (C:/Projekte/myProject/tslint.json)
INFO [com.welovecoding.nbeditorconfig.processor.operation.CodeStyleOperation]: ¬ Current value: 2
INFO [com.welovecoding.nbeditorconfig.processor.operation.CodeStyleOperation]: ¬ New value: 2
INFO [com.welovecoding.nbeditorconfig.processor.operation.CodeStyleOperation]: ¬ No change needed
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: "indent_style": space (C:/Projekte/myProject/tslint.json)
INFO [com.welovecoding.nbeditorconfig.processor.operation.CodeStyleOperation]: ¬ Current value: true
INFO [com.welovecoding.nbeditorconfig.processor.operation.CodeStyleOperation]: ¬ New value: true
INFO [com.welovecoding.nbeditorconfig.processor.operation.CodeStyleOperation]: ¬ No change needed
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: "insert_final_newline": true (C:/Projekte/myProject/tslint.json)
INFO [com.welovecoding.nbeditorconfig.processor.operation.FinalNewLineOperation]: ¬ No change needed
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: "trim_trailing_whitespace": true (C:/Projekte/myProject/tslint.json)
INFO [com.welovecoding.nbeditorconfig.processor.operation.TrimTrailingWhiteSpaceOperation]: ¬ Content length until caret: 2.660
INFO [com.welovecoding.nbeditorconfig.processor.operation.TrimTrailingWhiteSpaceOperation]: ¬ Trimmed content length: 2.659
INFO [com.welovecoding.nbeditorconfig.processor.operation.TrimTrailingWhiteSpaceOperation]: ¬ Caret offset: 1
INFO [com.welovecoding.nbeditorconfig.processor.operation.TrimTrailingWhiteSpaceOperation]: ¬ No whitespace trimmed
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Flush style changes for: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Update changes in Editor window for: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.io.writer.StyledDocumentWriter]: Write to "is": java.io.ByteArrayInputStream@5316838c
INFO [com.welovecoding.nbeditorconfig.io.writer.StyledDocumentWriter]: Write to "document": org.netbeans.modules.csl.core.GsfDocument@265add80, mimeType='text/x-json', kitClass=null, length=2660, version=14, file=org.netbeans.modules.csl.core.GsfDataObject@24835d22[C:\Projekte\myProject\tslint.json@11dd7f09:49308647]
INFO [com.welovecoding.nbeditorconfig.listener.FileChangeListener]: [EC for C:/Projekte/myProject/.editorconfig] File content changed: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.listener.FileChangeListener]: [EC for C:/Projekte/myProject/.editorconfig] Rules will not be applied to: C:/Projekte/myProject/tslint.json - Change triggered by EditorConfig plugin
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Flush style changes for: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Update changes in Editor window for: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.io.writer.StyledDocumentWriter]: Write to "is": java.io.ByteArrayInputStream@1614078a
INFO [com.welovecoding.nbeditorconfig.io.writer.StyledDocumentWriter]: Write to "document": org.netbeans.modules.csl.core.GsfDocument@265add80, mimeType='text/x-json', kitClass=null, length=2660, version=14, file=org.netbeans.modules.csl.core.GsfDataObject@24835d22[C:\Projekte\myProject\tslint.json@11dd7f09:49308647]
INFO [com.welovecoding.nbeditorconfig.listener.FileChangeListener]: [EC for C:/Projekte/myProject/.editorconfig] File content changed: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.listener.FileChangeListener]: [EC for C:/Projekte/myProject/.editorconfig] Rules will not be applied to: C:/Projekte/myProject/tslint.json - Change triggered by EditorConfig plugin
INFO [com.welovecoding.nbeditorconfig.io.writer.StyledDocumentWriter]: Moving caret position from 0 to: 2.659 / 2.660
Method will be called to often.
Method will be called to often.
INFO [com.welovecoding.nbeditorconfig.io.writer.StyledDocumentWriter]: Write to "is": java.io.ByteArrayInputStream@641b1bb7
INFO [com.welovecoding.nbeditorconfig.io.writer.StyledDocumentWriter]: Write to "document": org.netbeans.modules.csl.core.GsfDocument@265add80, mimeType='text/x-json', kitClass=null, length=2660, version=20, file=org.netbeans.modules.csl.core.GsfDataObject@24835d22[C:\Projekte\myProject\tslint.json@11dd7f09:49308647]
INFO [com.welovecoding.nbeditorconfig.listener.FileChangeListener]: [EC for C:/Projekte/myProject/.editorconfig] File content changed: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.listener.FileChangeListener]: [EC for {0}] Applying rules
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Getting Primary File
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Getting Path
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Apply rules to file: C:/Projekte/myProject/tslint.json (MIME type: text/x-json)
INFO [org.editorconfig.core.EditorConfig]: Used EditorConfig: C:\Projekte\myProject\.editorconfig
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: charset
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: indent_style
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: indent_size
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: end_of_line
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: insert_final_newline
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: trim_trailing_whitespace
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: tab_width
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: Using line ending: LF
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Mapped rules for: C:/Projekte/myProject/tslint.json
1. charset: UTF-8
2. end_of_line: LF
3. indent_size: 2
4. indent_style: space
5. insert_final_newline: true
6. tab_width: 2
7. trim_trailing_whitespace: true
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: "charset": UTF-8 (C:/Projekte/myProject/tslint.json)
INFO [com.welovecoding.nbeditorconfig.processor.operation.tobedone.CharsetOperation]: ¬ Current charset: UTF-8
INFO [com.welovecoding.nbeditorconfig.processor.operation.tobedone.CharsetOperation]: ¬ No change needed
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: "end_of_line": LF (C:/Projekte/myProject/tslint.json)
INFO [com.welovecoding.nbeditorconfig.processor.operation.LineEndingOperation]: ¬ No change needed
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: "indent_size": 2 (C:/Projekte/myProject/tslint.json)
INFO [com.welovecoding.nbeditorconfig.processor.operation.CodeStyleOperation]: ¬ Current value: 2
INFO [com.welovecoding.nbeditorconfig.processor.operation.CodeStyleOperation]: ¬ New value: 2
INFO [com.welovecoding.nbeditorconfig.processor.operation.CodeStyleOperation]: ¬ No change needed
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: "indent_style": space (C:/Projekte/myProject/tslint.json)
INFO [com.welovecoding.nbeditorconfig.processor.operation.CodeStyleOperation]: ¬ Current value: true
INFO [com.welovecoding.nbeditorconfig.processor.operation.CodeStyleOperation]: ¬ New value: true
INFO [com.welovecoding.nbeditorconfig.processor.operation.CodeStyleOperation]: ¬ No change needed
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: "insert_final_newline": true (C:/Projekte/myProject/tslint.json)
INFO [com.welovecoding.nbeditorconfig.processor.operation.FinalNewLineOperation]: ¬ No change needed
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: "trim_trailing_whitespace": true (C:/Projekte/myProject/tslint.json)
INFO [com.welovecoding.nbeditorconfig.processor.operation.TrimTrailingWhiteSpaceOperation]: ¬ Content length until caret: 2.660
INFO [com.welovecoding.nbeditorconfig.processor.operation.TrimTrailingWhiteSpaceOperation]: ¬ Trimmed content length: 2.659
INFO [com.welovecoding.nbeditorconfig.processor.operation.TrimTrailingWhiteSpaceOperation]: ¬ Caret offset: 1
INFO [com.welovecoding.nbeditorconfig.processor.operation.TrimTrailingWhiteSpaceOperation]: ¬ No whitespace trimmed
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Flush style changes for: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Update changes in Editor window for: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.io.writer.StyledDocumentWriter]: Write to "is": java.io.ByteArrayInputStream@6cc21275
INFO [com.welovecoding.nbeditorconfig.io.writer.StyledDocumentWriter]: Write to "document": org.netbeans.modules.csl.core.GsfDocument@265add80, mimeType='text/x-json', kitClass=null, length=2660, version=20, file=org.netbeans.modules.csl.core.GsfDataObject@24835d22[C:\Projekte\myProject\tslint.json@11dd7f09:49308647]
INFO [com.welovecoding.nbeditorconfig.listener.FileChangeListener]: [EC for C:/Projekte/myProject/.editorconfig] File content changed: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.listener.FileChangeListener]: [EC for C:/Projekte/myProject/.editorconfig] Rules will not be applied to: C:/Projekte/myProject/tslint.json - Change triggered by EditorConfig plugin
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Flush style changes for: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Update changes in Editor window for: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.io.writer.StyledDocumentWriter]: Write to "is": java.io.ByteArrayInputStream@3b6166f3
INFO [com.welovecoding.nbeditorconfig.io.writer.StyledDocumentWriter]: Write to "document": org.netbeans.modules.csl.core.GsfDocument@265add80, mimeType='text/x-json', kitClass=null, length=2660, version=20, file=org.netbeans.modules.csl.core.GsfDataObject@24835d22[C:\Projekte\myProject\tslint.json@11dd7f09:49308647]
INFO [com.welovecoding.nbeditorconfig.listener.FileChangeListener]: [EC for C:/Projekte/myProject/.editorconfig] File content changed: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.listener.FileChangeListener]: [EC for C:/Projekte/myProject/.editorconfig] Rules will not be applied to: C:/Projekte/myProject/tslint.json - Change triggered by EditorConfig plugin
INFO [com.welovecoding.nbeditorconfig.io.writer.StyledDocumentWriter]: Moving caret position from 0 to: 2.659 / 2.660
WARNING [org.openide.util.WeakListenerImpl]: Can't remove java.beans.PropertyChangeListener using method org.netbeans.modules.csl.core.GsfDocument.removePropertyChangeListener from org.netbeans.modules.csl.core.GsfDocument@265add80, mimeType='text/x-json', kitClass=null, length=2660, version=20, file=org.netbeans.modules.csl.core.GsfDataObject@24835d22[C:\Projekte\myProject\tslint.json@11dd7f09:49308647]
WARNING [org.openide.util.WeakListenerImpl]: Can't remove java.beans.PropertyChangeListener using method org.netbeans.modules.csl.core.GsfDocument.removePropertyChangeListener from org.netbeans.modules.csl.core.GsfDocument@265add80, mimeType='text/x-json', kitClass=null, length=2660, version=20, file=org.netbeans.modules.csl.core.GsfDataObject@24835d22[C:\Projekte\myProject\tslint.json@11dd7f09:49308647]
WARNING [org.openide.util.WeakListenerImpl]: Can't remove java.beans.PropertyChangeListener using method org.netbeans.modules.csl.core.GsfDocument.removePropertyChangeListener from org.netbeans.modules.csl.core.GsfDocument@265add80, mimeType='text/x-json', kitClass=null, length=2660, version=20, file=org.netbeans.modules.csl.core.GsfDataObject@24835d22[C:\Projekte\myProject\tslint.json@11dd7f09:49308647]

So this method should be refactored. I added a sout, that you can see how often it will called.

Cheers

Chris

Mte90 commented 7 years ago

Seems also that on saving the file there are different refresh (I see the cursor blinking from pointer to write). Removing the plugin now netbeans don't get 77% of my cpu, seems that the actual plugin also with the fix offormat is not yet stable to use it.

Chris2011 commented 7 years ago

I think the refresh is normal, because of adding the formatted text again to the editor, maybe there can be an other possibility to reformat it with the normal NB functionality but map the settings from the editor config file.

Chris2011 commented 6 years ago

Can someone have a deeper look into this problem, with more knowledge? I think this is one big problem and needs a fix for this.

Chris2011 commented 6 years ago

Anything new here? Anyone?

Chris2011 commented 5 years ago

Can please someone have a look who has more knowledge about it, than me? @bennyn or @Mte90 can you maybe have a look please? Otherwise the plugin will be unusable.

Mte90 commented 5 years ago

I am not using anymore this plugin and migrated to Vim. I am using Netbeans only for few projects right now.

bennycode commented 5 years ago

@Chris2011 I switched to WebStorm a few years ago so I am not up-to-date with NetBeans development but PRs for this project here are more than welcome. Do you have an idea how to improve the performance problem and have less calls to writeWithEditorKit?

Chris2011 commented 5 years ago

@bennyn I have to understand, why this is happening or why does this implemented as it was. Maybe a rewrite will fix the problem anyway(?).

Chris2011 commented 5 years ago

@bennyn hey, can you please add prio: high on that? This is a big problem of this plugin.