Debugging Content Completion Assistant in custom framework

Having trouble installing Oxygen? Got a bug to report? Post it all here.
dasch124
Posts: 3
Joined: Thu Dec 13, 2018 5:08 pm

Debugging Content Completion Assistant in custom framework

Post by dasch124 »

Hi all!
We've set up a custom framework for editing TEI documents which should propose attribute values based on the RNG schema referenced in each document. Validation works fine, however using oXygen version > 23 I don't get any attribute values proposed from the schema.
I'm not sure how to attack this, so I'm thankful for any hints where to start debugging.
Thanks in advance!
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: Debugging Content Completion Assistant in custom framework

Post by Radu »

Hi,

There was this posted issue which might be related to your problem:
viewtopic.php?p=65887
You mentioned using oXygen version > 23 , did you test also with Oxygen 25? We made a fix in Oxygen 25 related to that change in the TEI Relax NG schemas.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
linxOD
Posts: 4
Joined: Tue Jan 10, 2023 11:36 am

Re: Debugging Content Completion Assistant in custom framework

Post by linxOD »

Hello,
same problem here. Switched from v23 to v25 and it stopped working. Content completion works with the same custom framework and dataset in v23.
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: Debugging Content Completion Assistant in custom framework

Post by Radu »

Hi,

Can you maybe post a small TEI sample document which I can use to reproduce the problem?
Are you using for editing the TEI schemas bundled with Oxygen 25 or did you install a TEI-specific add-on which provides other schemas?

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
linxOD
Posts: 4
Joined: Tue Jan 10, 2023 11:36 am

Re: Debugging Content Completion Assistant in custom framework

Post by linxOD »

Hi,
you can replicate it with this repo: https://github.com/ERC-TibSchol/TEI-curation
Schema in : ../803_RNG-schematron/1.0.0
Custom Framework: ../framework/ERC-TibSchol
as test: `<rs>` should propose type as attribute and specific attribue values.
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: Debugging Content Completion Assistant in custom framework

Post by Radu »

Hi,
I guess the GitHub repository is private because I cannot access it. I do not absolutely need real life examples, I can also work with some small sample you can create on your side to reproduce the problem.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
linxOD
Posts: 4
Joined: Tue Jan 10, 2023 11:36 am

Re: Debugging Content Completion Assistant in custom framework

Post by linxOD »

sorry thought this one is public. I have this issue on several repos. All with the same framework structure.
Opening the *.xpr file with Oxygen 23.0 the content completion works but not for v25.0
Here is a public one: https://github.com/freud-digital/frd-working-data
schema: ./framework/freud-hka/schema/out
framework ./framework/freud-hka
xml file for testing: ./werke/1901-001/*.xml
`<rs>` should propose type as attribute and specific attribue values.
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: Debugging Content Completion Assistant in custom framework

Post by Radu »

Hi,

Thanks, I can reproduce the problem now with your samples.
Your Oxygen framework customization contains a Java extension "${framework}/autocomplete/tei-completer-1.1-oxygen-plugin.jar". So this extension takes control over the way in which content completion proposals are suggested.
If for example I remove this Java extension from the framework Oxygen starts proposing again the content completion entries:
Screenshot 2023-01-10 at 15.52.00.png
Screenshot 2023-01-10 at 15.52.00.png (158.64 KiB) Viewed 847 times
Do you know the persons who work on this "tei-completer" project? Maybe we should report this problem to them. I do not know how their Java code looks like in order to see what the problem could be.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
linxOD
Posts: 4
Joined: Tue Jan 10, 2023 11:36 am

Re: Debugging Content Completion Assistant in custom framework

Post by linxOD »

Thank you for pointing this out. I did not think about this connection. The config uses the e.g. type attribute as dependant for access an API.
```
<autoComplete>
<context>//rs</context>
<attribute>@ref</attribute>
<dependent default="person">@type</dependent>
<selection>@n</selection>
<request>
<url>$baseUrl/$dependent?q=$selection</url>
</request>
</autoComplete>
```
I guess something changed in v25 and the extention can't handle it yet.
This is the extention Repo: https://github.com/BCDH/TEI-Completer
@adamretter is usually very quick to respond.
But since this is not an Issue on your end I will create an issue.

Thank you for your help!
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: Debugging Content Completion Assistant in custom framework

Post by Radu »

Hi,

Right, contacting Adam about this should be the way to go. Adam can always ask us if he needs extra support from our side.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply