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

NetBeans freezes if I try to save document when suggestions box is opened. #97

Open
MekDrop opened this issue Apr 26, 2016 · 9 comments

Comments

@MekDrop
Copy link

MekDrop commented Apr 26, 2016

I don't know if that happens with other language but for PHP this means that when this happens I always need to kill NetBeans App and start again.

@ZaLiTHkA
Copy link

By "suggest box", I assume you're talking about NB's code hinting system, correct? Does your only get stuck after that box is shown or does it also happen if you open a file, add then remove a space, then try save it?

I'm just curious to see if this is in any way related to my bug report in #93..

@MekDrop
Copy link
Author

MekDrop commented Apr 26, 2016

Yeah. You found a better name for this thing. I'm talking about it.

I'm sure that this happens when this box is opened. I mean I type fast. This box is shown. And I use shortcut to save file. Than everything freezes.

About spaces: I think usually everything ok. At least I can't say that I'm 100% sure that somehow because of this such thing happens :/

Also I just have tried with JS file and no freezes. It seems somehow related PHP autocompletion and editorconfig (without editor config plug-in everything works fine).

@ZaLiTHkA
Copy link

The idea of adding and removing a space is for nothing more than getting NetBeans to see the file as "edited".. The fact that I choose to use a space doesn't actually mean anything here.

With regards to file formats, I only noticed this behaviour myself with .properties files, but I only deal with PHP files at home in personal projects (which I use Sublime Text for).. I deal mostly with Java projects here at work.

@vimar
Copy link

vimar commented Aug 17, 2016

I have the same problem, it seems to arrive more often on phptemplate (files with PHP and HTML mixed into it).

@bennycode
Copy link
Member

@vimar and @ZaLiTHkA can you make a screenshot of the freeze and NetBeans console log?

@vimar
Copy link

vimar commented Aug 17, 2016

@bennyn where I can find the NB console log?

btw, I'm using NB 8.1 on Ubuntu 16.04 LTS

@bennycode
Copy link
Member

@vimar I double checked the issue. You can find NetBeans log messages also in a file. On Windows they are saved here: %APPDATA%\NetBeans\8.1\var\log\messages.log. On Ubuntu they should be in a similar path (within your NetBeans user directory).

It would be nice if you can check the logs (when your NB crashes) and post them here. Our log entries start with com.welovecoding.nbeditorconfig.

Example:

INFO [com.welovecoding.nbeditorconfig.listener.ProjectOpenCloseListener]: Opened project: javeasy
INFO [com.welovecoding.nbeditorconfig.listener.ListenerAttacher]: ¬ Skipped directory: D:/dev/projects/welovecoding/javeasy/.openshift
INFO [com.welovecoding.nbeditorconfig.listener.ListenerAttacher]: ¬ Skipped directory: D:/dev/projects/welovecoding/javeasy/.git
INFO [com.welovecoding.nbeditorconfig.listener.EditorConfigChangeListener]: Attached EditorConfigChangeListener to: D:/dev/projects/welovecoding/javeasy/.editorconfig

@vimar
Copy link

vimar commented Aug 17, 2016

NetBeans just freezes:

INFO [org.editorconfig.core.EditorConfig]: Used EditorConfig: /home/lxc/lhg/home/smile/lhg/trunk/.editorconfig
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: end_of_line
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: indent_style
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: indent_size
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: charset
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: trim_trailing_whitespace
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: insert_final_newline
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: /home/lxc/lhg/home/smile/lhg/trunk/src/common/sites/all/modules/custom/lhg/modules/lhg_blocks/lhg_blocks.module
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 (/home/lxc/lhg/home/smile/lhg/trunk/src/common/sites/all/modules/custom/lhg/modules/lhg_blocks/lhg_blocks.module)
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 (/home/lxc/lhg/home/smile/lhg/trunk/src/common/sites/all/modules/custom/lhg/modules/lhg_blocks/lhg_blocks.module)
INFO [com.welovecoding.nbeditorconfig.processor.operation.LineEndingOperation]: ¬ No change needed
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: "indent_size": 2 (/home/lxc/lhg/home/smile/lhg/trunk/src/common/sites/all/modules/custom/lhg/modules/lhg_blocks/lhg_blocks.module)
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 (/home/lxc/lhg/home/smile/lhg/trunk/src/common/sites/all/modules/custom/lhg/modules/lhg_blocks/lhg_blocks.module)
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 (/home/lxc/lhg/home/smile/lhg/trunk/src/common/sites/all/modules/custom/lhg/modules/lhg_blocks/lhg_blocks.module)
INFO [com.welovecoding.nbeditorconfig.processor.operation.FinalNewLineOperation]: ¬ No change needed
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: "trim_trailing_whitespace": true (/home/lxc/lhg/home/smile/lhg/trunk/src/common/sites/all/modules/custom/lhg/modules/lhg_blocks/lhg_blocks.module)
INFO [com.welovecoding.nbeditorconfig.processor.operation.TrimTrailingWhiteSpaceOperation]: ¬ Content length until caret: 29 534
INFO [com.welovecoding.nbeditorconfig.processor.operation.TrimTrailingWhiteSpaceOperation]: ¬ Trimmed content length: 29 533
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: /home/lxc/lhg/home/smile/lhg/trunk/src/common/sites/all/modules/custom/lhg/modules/lhg_blocks/lhg_blocks.module
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Update changes in Editor window for: /home/lxc/lhg/home/smile/lhg/trunk/src/common/sites/all/modules/custom/lhg/modules/lhg_blocks/lhg_blocks.module
INFO [com.welovecoding.nbeditorconfig.io.writer.StyledDocumentWriter]: Write to "is": java.io.ByteArrayInputStream@48543a83
INFO [com.welovecoding.nbeditorconfig.io.writer.StyledDocumentWriter]: Write to "document": org.netbeans.modules.csl.core.GsfDocument@34895208, mimeType='text/x-php5', kitClass=null, length=29534, version=250, file=org.netbeans.modules.csl.core.GsfDataObject@91a522[/home/lxc/lhg/home/smile/lhg/trunk/src/common/sites/all/modules/custom/lhg/modules/lhg_blocks/lhg_blocks.module@15e4814d:71fae902]
INFO [com.welovecoding.nbeditorconfig.listener.FileChangeListener]: [EC for /home/lxc/lhg/home/smile/lhg/trunk/.editorconfig] File content changed: /home/lxc/lhg/home/smile/lhg/trunk/src/common/sites/all/modules/custom/lhg/modules/lhg_blocks/lhg_blocks.module
INFO [com.welovecoding.nbeditorconfig.listener.FileChangeListener]: [EC for /home/lxc/lhg/home/smile/lhg/trunk/.editorconfig] Rules will not be applied to: /home/lxc/lhg/home/smile/lhg/trunk/src/common/sites/all/modules/custom/lhg/modules/lhg_blocks/lhg_blocks.module - Change triggered by EditorConfig plugin
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Flush style changes for: /home/lxc/lhg/home/smile/lhg/trunk/src/common/sites/all/modules/custom/lhg/modules/lhg_blocks/lhg_blocks.module
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Update changes in Editor window for: /home/lxc/lhg/home/smile/lhg/trunk/src/common/sites/all/modules/custom/lhg/modules/lhg_blocks/lhg_blocks.module
INFO [com.welovecoding.nbeditorconfig.io.writer.StyledDocumentWriter]: Write to "is": java.io.ByteArrayInputStream@4c6ba751
INFO [com.welovecoding.nbeditorconfig.io.writer.StyledDocumentWriter]: Write to "document": org.netbeans.modules.csl.core.GsfDocument@34895208, mimeType='text/x-php5', kitClass=null, length=29534, version=250, file=org.netbeans.modules.csl.core.GsfDataObject@91a522[/home/lxc/lhg/home/smile/lhg/trunk/src/common/sites/all/modules/custom/lhg/modules/lhg_blocks/lhg_blocks.module@15e4814d:71fae902]
INFO [com.welovecoding.nbeditorconfig.listener.FileChangeListener]: [EC for /home/lxc/lhg/home/smile/lhg/trunk/.editorconfig] File content changed: /home/lxc/lhg/home/smile/lhg/trunk/src/common/sites/all/modules/custom/lhg/modules/lhg_blocks/lhg_blocks.module
INFO [com.welovecoding.nbeditorconfig.listener.FileChangeListener]: [EC for /home/lxc/lhg/home/smile/lhg/trunk/.editorconfig] Rules will not be applied to: /home/lxc/lhg/home/smile/lhg/trunk/src/common/sites/all/modules/custom/lhg/modules/lhg_blocks/lhg_blocks.module - Change triggered by EditorConfig plugin
INFO [com.welovecoding.nbeditorconfig.io.writer.StyledDocumentWriter]: Moving caret position from 0 to: 16 304 / 29 534

@bennycode
Copy link
Member

Thanks @vimar. It looks like it crashes when writing to the document. Or when moving the caret position. I will add more logs to be able to debug this!

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

No branches or pull requests

4 participants