This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I just installed netbeans 7.4 ever since i often loose all netbeans configuration. For example: opened projects and space identation settings. I have used netbeans 7.3 months before without any problem. Sometimes it does save, sometimes it doesn't.
Can you please attach messages.log? Is there any problem with write access to the userdir?
Created attachment 141557 [details] netbeans messages.log Retrieved from: C:\Users\pl\AppData\Roaming\NetBeans\7.4\var\log
I'm not aware of any problems with write access to the user dir. Which particular dir would i check and how would i check it?
Thanks for log, the only exception in it are java.io.IOException: Cannot read DefaultAttributes.: attributes.xml [catch] at org.openide.filesystem.DefaultAttributes.loadTable(DefaultAttributes.java:723) at org.openide.filesystem.DefaultAttributes.load(DefaultAttributes.java:673) at org.openide.filesystem.DefaultAttributes.loadTable(DefaultAttributes.java:651) at org.openide.filesystem.DefaultAttributes.readAttribute(DefaultAttributes.java:373) at org.netbeans.modules.masterfs.ExLocalFileSystem$OneFileAttributeAttachedToRoot.readAttribute(ExLocalFileSystem.java:98) at org.netbeans.modules.masterfs.providers.Attributes.readAttribute(Attributes.java:141) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.BaseFileObj.getAttribute(BaseFileObj.java:512) and java.io.IOException: Cannot read DefaultAttributes.: Windows2Local/Modes/.nbattrs [catch] at org.openide.filesystem.DefaultAttributes.loadTable(DefaultAttributes.java:723) at org.openide.filesystem.DefaultAttributes.load(DefaultAttributes.java:673) at org.openide.filesystem.DefaultAttributes.loadTable(DefaultAttributes.java:651) at org.openide.filesystem.DefaultAttributes.readAttribute(DefaultAttributes.java:373) at org.openide.filesystem.LocalFileSystem$InnerAttrs.readAttribute(LocalFileSystem.java:737) at org.netbeans.core.startup.layers.LocalFileSystemEx$DelegatingAttributes.readAttribute(LocalFileSystemEx. -> reassigning for further evaluation
Did you import settings from 7.3 to 7.4? Maybe the contents of the files is incorrect. If you can still reproduce this bug, can you please attach file that caused the error (e.g. Windows2Local/Modes/.nbattrs in your userdir) to this issue? Thank you.
Yes i imported configuration and plugins from 7.3. I couldn't continue with my work like this, also project (netbeans metadata) was getting corrupt. So i unstalled Netbeans and java, then cleaned up all files and registry entries i could find and installed the latest version of Java JDK and netbeans. Seems fine so far. Sorry i can not reproduce the issue anymore.
(In reply to flip101 from comment #6) > Yes i imported configuration and plugins from 7.3. It could have caused some of the problems. > I couldn't continue with my work like this, also project (netbeans metadata) > was getting corrupt. So i unstalled Netbeans and java, then cleaned up all > files and registry entries i could find and installed the latest version of > Java JDK and netbeans. Seems fine so far. Sorry i can not reproduce the > issue anymore. Of course. I'll mark this bug as incomplete, because we cannot say what was broken. If someone can reproduce this bug and attach the corrupted file, we'll reopen this issue. Thank you very much for reporting.
Created attachment 142217 [details] Reproducing the bug, relevant files C:\Users\pl\AppData\Roaming\NetBeans\7.4\var\log\messages.log C:\Users\pl\AppData\Roaming\NetBeans\7.4\var\attributes.xml C:\Users\pl\AppData\Roaming\NetBeans\7.4\config\Windows2Local\Modes\.nbattrs
It happened again ... i made a new attachment with more files now. The only thing i did from the default netbeans installation is adding a plugin for line endings (which now seems to be missing if i go to the plugin window and look at installation plugins), and: In config file: C:\Program Files\NetBeans 7.4\etc\netbeans.conf i modified: netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.java2d.dpiaware=true -J-Dsun.zip.disableMemoryMapping=true -J-Dline.separator=LF" by adding: -J-Dline.separator=LF
(In reply to flip101 from comment #9) > by adding: > -J-Dline.separator=LF The line.separator property is set incorrectly. I think it shouldn't be changed. See http://stackoverflow.com/questions/3708991/setting-java-vm-line-separator.
removing -J-Dline.separator=LF or -J-Dline.separator=$'\n' seems to make the difference. Bug solved. Though as feature request it would be nice to support other line endings then the oeprating system. Thanks for support.