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 · 18 comments
Open

Runtime Status #998

xDeniz opened this issue May 28, 2024 · 18 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 

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

3 participants