Bug 569122 - Tab completion not working for DTD files. DTD files in XML catalog loose initial slash
Summary: Tab completion not working for DTD files. DTD files in XML catalog loose init...
Status: RESOLVED FIXED
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.dtd (show other bugs)
Version: 3.21 (2021-03)   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: wst.dtd CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2020-11-24 08:51 EST by Hauke Wintjen CLA
Modified: 2022-02-02 02:53 EST (History)
1 user (show)

See Also:


Attachments
Adding DTD catalog (75.29 KB, image/png)
2020-12-21 11:19 EST, Hauke Wintjen CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hauke Wintjen CLA 2020-11-24 08:51:02 EST
Tab completion not working for DTD files. 

I have dita files like 
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="version">
  <title>Version information</title>
</topic>

and try to get completion based on dtd to work.
It worked in eclispe 2019 very well with the same setup.

I have added all DTDs in the XML catalog, but they seem
to loose initial slash after closing / reopening the XML catalog prefs window.

I get after re-opening:
Entry element:		Public
Location:			usr/local/oxygen-xml/oxygen21.0/frameworks/dita/DITA-OT3.x/plugins/org.oasis-open.dita.v1_3/dtd/technicalContent/dtd/topic.dtd
URI:   				file:///usr/local/oxygen-xml/oxygen21.0/frameworks/dita/DITA-OT3.x/plugins/org.oasis-open.dita.v1_3/dtd/technicalContent/dtd/topic.dtd
Key type:			Public ID
Key:				-//OASIS//DTD DITA Topic//EN

where "Location" does not start with a "/". When opening the associated entry, i get "The specified source cant be loaded" in red.
When i fix it with adding a "/" at the front, hit "Ok", and "Aplly and Close", restart eclipse, the slash went away.

Dunno if this is the cause for the DTD completion not working in my document, but i dont get any other clues....
Comment 1 Hauke Wintjen CLA 2020-12-07 08:27:41 EST
Hmm... Still no (zero) reaction after about 2 weeks....
Is edclipse dead if no one looks at bug reports?
Comment 2 Nitin Dahyabhai CLA 2020-12-07 08:51:57 EST
It's not uncommon during the final weeks of a release. The only change about the catalog preference page has been to its own layout, though, not how any of its values are saved or loaded back in.
Comment 3 Hauke Wintjen CLA 2020-12-07 11:14:54 EST
Ok, the error in the XML catalog dialog is already
present in older eclipse:

  Version: 2019-03 (4.11.0)
  Build id: 20190314-1200

but in the older version tab completions run perfectly for DTD files.

So the reason must be somewhere else....
Comment 4 Nitin Dahyabhai CLA 2020-12-07 11:17:00 EST
(In reply to Hauke Wintjen from comment #3)
> but in the older version tab completions run perfectly for DTD files.

What are "tab completions"?
Comment 5 Hauke Wintjen CLA 2020-12-07 11:24:57 EST
Sorry for a bit unclear here.

With tab completions i meant:
If you have a XML file in eclipse, and have the correct DTD (or XSD) associated,
you hit <CTRL>-<Space> on an "<ele" text and it completes to "<element>".

It should actually be called "ctrl-space-completion" but since i am used to linux shells, that word occupied that concept with me.... Sorr for the confusion.
Comment 6 Nitin Dahyabhai CLA 2020-12-07 18:44:03 EST
Exactly which options and steps did you take to add these files to the catalog, and with what kind of entry?
Comment 7 Hauke Wintjen CLA 2020-12-21 06:22:14 EST
Any hints on this now?

Without content assist in XML based on DTD / XSD Eclipse is DEAD for me for XML editing.....
Comment 8 Nitin Dahyabhai CLA 2020-12-21 11:04:46 EST
Like I asked, can you detail the exact steps and UI options you used when adding it to the catalog so I can reproduce it correctly?
Comment 9 Hauke Wintjen CLA 2020-12-21 11:19:58 EST
Created attachment 285090 [details]
Adding DTD catalog

Adding DTD catalog
Comment 10 Hauke Wintjen CLA 2020-12-21 11:21:22 EST
See screenshot and also https://www.eclipse.org/webtools/community/tutorials/XMLCatalog/XMLCatalogTutorial.html
Comment 11 Hauke Wintjen CLA 2021-04-26 05:06:04 EDT
Still broken in Eclipse release 2021-03.

Completion based on DTD grammar still not working.

Still trying via adding the DTDs for DITA 1.3 to eclipse...
Comment 12 Hauke Wintjen CLA 2022-02-02 02:53:14 EST
Works with Eclipse 2021-12.