disable scan for .xpr files in the project tree?
Posted: Mon Dec 02, 2024 1:10 am
Apologies if this is covered somewhere in the documentation -- I've tried a few searches: here in the forum, in the help section, and under Options|Preferences, but nothing helpful seemed to come up.
Problem: can't get rid of a random .xpr file in the source tree, it gets prioritised over my project file that sits outside the tree.
The potential testcase is the TEI source code (https://github.com/TEIC/TEI) . It contains an .xpr file: `I18N/examples-zh-tw/teiI18N.xpr` .
And it also contains a .gitignore that specifies `*.xpr`. From the perspective of git, the project file is invisible and doesn't bother anyone.
But, apparently, oXygen scans the project tree immediately upon accessing it, and either grabs the only .xpr file in that tree, or presents the user with an option to choose, if more such files are present. Probably important: I also use the git add-on.
I've worked with the TEI source for years, and the .xpr file is, gosh, 16 yrs old (check) -- but the problem started recently. I can't precisely recall if it started with version 27; most probably not (but my memory is foggy in this respect).
How to recreate (that is not going to be a minimalist test case, I'll just tell you what I have):
A workaround that I've just discovered: copy the teiI18N.xpr file somewhere else in the TEI tree, and now oXygen will ask you to choose from the two projects -- and you can cancel the dialog and keep the regular project.
Problem: can't get rid of a random .xpr file in the source tree, it gets prioritised over my project file that sits outside the tree.
The potential testcase is the TEI source code (https://github.com/TEIC/TEI) . It contains an .xpr file: `I18N/examples-zh-tw/teiI18N.xpr` .
And it also contains a .gitignore that specifies `*.xpr`. From the perspective of git, the project file is invisible and doesn't bother anyone.
But, apparently, oXygen scans the project tree immediately upon accessing it, and either grabs the only .xpr file in that tree, or presents the user with an option to choose, if more such files are present. Probably important: I also use the git add-on.
I've worked with the TEI source for years, and the .xpr file is, gosh, 16 yrs old (check) -- but the problem started recently. I can't precisely recall if it started with version 27; most probably not (but my memory is foggy in this respect).
How to recreate (that is not going to be a minimalist test case, I'll just tell you what I have):
- a regular project file outside the source tree (my project files sit in the projects/ directory, and the tree in question is in projects/LingSIG/TEI/)
- the git add-on
- and now, either: have a different project opened and switch to the regular TEI project; in my case, the git extension lags behind and I have to manually change the working copy, and which point oXygen takes me out of my TEI-based project and lands me in the teiI18N.xpr mentioned above;
- or: have the TEI-based project open in oXygen and close the editor while looking at the project view. Upon reopening, switch to the git view, and, bang, you're again moved to the teiI18N.xpr project
A workaround that I've just discovered: copy the teiI18N.xpr file somewhere else in the TEI tree, and now oXygen will ask you to choose from the two projects -- and you can cancel the dialog and keep the regular project.