You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@netbeans.apache.org by Scott Palmer <sw...@gmail.com> on 2019/11/04 17:01:32 UTC

Files view not showing all files

I've noticed with NB 11.2 that the Files panel doesn't allow me to browse
all the files.  There are folders on my disk that simply don't show up.
They are normal, non-hidden folders.  I've looked in the NB messages.log
file and there doesn't appear to be anything that indicates it was having
an issue reading the folders.  I can't find any way to force a manual
refresh either.

The folders are where my Gradle build places some generated files, so the
folders may not be initially present when the project opens, however, even
after the folders are created, reopening the project still doesn't show
them.  If I exit NB and launch it again, the folders will show - until I do
a build (which may remove and recreate the folders) and then most of the
folders are invisible to NB again.

This is on Windows 10 with NB 11.2 running on JDK 8u202

Just wondering if anyone else can confirm this before I file an issue.

Regards,

Scott

Re: Files view not showing all files

Posted by Neil C Smith <ne...@apache.org>.
On Tue, 5 Nov 2019 at 19:02, Laszlo Kishalmi <la...@gmail.com> wrote:
>
> The reporter is more specific on that. Gradle build as an external
> process creates/deletes some part of the project build dir. Those
> changes are not immediately took up by the IDE in the files (and
> favorites as well).
>

They are here!  At least I'm pretty sure it works with the Gradle
projects to hand, hence the query.  eg. would you expect the website
project to be affected by this problem?  I've watched that enough
times! :-)

Best wishes,

Neil

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: Files view not showing all files

Posted by Laszlo Kishalmi <la...@gmail.com>.
The reporter is more specific on that. Gradle build as an external 
process creates/deletes some part of the project build dir. Those 
changes are not immediately took up by the IDE in the files (and 
favorites as well).

Yes I experience that.

On 11/5/19 10:02 AM, Neil C Smith wrote:
> On Tue, 5 Nov 2019 at 16:51, Laszlo Kishalmi <la...@gmail.com> wrote:
>> Why I'm so sure is that, I'm experiencing this since NetBeans 8.1 using
>> it under Linux.
> So you don't see externally created / deleted files show up
> immediately in the Files tab?
>
> Neil
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@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-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: Files view not showing all files

Posted by Neil C Smith <ne...@apache.org>.
On Tue, 5 Nov 2019 at 16:51, Laszlo Kishalmi <la...@gmail.com> wrote:
> Why I'm so sure is that, I'm experiencing this since NetBeans 8.1 using
> it under Linux.

So you don't see externally created / deleted files show up
immediately in the Files tab?

Neil

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: Files view not showing all files

Posted by Laszlo Kishalmi <la...@gmail.com>.
Why I'm so sure is that, I'm experiencing this since NetBeans 8.1 using 
it under Linux. As the workaround was pretty convenient I did not pay 
too much attention figuring out the details.

The corresponding code is here: 
https://github.com/apache/netbeans/blob/fb38c4ec8b578efd70fc84d81fcff8a16b495deb/groovy/gradle/src/org/netbeans/modules/gradle/execute/AbstractGradleExecutor.java#L149

Maybe just running a FileObject.refresh(true) on the project directory 
would be better or refresh(false)?

So this one cold be an easy fix if someone has the patience to test it out.

On 11/5/19 2:57 AM, Neil C Smith wrote:
> On Mon, 4 Nov 2019 at 18:34, Laszlo Kishalmi <la...@gmail.com> wrote:
>> It is definitely not NIO2 related.
> OK.  Why so sure?  Problem doesn't happen on Linux.  And Scott
> suggested didn't happen with 11.1, although be good to confirm that.
>
> Best wishes,
>
> Neil
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@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-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: Files view not showing all files

Posted by Neil C Smith <ne...@apache.org>.
On Mon, 4 Nov 2019 at 18:34, Laszlo Kishalmi <la...@gmail.com> wrote:
>
> It is definitely not NIO2 related.

OK.  Why so sure?  Problem doesn't happen on Linux.  And Scott
suggested didn't happen with 11.1, although be good to confirm that.

Best wishes,

Neil

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: Files view not showing all files

Posted by Laszlo Kishalmi <la...@gmail.com>.
It is definitely not NIO2 related.

On 11/4/19 9:15 AM, Neil C Smith wrote:
> On Mon, 4 Nov 2019 at 17:06, Laszlo Kishalmi <la...@gmail.com> wrote:
>> Confirmed. It works like that from the beginning. Technically we fire a
>> forlder refresh once the build finishes, but probably we would need to
>> be more specific when we issue that.
> Is that definitely not related to the NIO2 change in 11.2?
>
> Best wishes,
>
> Neil
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@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-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: Files view not showing all files

Posted by Scott Palmer <sw...@gmail.com>.
I suspect it could be related to the NIO2 changes.  I don't remember
needing to do this before.  Specifically, if I do a build outside the IDE
and then go back, normally NB new enough to refresh automatically at that
point.

It would be nice to have "Scan For External Changes" in the context menu
for the folder as well.

Scott

On Mon, Nov 4, 2019 at 12:16 PM Neil C Smith <ne...@apache.org> wrote:

> On Mon, 4 Nov 2019 at 17:06, Laszlo Kishalmi <la...@gmail.com>
> wrote:
> >
> > Confirmed. It works like that from the beginning. Technically we fire a
> > forlder refresh once the build finishes, but probably we would need to
> > be more specific when we issue that.
>
> Is that definitely not related to the NIO2 change in 11.2?
>
> Best wishes,
>
> Neil
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>

Re: Files view not showing all files

Posted by Neil C Smith <ne...@apache.org>.
On Mon, 4 Nov 2019 at 17:06, Laszlo Kishalmi <la...@gmail.com> wrote:
>
> Confirmed. It works like that from the beginning. Technically we fire a
> forlder refresh once the build finishes, but probably we would need to
> be more specific when we issue that.

Is that definitely not related to the NIO2 change in 11.2?

Best wishes,

Neil

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: Files view not showing all files

Posted by Laszlo Kishalmi <la...@gmail.com>.
Confirmed. It works like that from the beginning. Technically we fire a 
forlder refresh once the build finishes, but probably we would need to 
be more specific when we issue that.

You can file an issue against that, if you wish. The workaround is to 
select the build folder and do a Source > Scan for External Changes

On 11/4/19 9:01 AM, Scott Palmer wrote:
> I've noticed with NB 11.2 that the Files panel doesn't allow me to browse
> all the files.  There are folders on my disk that simply don't show up.
> They are normal, non-hidden folders.  I've looked in the NB messages.log
> file and there doesn't appear to be anything that indicates it was having
> an issue reading the folders.  I can't find any way to force a manual
> refresh either.
>
> The folders are where my Gradle build places some generated files, so the
> folders may not be initially present when the project opens, however, even
> after the folders are created, reopening the project still doesn't show
> them.  If I exit NB and launch it again, the folders will show - until I do
> a build (which may remove and recreate the folders) and then most of the
> folders are invisible to NB again.
>
> This is on Windows 10 with NB 11.2 running on JDK 8u202
>
> Just wondering if anyone else can confirm this before I file an issue.
>
> Regards,
>
> Scott
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists