-
Notifications
You must be signed in to change notification settings - Fork 747
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IgnoredNames does not work properly with project centric processing workflow #2602
Comments
That looks as if the ignored list for Git no longer works as a whole - next to 98 ignoredDirs.add(".git");
99 ignoredFiles.add(".gitignore"); Does this happen for other SCMs ? |
Will track this as a bug for now. |
fwiw, this bug is not happening to me using 1.1 |
So it is a bad setup I think. Let me experiment. |
In my case it disapears when I try to upload groups with following command. Before the configuration has the "ignoreNames" section and it disappears when this is uploaded.
Especially this command does not add the IgnoredNames property to the final configuration:
This is the webapp configuration:
Groups configuration contains just the single group as you would guess from the next snippet. Result:
|
Isolated a test case:
Looks like it is skipped because the groups.xml contains default ignored names. |
I think this is a problem of the merge itself, perhaps the same as to what is described in #2147. |
Workaround is change the flow:
|
I'm not sure if this is related or not but I've had tons of head scratching issues with the configuration file and finally landed on calling the indexer with -W and -R parameters so that it reads in the old parameters options and then writes the new one when it's done. This has resolved all of my issues with the configuration file. Here is my full index command for which I use on 200+ GB of files/code. Note: this is a WIP version as we're working on installing things in a more appropriate manor /opt/rh/rh-python35/root/usr/bin/opengrok-indexer -C |
Thank you. I can confirm when using full indexer for all projects (like your example), the problem disappears. However, I wanted to set up a per project indexing (using |
In this exact case the problem is that IgnoredNames does not override |
Which bubbles down that when using merge, all properties of configuration should implement equals or otherwise from our perspective the results can be indeed surprising. |
Is the issue still open? In my case, I removed a couple of directories from IgnoredDirs and ran a reindex with opengrok-resync. But the directories I removed from ignore list are still missing from the index. Should I use another method of indexing? Volume of code quite big, so it's long process... |
Unless these directories are changed, they will not appear in already existing index. The reindex process is incremental. |
I reported this in slack channel, in 1.1-rc41 (haven't tested others) the
.git
files were hidden in xref browsing. In 1.1 they're not. I don't know if this is a problem in my setup or if any logic in indexer is broken. Can someone else verify?1.1-rc41:
1.1:
The text was updated successfully, but these errors were encountered: