question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Code assist not working in XML file

See original GitHub issue

Trying to investigate as per https://github.com/spring-projects/sts4/issues/340#issuecomment-573036075

In my XML file where I can’t get code assist to work, I try to write a bean definition and I invoke code assist in the class attribute value:

<bean class="Con|" />

I invoke code assist at “|” and I get the following in the Language Server console:

15:20:31.291 [elastic-2] INFO  o.s.i.v.c.l.c.VscodeCompletionEngineAdapter - Starting completion handling
15:20:31.291 [elastic-2] INFO  o.s.i.v.c.l.c.CompositeLanguageServerComponents - languageId = LanguageId [xml]
15:20:31.295 [elastic-2] INFO  o.s.i.v.c.l.c.VscodeCompletionEngineAdapter - Got 0 completions
15:20:31.297 [elastic-2] INFO  o.s.i.v.c.l.c.VscodeCompletionEngineAdapter - Completion handling terminated!

So, it seems like some kind of triggering is performed, but 0 completions are returned. In fact, I get no suggestions at all in the editor.

In the Error Log, at the same time, I get some errors from the XMLLanguageServer contributed by the Wild Web Developer plugin from Eclipse. Can this interfere with STS4 Language Server? For reference, the error I get is the same I get on Eclipse start which I described at https://github.com/eclipse/wildwebdeveloper/issues/366.

There are no errors from STS4 in the Error Log though.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13

github_iconTop GitHub Comments

1reaction
BoykoAlexcommented, Feb 26, 2020

@mauromol one silly thing… did you enable Spring XML File config support in the preferences (under Language Servers -> Spring Language Servers -> Spring Boot Language Server -> Spring XML Config)

0reactions
BoykoAlexcommented, Mar 23, 2020

Oh, yes, lets indeed close this one.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Eclipse Android XML content assist not working - Stack Overflow
Right click on xml file and select openwith option and you can find Android Layout Editor.
Read more >
Using XML content assist - IBM
Using XML content assist · From the Edit menu, click Content Assist, or · Press Ctrl+Space.
Read more >
Bug: Auto-complete doesn't work for Java in eclipse 2021-03
So I fixed the ini file. But autocomplete doesn't work. The first time I try it I get a popup that has just...
Read more >
autocomplete not working in xml layouts [240601092]
For #6: please open a separate bug for the Layout Inspector problem. This bug be about what is reported in #1 (autocomplete problem) ......
Read more >
Autocomplete code not working in webide - SAP Community
I'm working and following walkthrough tutorials of SAPUI5. i've enabled Code Completion from settings. but i didn't get any response in xml file ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found