[oXygen-user] Web Author and more then one git submodules

oXygen XML Editor Support (Gabriel Titerlea) support at oxygenxml.com
Tue Dec 3 05:40:29 CST 2019


> Would it be possible to stay in the main repository even when working 
> with submodules?
In the use-cases we encountered the parent repository would have 
references to its sub-modules, but sub-modules would not have any 
reference to the parent or other sub-modules. And given that Git 
repositories can live as independent entities, it would not seem very 
intuitive to create references to an other Git repository that may or 
may not be available, depending on whether the repository was referenced 
as a sub-module.

We're trying to justify a change to the current behavior regarding Git 
sub-modules in Web Author. Please describe your use-case in more detail.


Gabriel Titerlea

On 02-Dec-19 16:47, Jirka Kosek wrote:
> On 28.11.2019 14:49, oXygen XML Editor Support (Gabriel Titerlea) wrote:
>>> In my case only test submodule works others are shown as empty.
>> Web Author remembers the list of sub-modules for 8 hours, it doesn't
>> check for new sub-modules on each request.
>> Did you push these sub-modules recently? Does the issue persist after
>> you restart Web Author?
> Hi,
> yep that did the trick -- another day there was no problem accessing
> content of submodules. Thank you very much.
> I have encountered another issue with submodules. Let's consider the
> following layout of repositories.
> project/test1  - git repository with some assets and files
> project/test2  - another git repository with some assets and files
> project/main - git repository that adds test1 and test2 as a top level
> submodules in folders test1 and test2
> Now I create some XML file inside project/main repository -- either at
> the top level or inside some folder (that is real folder inside
> project/main not folder attached to submodule). Now I'm using actions
> from toolbar for inserting images (for example for DocBook) -- file
> picker dialog allows me to choose any files including files in
> submodules. When I choose image from submodule it's correctly
> referenced, e.g.:
> <imagedata fileref="test1/images/logo.png"/>
> However if I create XML file in folder attached to submodule Web Author
> automatically switches to submodule repository and it's no longer
> possible to reference images from the main repository or from other
> submodules. Respectively it's possible if I change repository manually
> but URL of referenced image is unusable as it is no longer relative
> reference, e.g.:
> <imagedata
> fileref="gitgle://https%3A%2F%2Fexample.com%2Fproject%2Fmain/master/test1/images/logo.png"/>
> This is probably caused by the fact that when opening/creating file in
> folder attached to submodule Web Author switches to submodule repository
> automatically. So in my example setup when I'm trying to work with file
> test1/example.xml in project/main repository
> Web Author automatically uses
> example.xml in project/test1 repository
> Would it be possible to stay in the main repository even when working
> with submodules?
> Many thanks in advance,
> 				Jirka

More information about the oXygen-user mailing list