Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Last updates breaks pretext-tools in codespaces #1557

Closed
oscarlevin opened this issue Jul 12, 2023 · 13 comments
Closed

Last updates breaks pretext-tools in codespaces #1557

oscarlevin opened this issue Jul 12, 2023 · 13 comments

Comments

@oscarlevin
Copy link

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).

@angelozerr
Copy link
Contributor

@oscarlevin do you use binary on linux?

If it that I think it is the same problem than redhat-developer/vscode-xml#916

//cc @rgrunber

@vrubezhny
Copy link
Contributor

In vscode itself, following your example, I get these commands:

Screenshot from 2023-07-12 16-44-29

And pretty the same command list I have in GitHub codespace with vscode-xml 0.2.6 installed:

Screenshot from 2023-07-12 16-54-15

Am I messing anything?

@vrubezhny
Copy link
Contributor

@angelozerr @rgrunber Do you know if vscode-xml running on GitHub CodeSpaces uses any binaries?

@rgrunber
Copy link
Contributor

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 redhat-developer/vscode-xml#916.

@vrubezhny
Copy link
Contributor

In my case, the vscode-xml extension running on GitHub CodeSpaces has XML> Server: Prefer Binary option NOT selected:

Screenshot from 2023-07-12 17-40-03

@angelozerr
Copy link
Contributor

I suspect that the problem of @oscarlevin is with binary since 0.26.0 doesn't contain major changes.

@angelozerr
Copy link
Contributor

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?

@oscarlevin
Copy link
Author

oscarlevin commented Jul 12, 2023 via email

@rgrunber
Copy link
Contributor

rgrunber commented Jul 12, 2023

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).

https://github.com/redhat-developer/vscode-xml/blob/f99df7e859c61256ebd05382f106fc0c5042d1e1/src/server/serverStarter.ts#L28 .

@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 redhat-developer/vscode-xml#916 (comment) . 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.

@vrubezhny
Copy link
Contributor

@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.

@vrubezhny
Copy link
Contributor

vrubezhny commented Jul 12, 2023

@rgrunber
Copy link
Contributor

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.

@oscarlevin
Copy link
Author

I can finally confirm that this is fixed and working for me. Thanks all for your work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants