apache / netbeans

Apache NetBeans
https://netbeans.apache.org/
Apache License 2.0
2.6k stars 836 forks source link

Netbeans 20 - problem with scanning external sources (cannot see them) #6986

Open vexladdie opened 5 months ago

vexladdie commented 5 months ago

Apache NetBeans version

Apache NetBeans 20

What happened

Hello, i reinstalled my PC and installed newest Netbeans 20. I have problem, that netbeans cannot see changes what i made out of netbeans. while i move files to projects, minify sources, convert sass/less to css, minify css throught netbean module netbeans dont see that and cannot autoupload files on FTP.

On older versions of netbeans everythink was OK. When i changed something externally, netbeans auto recognize change and auto upload file.

At project settings i have checked "auto upload on save" - its working fine when im doing changes in netbeans.

At netbeans settings i have in Tools -> options -> Miscellaneous -> Files checked "Enable auto scanning sources".

Does anyone have same problem?

Anyone have any ideas please?

Thank you all! Dominik

Language / Project Type / NetBeans Component

PHP, whole Netbeans

How to reproduce

When i move file to Netbeans project externally (For example from WinSCP), im going look into netbeans, file is not showed in project. I need to "upload" and "download" file to see it or use Synchronize.

Did this work correctly in an earlier version?

Apache NetBeans 18

Operating System

Windows

JDK

java version "21.0.1" 2023-10-17 LTS

Apache NetBeans packaging

Apache NetBeans provided installer

Anything else

No response

Are you willing to submit a pull request?

No

neilcsmith-net commented 5 months ago

Please fill in language, project type, how to reproduce, etc. And check the log (View / IDE Log) for signs of issue.

vexladdie commented 5 months ago

@neilcsmith-net
I added description of how to reproduce error. I filled up language but i dont think its project based problem. It doesnt matter which one project i open, behaviour is same.

I reviewed logs but not found anything bad. In log i can see that Netbeans are indexing:

INFO [org.netbeans.ui.indexing]: Indexing started, time from last indexing 4 039 ms. INFO [org.netbeans.ui.indexing]: Indexing finished, indexing took 112 ms. INFO [org.netbeans.ui.indexing]: Indexing started, time from last indexing 8 582 ms. INFO [org.netbeans.ui.indexing]: Indexing finished, indexing took 110 ms. INFO [org.netbeans.ui.indexing]: Indexing started, time from last indexing 3 324 ms. INFO [org.netbeans.ui.indexing]: Indexing finished, indexing took 93 ms.

I can send you full log if its needed.

Thank you,

vexladdie commented 5 months ago

Hello guys, any advice what can be wrong, or some progress with this problem please? Thank you, Dominik

IvanSca commented 5 months ago

Hi everyone, I have the same problem too. Up until netbeans version 18 it worked fine. For me the problem occurred on versions 19 and 20, always installed on the same machine and version 20 installed on the PC after formatting. I searched the various forums and found no solutions. Has anyone solved the problem? Thank you.

haidubogdan commented 4 months ago

From the ticket description I presume that there could be an issue with the netbeans FileListener functionality when the source files are on remote disks / networks. I noticed this when I worked on a log watcher plugin in netbeans. Changes on remote files are not monitored after a while. (maybe there is a autoclose feature, as the listener would require a Thread to be always opened) This is just a hint.

vexladdie commented 4 months ago

@haidubogdan Hello, Thank you for your answer. I have files on local disk and i cannot see them (as desc). It doesnt matter if i have remote connection or not, becouse i cannot see them on local file system (in netbeans). While i cannot see them, netbeans cannot autoupload on save them. Dominik

vexladdie commented 1 month ago

@IvanSca @neilcsmith-net i found workaround, maybe it helps to get issue done. While i have a project connected with git, when i want to commit (search for changes) it automatically recognize files and auto-upload them. I have shortcut for commit, so when i know, somehing changed, i can use it and files are shown and uploaded.

Dominik