Related to issue #210905. It's fine that NetBeans doesn't show hidden files (on OS X, this means files that begin with a dot) in its views by default, but it must at least add them to source control. Right now, the IDE gives a false sense of security since there is no indication whatsoever that many crucial files may be missing from the version control.
Even exclusively using NetBeans to create an angular HTML project, initialing a git repo, and committing the files excludes crucial project configuration files.
hmm, you're right, files such as .bowerrc, .jshintrc and other .* files are not added/committed to a repo. That's because they are by default marked as NOT_SHARABLE (excluded from version control) by the GlobalSharabilityQueryImpl. It's behavior is really strange and should be reviewed.
> It's behavior is really strange and should be reviewed.
OK. Thank you, Ondra, for evaluation.
As a workaround, please add file names beginning with dots that you use in your projects to Ignored Files Pattern:
Main menu -> Tools -> Options -> Miscellaneous -> Files -> Ignored Files Pattern
For example, the string can look like this (bowerrc and jshintrc were added to the default value):
Note that the IDE should be restarted after this change of the pattern.
Thank you for reporting.
Ok, we will not fix it for 8.0.1 (too late), let's target it for one of the patches or 8.1
Already fixed, see bug 248464.
> That's because they are by default marked as NOT_SHARABLE (excluded from
> version control) by the GlobalSharabilityQueryImpl. It's behavior is really
> strange and should be reviewed.
Not ignoring hidden files would be a significant change.
Let's use the current fix. If more similar problems appear, we should try to find some general solution.
*** This bug has been marked as a duplicate of bug 248464 ***
Sorry, but there are two major reasons why this bug should not be marked as a duplicate of issue #248464. First, the pedantic reason: while you can argue that the fix for 248464 also fixes this issue, this issue is clearly not a duplicate of that one.
Second, the fix for 248464 does not actually fix this issue. The scope for 248464 is limited to making items that the IDE knows about and can handle visible--not all items that belong in source control.
I'm not sure when this issue was downgraded to a P2, but it should be a P1. Not only is there a clear risk of data loss, but the data is by definition important enough to be placed in version control. Even worse, it may not be readily apparent that the data has been lost until much later, if ever.
Created attachment 154652 [details]
Your arguments seem valid. We should try to resolve this problem in general.
This bug is quite controversial, it is contrary to bug 67900, which requests invisible files not to be added to version control system.
The problem is that times has changed. While it was rare to have hidden files among Java sources, various languages and frameworks that are supported by NetBeans today store some info in hidden files. Thus, default handling of them should be adjusted.
- ignore all hidden files (starting with a dot), except for some well-known ones (.htaccess)
- the ignored files pattern was:
- ignore only well-known files (.git, .hg)
- the ignored files pattern will be:
We will now assume that hidden files may be important to users.
Probably, the only place where showing hidden files could be disturbing is user's home directory (e.g. in Favorites window), as it usually contains many configuration files and folders with application data. So we've added new option to ignore hidden files in home folder. This option is enabled by default.
CCing Vladimir Voskresensky and Vladimir Kvashin. Can you please check whether this change would be risky for CND modules or Oracle Solaris Studio IDE? Do you know about any files that should be ignored by the IDE (and added to default ignored pattern)?
Thank you very much.
I am OK with the patch, let's please integrate before Beta so any negative feedback can be resolved before 8.1 release. If there are no objections from the cnd team, let's integrate on Monday.
Let's integrate and see test results.
I've created a wiki page with information about this change:
Integrated into 'main-silver', will be available in build *201507210001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Jaroslav Havlin <firstname.lastname@example.org>
Log: #246521: Show .dotted files (by default)
*** Bug 262258 has been marked as a duplicate of this bug. ***