Closed oscarlevin closed 1 year ago
@oscarlevin do you use binary on linux?
If it that I think it is the same problem than https://github.com/redhat-developer/vscode-xml/issues/916
//cc @rgrunber
In vscode itself, following your example, I get these commands:
And pretty the same command list I have in GitHub codespace with vscode-xml 0.2.6 installed:
Am I messing anything?
@angelozerr @rgrunber Do you know if vscode-xml
running on GitHub CodeSpaces uses any binaries?
If there's no Java in the container then it would use the binary. If the underlying container environment uses a version of GLIBC < 2.34, then this would be https://github.com/redhat-developer/vscode-xml/issues/916.
In my case, the vscode-xml extension running on GitHub CodeSpaces has XML> Server: Prefer Binary
option NOT selected:
I suspect that the problem of @oscarlevin is with binary since 0.26.0 doesn't contain major changes.
In my case, the vscode-xml extension running on GitHub CodeSpaces has XML> Server: Prefer Binary option NOT selected:
What about if you select it?
@oscarlevin could you deselect it in your side to check if it is working for you?
Thanks all for the quick response. I won't be able to experiment for a bit. When I get a chance I'll see if this is the issue.
Sent from my T-Mobile 5G Device Get Outlook for Androidhttps://aka.ms/AAb9ysg
From: Angelo @.> Sent: Wednesday, July 12, 2023 10:00:53 AM To: eclipse/lemminx @.> Cc: Levin, Oscar @.>; Mention @.> Subject: Re: [eclipse/lemminx] Last updates breaks pretext-tools in codespaces (Issue #1557)
[ EXTERNAL EMAIL ]
In my case, the vscode-xml extension running on GitHub CodeSpaces has XML> Server: Prefer Binary option NOT selected:
What about if you select it?
@oscarlevinhttps://github.com/oscarlevin could you deselect it in your side to check if it is working for you?
— Reply to this email directly, view it on GitHubhttps://github.com/eclipse/lemminx/issues/1557#issuecomment-1632807382, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABRUBFF3POASFZTXDY3M37TXP3C3LANCNFSM6AAAAAA2HS2IX4. You are receiving this because you were mentioned.Message ID: @.***>
Just to be clear, at https://github.com/redhat-developer/vscode-xml/blob/f99df7e859c61256ebd05382f106fc0c5042d1e1/src/server/serverStarter.ts#L28 we do launch the binary even if the choice is not selected. The binary covers the case of not detecting Java on the system but wanting to give a seamless experience. The only time we wouldn't launch the binary is if we detect the current installation has extensions contributing to the LemMinX runtime (because those won't work with the binary mode).
@oscarlevin , If possible, you could try the following vsix : https://github.com/rgrunber/vscode-xml/releases/download/0.26.0/vscode-xml-linux-x64-0.26.0-284.vsix . I mentioned it in https://github.com/redhat-developer/vscode-xml/issues/916#issuecomment-1631782966 . It is basically 0.26.0 but the Linux binary was built on an older version of Ubuntu for better support of older Linux distros.
@angelozerr Yes. I can confirm the issue. Turning on the XML> Server: Prefer Binary
makes all the commands but the "Open XML Documentation" to disappear . So it looks like a binary problem.
@oscarlevin @rgrunber For me the vscode-xml extension works fine when installed from https://github.com/rgrunber/vscode-xml/releases/download/0.26.0/vscode-xml-linux-x64-0.26.0-284.vsix :
Great! Then it very likely will resolve the issue. We've just released 0.26.1 to the marketplaces, and it should contain the necessary fix.
This is mainly a vscode-xml / 3rd party packaging issue as nothing needed to change in lemminx itself.
I can finally confirm that this is fixed and working for me. Thanks all for your work.
It appears that the 0.26.0 update changed something so that when running VS Code in a github codespace, something is broken. I only noticed this because my pretext-tools extension (which requires XML) didn't work after the update, but it appears that the XML extension itself isn't working. For example, if I go to the command pallet, I get only the XML: Open XML Documentation command, not the other expected ones (that do show up in 0.25.0).