redhat-developer / vscode-xml

Editing XML in Visual Studio Code made easy
Eclipse Public License 2.0
261 stars 82 forks source link

Runtime Status #998

Open xDeniz opened 5 months ago

xDeniz commented 5 months ago

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

image

angelozerr commented 5 months ago

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

xDeniz commented 5 months ago

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

no when it reverts back to 0.26.1 it works as intented

fbricon commented 5 months ago

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

xDeniz commented 5 months ago

[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 commented 5 months ago

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 commented 5 months ago

Are you using binary?

xDeniz commented 5 months ago

no

angelozerr commented 5 months ago

Please try to set prefer binary.

xDeniz commented 5 months ago

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 commented 5 months ago

image

working version

angelozerr commented 5 months ago

Which version of vscode are you using?

xDeniz commented 5 months ago

image

fbricon commented 5 months ago

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

xDeniz commented 5 months ago

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 commented 5 months ago

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 commented 5 months ago

no change still same error on v0.27.0 image

fbricon commented 5 months ago

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 commented 5 months ago

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