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

Runtime Status #998

Open
xDeniz opened this issue May 28, 2024 · 32 comments
Open

Runtime Status #998

xDeniz opened this issue May 28, 2024 · 32 comments

Comments

@xDeniz
Copy link

xDeniz commented May 28, 2024

[Error - 2:20:29 PM] Restarting server failed
Message: Pending response rejected since connection got disposed
Code: -32097

image

@angelozerr
Copy link
Contributor

Have you this problem with old version of vscode-xml?

@xDeniz
Copy link
Author

xDeniz commented May 28, 2024

Have you this problem with old version of vscode-xml?

no when it reverts back to 0.26.1 it works as intented

@fbricon
Copy link
Collaborator

fbricon commented May 28, 2024

can you provide more details about your setup? OS, VS Code version...

@xDeniz
Copy link
Author

xDeniz commented May 28, 2024

[Error - 2:50:08 PM] Connection to server got closed. Server will not be restarted.
[Error - 2:50:08 PM] Server initialization failed.
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 2:50:08 PM] XML Support client: couldn't create connection to server.
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 2:50:08 PM] Restarting server failed
Message: Pending response rejected since connection got disposed
Code: -32097

@xDeniz
Copy link
Author

xDeniz commented May 28, 2024

i am on windows 11
this morning there was an update on the extension as i had to confirm the restart extension on the extension page since then any XML file is ignored for any validation, when i revert back the extension version back to previous update it works no issues

@angelozerr
Copy link
Contributor

Are you using binary?

@xDeniz
Copy link
Author

xDeniz commented May 28, 2024

no

@angelozerr
Copy link
Contributor

Please try to set prefer binary.

@xDeniz
Copy link
Author

xDeniz commented May 28, 2024

if the extension is working on the previous update why would it not work on the latest update? what binary i need to set for this extension to work now? never had to do anything like this before.

@xDeniz
Copy link
Author

xDeniz commented May 28, 2024

image

working version

@angelozerr
Copy link
Contributor

Which version of vscode are you using?

@xDeniz
Copy link
Author

xDeniz commented May 28, 2024

image

@fbricon
Copy link
Collaborator

fbricon commented May 28, 2024

Do you have a jdk installed? Can you share your user settings.json?

@xDeniz
Copy link
Author

xDeniz commented May 28, 2024

I dont know what jdk is & how do i get the json file but this is what i managed to get

{
"redhat.telemetry.enabled": false,
"xml.symbols.maxItemsComputed": 100000,
"json.maxItemsComputed": 100000,
"xmlTools.enableXmlTreeViewCursorSync": true,
"editor.unicodeHighlight.invisibleCharacters": true,
"editor.unicodeHighlight.ambiguousCharacters": false,
"xml.server.binary.trustedHashes":
[
"f890562bf3264367a5a781f3bfb746efc3cf7fcce460cf2d9c785b32a756e509"
],
"explorer.confirmDragAndDrop": false,
"explorer.confirmDelete": false,
"highlightDuplicates.active": true,
"editor.accessibilitySupport": "off",
"workbench.colorCustomizations": { },
"xml.colors": [ ],
"[xml]":
{
"editor.defaultFormatter": "DotJoshJohnson.xml"
},
"cSpell.userWords":
[
"Bhaalshad",
"Bhaalshad's",
"cfggameplay",
"cfgweather",
"cleanupradius",
"xmlflash"
],
"editor.language.brackets": [ ],
"editor.tabSize": 2,
"editor.guides.bracketPairs": true,
"diffEditor.codeLens": true,
"editor.minimap.autohide": true,
"xml.codeLens.enabled": true,
"codesnap.shutterAction": "copy",
"codesnap.transparentBackground": true,
"indentRainbow.ignoreLinePatterns":
[
"/[ \t]* [*]/g",
"/[ \t]+[/]{2}/g"
],
"editor.multiCursorLimit": 100000,
"editor.fastScrollSensitivity": 8,
"editor.smoothScrolling": true,
"editor.fontFamily": "Consolas, 'Courier New', monospace, Merienda",
"diffEditor.wordWrap": "off",
"breadcrumbs.enabled": false,
"chat.editor.fontFamily": "Jetbrains Mono",
"editor.fontLigatures": true,
"diffEditor.maxComputationTime": 0,
"css.lint.validProperties":
[
"d",
"r",
"rx",
"x",
"y",
"ry"
],
"editor.fontSize": 16,
"json.format.enable": true,
"json.format.keepLines": true,
"xml.format.closingBracketNewLine": true,
"xml.format.preserveEmptyContent": true,
"xml.format.enabled": true,
"editor.cursorBlinking": "smooth",
"editor.cursorSmoothCaretAnimation": "on",
"workbench.activityBar.location": "top",
"diffEditor.experimental.showMoves": true,
"window.commandCenter": false,
"editor.autoIndent": "brackets",
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": true,
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": true,
"xml.format.spaceBeforeEmptyCloseTag": false,
"xml.format.maxLineWidth": 0,
"xml.validation.xInclude.enabled": true,
"xml.validation.filters": [
{
"pattern": ".exsd",
"noGrammar": "ignore",
"schema": {
"enabled": "never"
}
},
{
"pattern": "
{.project,.classpath,plugin.xml,feature.xml,category.xml,.target,.product}",
"noGrammar": "ignore"
}
],
"codesnap.showWindowControls": false,
"codesnap.showLineNumbers": false,
"window.zoomLevel": -1,
"editor.mouseWheelZoom": true,
"xmlTools.enableXmlTreeView": false,
"better-comments.highlightPlainText": true,
"workbench.sideBar.location": "right",
"editor.bracketPairColorization.enabled": true,
"editor.bracketPairColorization.independentColorPoolPerBracketType": true,
"workbench.settings.applyToAllProfiles": [
"editor.bracketPairColorization.enabled",
"editor.bracketPairColorization.independentColorPoolPerBracketType",
"xml.format.joinCDATALines",
"xml.format.enabled"
],
"xml.format.emptyElements": "expand",
"diffEditor.ignoreTrimWhitespace": true,
"editor.semanticTokenColorCustomizations": {
"[Default Dark+]": {
"rules": {
"property.mandatory:xml": {
"bold": true
},
"string.i18n:xml": {
"italic": true
}
}
},
"[Default Light+]": {
"rules": {
"property.mandatory:xml": {
"bold": true
},
"string.i18n:xml": {
"italic": true
}
}
},
"[Default High Contrast]": {
"rules": {
"property.mandatory:xml": {
"bold": true
},
"string.i18n:xml": {
"italic": true
}
}
}
},
"errorLens.codeLensEnabled": true,
"workbench.colorTheme": "codeSTACKr Theme",
"xml.server.silenceExtensionWarning": true,
"workbench.productIconTheme": "fluent-icons"

}

@angelozerr
Copy link
Contributor

Could you try to add:

"xml.server.preferBinary": true

in your settings.json file please

See https://github.com/redhat-developer/vscode-xml/blob/main/docs/Preferences.md#server-binary-mode

@xDeniz
Copy link
Author

xDeniz commented May 28, 2024

no change still same error on v0.27.0
image

@fbricon
Copy link
Collaborator

fbricon commented May 28, 2024

I suspect the binary is already being used, but could be broken or blocked by some antivirus/security.
@Deniz582 try deleting the [HOME]/.vscode/extensions/redhat.vscode-xml-0.27.0-win32-x64/server/lemminx-win32.exe and try again

Alternatively, try installing a Java JDK and keep "xml.server.preferBinary": false

@xDeniz
Copy link
Author

xDeniz commented May 28, 2024

2024-05-28 16:29:51.124 [info] ExtensionService#_doActivateExtension redhat.vscode-xml, startup: false, activationEvent: 'onLanguage:xml'
2024-05-28 16:29:53.367 [error] Activating extension redhat.vscode-xml failed due to an error:
2024-05-28 16:29:53.368 [error] Error: Pending response rejected since connection got disposed
at Object.dispose (c:\Users\GT191021.vscode\extensions\redhat.vscode-xml-0.27.0-win32-x64\dist\extension.js:2:579784)
at Object.dispose (c:\Users\GT191021.vscode\extensions\redhat.vscode-xml-0.27.0-win32-x64\dist\extension.js:2:392357)
at x.handleConnectionClosed (c:\Users\GT191021.vscode\extensions\redhat.vscode-xml-0.27.0-win32-x64\dist\extension.js:2:392635)
at x.handleConnectionClosed (c:\Users\GT191021.vscode\extensions\redhat.vscode-xml-0.27.0-win32-x64\dist\extension.js:2:547086)
at c:\Users\GT191021.vscode\extensions\redhat.vscode-xml-0.27.0-win32-x64\dist\extension.js:2:392445
at a.invoke (c:\Users\GT191021.vscode\extensions\redhat.vscode-xml-0.27.0-win32-x64\dist\extension.js:2:581494)
at o.fire (c:\Users\GT191021.vscode\extensions\redhat.vscode-xml-0.27.0-win32-x64\dist\extension.js:2:582259)
at Z (c:\Users\GT191021.vscode\extensions\redhat.vscode-xml-0.27.0-win32-x64\dist\extension.js:2:568140)
at a.invoke (c:\Users\GT191021.vscode\extensions\redhat.vscode-xml-0.27.0-win32-x64\dist\extension.js:2:581494)
at o.fire (c:\Users\GT191021.vscode\extensions\redhat.vscode-xml-0.27.0-win32-x64\dist\extension.js:2:582259)
at h.fireClose (c:\Users\GT191021.vscode\extensions\redhat.vscode-xml-0.27.0-win32-x64\dist\extension.js:2:590072)
at Socket. (c:\Users\GT191021.vscode\extensions\redhat.vscode-xml-0.27.0-win32-x64\dist\extension.js:2:591628)
at Socket.emit (node:events:529:35)
at Pipe. (node:net:350:12)
2024-05-28 16:29:53.636 [error] Error: Pending response rejected since connection got disposed
at Object.dispose (c:\Users\GT191021.vscode\extensions\redhat.vscode-xml-0.27.0-win32-x64\dist\extension.js:2:579784)
at Object.dispose (c:\Users\GT191021.vscode\extensions\redhat.vscode-xml-0.27.0-win32-x64\dist\extension.js:2:392357)
at x.handleConnectionClosed (c:\Users\GT191021.vscode\extensions\redhat.vscode-xml-0.27.0-win32-x64\dist\extension.js:2:392635)
at x.handleConnectionClosed (c:\Users\GT191021.vscode\extensions\redhat.vscode-xml-0.27.0-win32-x64\dist\extension.js:2:547086)
at c:\Users\GT191021.vscode\extensions\redhat.vscode-xml-0.27.0-win32-x64\dist\extension.js:2:392445
at a.invoke (c:\Users\GT191021.vscode\extensions\redhat.vscode-xml-0.27.0-win32-x64\dist\extension.js:2:581494)
at o.fire (c:\Users\GT191021.vscode\extensions\redhat.vscode-xml-0.27.0-win32-x64\dist\extension.js:2:582259)
at Z (c:\Users\GT191021.vscode\extensions\redhat.vscode-xml-0.27.0-win32-x64\dist\extension.js:2:568140)
at a.invoke (c:\Users\GT191021.vscode\extensions\redhat.vscode-xml-0.27.0-win32-x64\dist\extension.js:2:581494)
at o.fire (c:\Users\GT191021.vscode\extensions\redhat.vscode-xml-0.27.0-win32-x64\dist\extension.js:2:582259)
at h.fireClose (c:\Users\GT191021.vscode\extensions\redhat.vscode-xml-0.27.0-win32-x64\dist\extension.js:2:590072)
at Socket. (c:\Users\GT191021.vscode\extensions\redhat.vscode-xml-0.27.0-win32-x64\dist\extension.js:2:591628)
at Socket.emit (node:events:529:35)
at Pipe. (node:net:350:12)

am not too sure if this will help in any way but i will reinstall the extension right now 

@phatmn
Copy link

phatmn commented Nov 28, 2024

fyi: this error is still here. was trying all the latest versions and the last one that works is v0.26.1
Image
[error] Error: Pending response rejected since connection got disposed at Object.dispose (c:\Users\user\.vscode\extensions\redhat.vscode-xml-0.27.0-win32-x64\dist\extension.js:2:579784) at Object.dispose (c:\Users\user\.vscode\extensions\redhat.vscode-xml-0.27.0-win32-x64\dist\extension.js:2:392357) at x.handleConnectionClosed (c:\Users\user\.vscode\extensions\redhat.vscode-xml-0.27.0-win32-x64\dist\extension.js:2:392635) at x.handleConnectionClosed (c:\Users\user\.vscode\extensions\redhat.vscode-xml-0.27.0-win32-x64\dist\extension.js:2:547086) at c:\Users\user\.vscode\extensions\redhat.vscode-xml-0.27.0-win32-x64\dist\extension.js:2:392445 at a.invoke (c:\Users\user\.vscode\extensions\redhat.vscode-xml-0.27.0-win32-x64\dist\extension.js:2:581494) at o.fire (c:\Users\user\.vscode\extensions\redhat.vscode-xml-0.27.0-win32-x64\dist\extension.js:2:582259) at Z (c:\Users\user\.vscode\extensions\redhat.vscode-xml-0.27.0-win32-x64\dist\extension.js:2:568140) at a.invoke (c:\Users\user\.vscode\extensions\redhat.vscode-xml-0.27.0-win32-x64\dist\extension.js:2:581494) at o.fire (c:\Users\user\.vscode\extensions\redhat.vscode-xml-0.27.0-win32-x64\dist\extension.js:2:582259) at h.fireClose (c:\Users\user\.vscode\extensions\redhat.vscode-xml-0.27.0-win32-x64\dist\extension.js:2:590072) at Socket.<anonymous> (c:\Users\user\.vscode\extensions\redhat.vscode-xml-0.27.0-win32-x64\dist\extension.js:2:591628) at Socket.emit (node:events:531:35) at Pipe.<anonymous> (node:net:339:12)

@angelozerr
Copy link
Contributor

@phatmn thanks for your info about 0.26.1 which is working. Are you using binary or Java mode?

@phatmn
Copy link

phatmn commented Nov 28, 2024

@angelozerr java, by default

@angelozerr
Copy link
Contributor

Ok and if you try to switch to binary, is it working better?

@angelozerr
Copy link
Contributor

Which Java version are you using?

@phatmn
Copy link

phatmn commented Nov 28, 2024

@angelozerr checking "Prefer binary", installing latest version 0.27.2 and restarting extensions doesn't really helped.
I'm using jdk 17.0.3
IMPLEMENTOR="Oracle Corporation" JAVA_VERSION="17.0.3" JAVA_VERSION_DATE="2022-04-19" LIBC="default" MODULES="java.base ..." OS_ARCH="x86_64" OS_NAME="Windows" SOURCE=".:git:8d0f7eab8a82 open:git:42f3595dcbe7"

@datho7561
Copy link
Contributor

@phatmn which version of VS Code are you using?

@datho7561
Copy link
Contributor

I tried downgrading to VS Code 1.89.1 and I still wasn't able to replicate the bug.

@phatmn
Copy link

phatmn commented Dec 2, 2024

@datho7561
Version: 1.95.3 (system setup) Commit: f1a4fb101478ce6ec82fe9627c43efbf9e98c813 Date: 2024-11-13T14:50:04.152Z Electron: 32.2.1 ElectronBuildId: 10427718 Chromium: 128.0.6613.186 Node.js: 20.18.0 V8: 12.8.374.38-electron.0 OS: Windows_NT x64 10.0.22631

@albigi
Copy link

albigi commented Dec 12, 2024

+1, same issue:

VSCode

Version: 1.96.0 (user setup)
Commit: 138f619c86f1199955d53b4166bef66ef252935c
Date: 2024-12-11T02:29:09.626Z
Electron: 32.2.6
ElectronBuildId: 10629634
Chromium: 128.0.6613.186
Node.js: 20.18.1
V8: 12.8.374.38-electron.0
OS: Windows_NT arm64 10.0.26100

Note it's a Win11 ARM

Extension version

0.27.2
2024-12-12

I tried the pre-release version but got the same issue

Settings

Enabling or disabling the binary server flag makes no difference (as I don't have Java installed anyway)

Error

Extension host reports:

2024-12-12 17:19:48.598 [error] Activating extension redhat.vscode-xml failed due to an error:
2024-12-12 17:19:48.598 [error] Error: Pending response rejected since connection got disposed
	at Object.dispose (c:\Users\MyUser\.vscode\extensions\redhat.vscode-xml-0.27.2\dist\extension.js:2:579772)
	at Object.dispose (c:\Users\MyUser\.vscode\extensions\redhat.vscode-xml-0.27.2\dist\extension.js:2:392345)
	at x.handleConnectionClosed (c:\Users\MyUser\.vscode\extensions\redhat.vscode-xml-0.27.2\dist\extension.js:2:392623)
	at x.handleConnectionClosed (c:\Users\MyUser\.vscode\extensions\redhat.vscode-xml-0.27.2\dist\extension.js:2:547074)
	at c:\Users\MyUser\.vscode\extensions\redhat.vscode-xml-0.27.2\dist\extension.js:2:392433
	at a.invoke (c:\Users\MyUser\.vscode\extensions\redhat.vscode-xml-0.27.2\dist\extension.js:2:581482)
	at o.fire (c:\Users\MyUser\.vscode\extensions\redhat.vscode-xml-0.27.2\dist\extension.js:2:582247)
	at Z (c:\Users\MyUser\.vscode\extensions\redhat.vscode-xml-0.27.2\dist\extension.js:2:568128)
	at a.invoke (c:\Users\MyUser\.vscode\extensions\redhat.vscode-xml-0.27.2\dist\extension.js:2:581482)
	at o.fire (c:\Users\MyUser\.vscode\extensions\redhat.vscode-xml-0.27.2\dist\extension.js:2:582247)
	at h.fireClose (c:\Users\MyUser\.vscode\extensions\redhat.vscode-xml-0.27.2\dist\extension.js:2:590060)
	at Socket.<anonymous> (c:\Users\MyUser\.vscode\extensions\redhat.vscode-xml-0.27.2\dist\extension.js:2:591616)
	at Socket.emit (node:events:530:35)
	at Pipe.<anonymous> (node:net:343:12)

XML Support reports:

[Error - 5:19:49 PM] Restarting server failed
  Message: Pending response rejected since connection got disposed
  Code: -32097 

T-shooting attempted

  1. Remove lemminx-win32.exe: no change
  2. Manually launch the language server: no change, it won't stay open anyway
  3. Installing latest MS OpenJDK: worked after restarting the extension

    IMPORTANT: preferBinary must be false in this case, else the system-available java won't be used
    This is the succesful output:

[Info  - 5:37:33 PM] Dec 12, 2024 05:37:33 org.eclipse.lemminx.XMLLanguageServer initialize()
Message: Initializing XML Language server
LemMinX Server info:
- Version : 0.29.0
- Java : C:\Program Files\Microsoft\jdk-21.0.5.11-hotspot
- VM Version : 21.0.5
- Git acacf75 - [maven-release-plugin] prepare release 0.29.0

Notes

  • To install OpenJDK, I ran: winget install Microsoft.OpenJDK.21 -a arm64 (note the architecture flag which might differ. also, I picked the latest release as of today)
  • I had no other extensions which might cause a potential conflict. the feeling is somehow the language server binary won't run, at least on my specs
  • I could confirm that setting preferBinary=true makes the issue surface again

Hope this helps a little to narrow this one down as it seems it's been around for a while now

@rgrunber
Copy link
Member

rgrunber commented Dec 12, 2024

If I'm understanding correctly that the only thing that works on Windows ARM64 is to install a compatible JDK (or JRE), then that makes sense. We never had support for Windows ARM64. We can only provide binaries of LemMinX for platforms if GitHub providers a corresponding runner (to build against). Luckily there's hope with https://github.blog/changelog/2024-06-03-actions-arm-based-linux-and-windows-runners-are-now-in-public-beta/ , but for now it's only available for certain plans.

@datho7561
Copy link
Contributor

@albigi I think we should track Windows ARM 64 compatibility as a separate issue, here: #1045

@glipscomb
Copy link

glipscomb commented Dec 13, 2024

To get v0.27.2.2 to work on Win 11 I had to add MS openJDK
winget install Microsoft.OpenJDK.21

was getting errors
Error - 2:50:08 PM] Connection to server got closed. Server will not be restarted.
[Error - 2:50:08 PM] Server initialization failed.
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 2:50:08 PM] XML Support client: couldn't create connection to server.
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 2:50:08 PM] Restarting server failed
Message: Pending response rejected since connection got disposed
Code: -32097

Was working fine on Win 10
did a clean install on Win 11 with only this Extension
didn't work until I added the openJDK

@datho7561
Copy link
Contributor

datho7561 commented Dec 13, 2024

Maybe the issue only appears if no Java is installed? I'll give that a try.

That wasn't the problem.

@glipscomb are you on Windows ARM 64 as well, or are you on Windows x86_64?

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

8 participants