That seems very familiar. I have organize imports and remove unused imports enabled as well. I remember few cases where I had this problem with .java files having minor syntax errors but not always.
On Thu, Sep 15, 2022, 12:21 AM Bilu <albi...@gmail.com> wrote: > i am facing the same issue since a while. Its seems to be related to > those reported issues: https://github.com/apache/netbeans/issues/4515 > and https://github.com/apache/netbeans/issues/4054 > > On my case it happen with LSP related files (i registered 2 LSP clients > for Python and RobotFramework) and when editing *.robot or *.py i face > this issue. > > I first tought that it was related to the LSP client but as explained in > https://github.com/apache/netbeans/issues/4054 its happen also for C++ > files and i do face the issue once while editing a Java file (not sure > if the new C++ light and Java are using LSP by default in Netbeans) > > But i also think that it is related to the On save: Format and Organise > feature as explained in the issue > > Le 13/09/2022 à 19:27, Ömer Halit Çizmeci a écrit : > > I'll definitely wake this thread the next time I face this problem and > I'll > > provide more feedback. Visual VM will help. > > > > Thanks. > > > > On Tue, Sep 13, 2022, 7:56 PM László Kishalmi<laszlo.kisha...@gmail.com> > > wrote: > > > >> Or you can try to attach a VisualVM to the NetBeans process, to see what > >> the IDE is doing. > >> > >> On Tue, Sep 13, 2022 at 9:34 AM Ernie Rael<err...@raelity.com> wrote: > >> > >>> There a program that will tell you what windows processes have a given > >>> file open, maybe other info about the file. That might be informative. > >>> > >>> -ernie > >>> > >>> (I'm rushed, can't look for it now) > >>> > >>> > >>> On 9/13/22 7:20 AM, Ömer Halit Çizmeci wrote: > >>>> Well. It is still a possibility but I doubt that because it's a high > >> end > >>>> new PC. If that ever happens again, do you need me to do anything > >>>> specifically? Just keep in mind that NetBeans does not respond at all. > >>>> > >>>> On Tue, Sep 13, 2022, 5:16 PM Eirik Bakke<eba...@ultorg.com> wrote: > >>>> > >>>>> One possibility--perhaps less likely than a bug in NetBeans, but > still > >>>>> worth considering--is a failing hard drive or SSD drive. It might be > a > >>> good > >>>>> time to take a backup of your files, just in case. > >>>>> > >>>>> -- Eirik > >>>>> > >>>>> -----Original Message----- > >>>>> From: Ömer Halit Çizmeci<omerha...@gmail.com> > >>>>> Sent: Tuesday, September 13, 2022 2:50 AM > >>>>> To:dev@netbeans.apache.org > >>>>> Subject: Re: Sudden File Lock Freeze > >>>>> > >>>>> I only encountered this while editing .java files but I am not sure > if > >>> it > >>>>> is file type specific. It is part of a Java Web Application project > >> file > >>>>> and I can guarantee that the file is not opened in any other > >>> application. I > >>>>> don't have any antivirus program other than Windows Defender and I > >> don't > >>>>> have a virus on my computer. > >>>>> > >>>>> On Tue, Sep 13, 2022, 4:58 AM Laszlo Kishalmi < > >>> laszlo.kisha...@gmail.com> > >>>>> wrote: > >>>>> > >>>>>> One of the most important information is missing. > >>>>>> > >>>>>> What type of file are you editing? > >>>>>> > >>>>>> On 9/12/22 17:01, Ömer Halit Çizmeci wrote: > >>>>>>> Hi, > >>>>>>> > >>>>>>> I have been having this problem I think since NB13 and it occurs in > >>>>>>> NB14 and NB15. The application suddenly freezes entirely with no > >>>>>>> response at > >>>>>> all > >>>>>>> when I hit CTRL+S to save a file. There is no pattern I could > figure > >>>>>>> out but when this happens, it is extremely hard to revert it back > to > >>>>> normal. > >>>>>>> Restarting NetBeans does not help. Restarting my PC does not help. > >>>>>> Whenever > >>>>>>> I save on that specific file, NetBeans freezes immediately and the > >>>>>>> only > >>>>>> way > >>>>>>> is to force close in task manager. > >>>>>>> > >>>>>>> After this incident repeat so many times, I had to look for a > >>>>> workaround. > >>>>>>> The only way I was able to resume NetBeans without having to force > >>>>>>> close was to navigate to the file via file explorer and rename that > >>>>>>> specific file. Then NB would pop-up the file modified outside of NB > >>>>>>> and ask if I want to reload. After this point, NB continues to run > >>>>>>> as normal but if I hit CTRL+S again on that file, NB will freeze. > >>>>>>> And restarting Windows or NetBeans does not help. > >>>>>>> > >>>>>>> After a long time of investigating, I was able to find a way to fix > >>>>>>> it > >>>>>> for > >>>>>>> that moment. I'd open that specific file in Notepad and make a > >>>>>>> slight modification and save it. Then NetBeans is able to save on > >>>>>>> that file and runs normally until this random bug appears. It is > >>>>>>> like the file is > >>>>>> locked > >>>>>>> by another process and NetBeans cannot get hold of that file and > >>>>> freezes. > >>>>>>> This happens randomly with random files. > >>>>>>> > >>>>>>> This happens in Windows 10 and Windows 11 using NB15 with Java 17. > >>>>>>> > >>>>>>> What else should I provide to contribute to this? > >>>>>>> > >>>>>> > --------------------------------------------------------------------- > >>>>>> To unsubscribe, e-mail:dev-unsubscr...@netbeans.apache.org > >>>>>> For additional commands, e-mail:dev-h...@netbeans.apache.org > >>>>>> > >>>>>> For further information about the NetBeans mailing lists, visit: > >>>>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>> > >>> --------------------------------------------------------------------- > >>> To unsubscribe, e-mail:dev-unsubscr...@netbeans.apache.org > >>> For additional commands, e-mail:dev-h...@netbeans.apache.org > >>> > >>> For further information about the NetBeans mailing lists, visit: > >>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > >>> > >>> > >>> > >>>