znck / grammarly

Grammarly for VS Code
https://marketplace.visualstudio.com/items?itemName=znck.grammarly
MIT License
1.64k stars 116 forks source link

Facing language server crashes that won't fix themselves #268

Open akshaybhalotia opened 2 years ago

akshaybhalotia commented 2 years ago

I keep getting language server crashes

Error 1:

image

Log when the above error occurs

Ready!
Initialized!
open file:///Users/akshaybhalotia/code/developer-docs/docs/2.%20CONNECT%20SDK/Desktop/1.%20Browser.md
create text checking session for "file:///Users/akshaybhalotia/code/developer-docs/docs/2.%20CONNECT%20SDK/Desktop/1.%20Browser.md" with {
  "documentDialect": "auto-text",
  "documentDomain": "general",
  "suggestions": {
    "ConjunctionAtStartOfSentence": false,
    "Fluency": true,
    "InformalPronounsAcademic": false,
    "MissingSpaces": true,
    "NounStrings": true,
    "NumbersBeginningSentences": true,
    "NumbersZeroThroughTen": true,
    "OxfordComma": false,
    "PassiveVoice": false,
    "PersonFirstLanguage": true,
    "PossiblyBiasedLanguageAgeRelated": true,
    "PossiblyBiasedLanguageDisabilityRelated": true,
    "PossiblyBiasedLanguageFamilyRelated": true,
    "PossiblyBiasedLanguageGenderRelated": true,
    "PossiblyBiasedLanguageHumanRights": true,
    "PossiblyBiasedLanguageHumanRightsRelated": true,
    "PossiblyBiasedLanguageLgbtqiaRelated": true,
    "PossiblyBiasedLanguageRaceEthnicityRelated": true,
    "PossiblyPoliticallyIncorrectLanguage": true,
    "PrepositionAtTheEndOfSentence": false,
    "PunctuationWithQuotation": true,
    "ReadabilityFillerwords": true,
    "ReadabilityTransforms": true,
    "SentenceVariety": true,
    "SpacesSurroundingSlash": true,
    "SplitInfinitive": true,
    "StylisticFragments": false,
    "UnnecessaryEllipses": false,
    "Variety": true,
    "Vocabulary": true
  }
} 
[Error - 7:21:50 PM] Connection to server is erroring. Shutting down server.
[Error - 7:21:50 PM] Connection to server is erroring. Shutting down server.
/Users/akshaybhalotia/.vscode/extensions/znck.grammarly-0.22.0/dist/server/index.node.js:34
`&&n++}a&&r.length>0&&e.push(r.length),this._lineOffsets=e}return this._lineOffsets},t.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var r=this.getLineOffsets(),a=0,n=r.length;if(n===0)return dt.create(0,e);for(;a<n;){var i=Math.floor((a+n)/2);r[i]>e?n=i:a=i+1}var s=a-1;return dt.create(s,e-r[s])},t.prototype.offsetAt=function(e){var r=this.getLineOffsets();if(e.line>=r.length)return this._content.length;if(e.line<0)return 0;var a=r[e.line],n=e.line+1<r.length?r[e.line+1]:this._content.length;return Math.max(Math.min(a+e.character,n),a)},Object.defineProperty(t.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),t}();(function(t){var e=Object.prototype.toString;function r(A){return typeof A<"u"}t.defined=r;function a(A){return typeof A>"u"}t.undefined=a;function n(A){return A===!0||A===!1}t.boolean=n;function i(A){return e.call(A)==="[object String]"}t.string=i;function s(A){return e.call(A)==="[object Number]"}t.number=s;function o(A,D,x){return e.call(A)==="[object Number]"&&D<=A&&A<=x}t.numberRange=o;function l(A){return e.call(A)==="[object Number]"&&-2147483648<=A&&A<=2147483647}t.integer=l;function p(A){return e.call(A)==="[object Number]"&&0<=A&&A<=2147483647}t.uinteger=p;function c(A){return e.call(A)==="[object Function]"}t.func=c;function _(A){return A!==null&&typeof A=="object"}t.objectLiteral=_;function E(A,D){return Array.isArray(A)&&A.every(D)}t.typedArray=E})(R||(R={}))});var i1=G(z1=>{"use strict";Object.defineProperty(z1,"__esModule",{value:!0});z1.ProtocolNotificationType=z1.ProtocolNotificationType0=z1.ProtocolRequestType=z1.ProtocolRequestType0=z1.RegistrationType=void 0;var qa=Aa(),pp=class{constructor(e){this.method=e}};z1.RegistrationType=pp;var dp=class extends qa.RequestType0{constructor(e){super(e)}};z1.ProtocolRequestType0=dp;var lp=class extends qa.RequestType{constructor(e){super(e,qa.ParameterStructures.byName)}};z1.ProtocolRequestType=lp;var up=class extends qa.NotificationType0{constructor(e){super(e)}};z1.ProtocolNotificationType0=up;var cp=class extends qa.NotificationType{constructor(e){super(e,qa.ParameterStructures.byName)}};z1.ProtocolNotificationType=cp});var i6=G(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.objectLiteral=Ge.typedArray=Ge.stringArray=Ge.array=Ge.func=Ge.error=Ge.number=Ge.string=Ge.boolean=void 0;function R4(t){return t===!0||t===!1}Ge.boolean=R4;function a6(t){return typeof t=="string"||t instanceof String}Ge.string=a6;function C4(t){return typeof t=="number"||t instanceof Number}Ge.number=C4;function O4(t){return t instanceof Error}Ge.error=O4;function P4(t){return typeof t=="function"}Ge.func=P4;function n6(t){return Array.isArray(t)}Ge.array=n6;function q4(t){return n6(t)&&t.every(e=>a6(e))}Ge.stringArray=q4;function k4(t,e){return Array.isArray(t)&&t.every(e)}Ge.typedArray=k4;function I4(t){return t!==null&&typeof t=="object"}Ge.objectLiteral=I4});var s6=G(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.ImplementationRequest=void 0;var M4=i1(),L4;(function(t){t.method="textDocument/implementation",t.type=new M4.ProtocolRequestType(t.method)})(L4=Nn.ImplementationRequest||(Nn.ImplementationRequest={}))});var o6=G(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.TypeDefinitionRequest=void 0;var V4=i1(),F4;(function(t){t.method="textDocument/typeDefinition",t.type=new V4.ProtocolRequestType(t.method)})(F4=Dn.TypeDefinitionRequest||(Dn.TypeDefinitionRequest={}))});var d6=G(_r=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});_r.DidChangeWorkspaceFoldersNotification=_r.WorkspaceFoldersRequest=void 0;var p6=i1(),j4;(function(t){t.type=new p6.ProtocolRequestType0("workspace/workspaceFolders")})(j4=_r.WorkspaceFoldersRequest||(_r.WorkspaceFoldersRequest={}));var B4;(function(t){t.type=new p6.ProtocolNotificationType("workspace/didChangeWorkspaceFolders")})(B4=_r.DidChangeWorkspaceFoldersNotification||(_r.DidChangeWorkspaceFoldersNotification={}))});var l6=G(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.ConfigurationRequest=void 0;var U4=i1(),$4;(function(t){t.type=new U4.ProtocolRequestType("workspace/configuration")})($4=An.ConfigurationRequest||(An.ConfigurationRequest={}))});var c6=G(gr=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});gr.ColorPresentationRequest=gr.DocumentColorRequest=void 0;var u6=i1(),W4;(function(t){t.method="textDocument/documentColor",t.type=new u6.ProtocolRequestType(t.method)})(W4=gr.DocumentColorRequest||(gr.DocumentColorRequest={}));var H4;(function(t){t.type=new u6.ProtocolRequestType("textDocument/colorPresentation")})(H4=gr.ColorPresentationRequest||(gr.ColorPresentationRequest={}))});var m6=G(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.FoldingRangeRequest=yr.FoldingRangeKind=void 0;var G4=i1(),z4;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(z4=yr.FoldingRangeKind||(yr.FoldingRangeKind={}));var Y4;(function(t){t.method="textDocument/foldingRange",t.type=new G4.ProtocolRequestType(t.method)})(Y4=yr.FoldingRangeRequest||(yr.FoldingRangeRequest={}))});var f6=G(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.DeclarationRequest=void 0;var K4=i1(),J4;(function(t){t.method="textDocument/declaration",t.type=new K4.ProtocolRequestType(t.method)})(J4=xn.DeclarationRequest||(xn.DeclarationRequest={}))});var h6=G(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.SelectionRangeRequest=void 0;var Z4=i1(),X4;(function(t){t.method="textDocument/selectionRange",t.type=new Z4.ProtocolRequestType(t.method)})(X4=Rn.SelectionRangeRequest||(Rn.SelectionRangeRequest={}))});var _6=G(lt=>{"use strict";Object.defineProperty(lt,"__esModule",{value:!0});lt.WorkDoneProgressCancelNotification=lt.WorkDoneProgressCreateRequest=lt.WorkDoneProgress=void 0;var Q4=Aa(),v6=i1(),e7;(function(t){t.type=new Q4.ProgressType;function e(r){return r===t.type}t.is=e})(e7=lt.WorkDoneProgress||(lt.WorkDoneProgress={}));var t7;(function(t){t.type=new v6.ProtocolRequestType("window/workDoneProgress/create")})(t7=lt.WorkDoneProgressCreateRequest||(lt.WorkDoneProgressCreateRequest={}));var r7;(function(t){t.type=new v6.ProtocolNotificationType("window/workDoneProgress/cancel")})(r7=lt.WorkDoneProgressCancelNotification||(lt.WorkDoneProgressCancelNotification={}))});var g6=G(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.CallHierarchyOutgoingCallsRequest=ut.CallHierarchyIncomingCallsRequest=ut.CallHierarchyPrepareRequest=void 0;var mp=i1(),a7;(function(t){t.method="textDocument/prepareCallHierarchy",t.type=new mp.ProtocolRequestType(t.method)})(a7=ut.CallHierarchyPrepareRequest||(ut.CallHierarchyPrepareRequest={}));var n7;(function(t){t.method="callHierarchy/incomingCalls",t.type=new mp.ProtocolRequestType(t.method)})(n7=ut.CallHierarchyIncomingCallsRequest||(ut.CallHierarchyIncomingCallsRequest={}));var i7;(function(t){t.method="callHierarchy/outgoingCalls",t.type=new mp.ProtocolRequestType(t.method)})(i7=ut.CallHierarchyOutgoingCallsRequest||(ut.CallHierarchyOutgoingCallsRequest={}))});var y6=G(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.SemanticTokensRefreshRequest=Ee.SemanticTokensRangeRequest=Ee.SemanticTokensDeltaRequest=Ee.SemanticTokensRequest=Ee.SemanticTokensRegistrationType=Ee.TokenFormat=Ee.SemanticTokens=Ee.SemanticTokenModifiers=Ee.SemanticTokenTypes=void 0;var Cn=i1(),s7;(function(t){t.namespace="namespace",t.type="type",t.class="class",t.enum="enum",t.interface="interface",t.struct="struct",t.typeParameter="typeParameter",t.parameter="parameter",t.variable="variable",t.property="property",t.enumMember="enumMember",t.event="event",t.function="function",t.method="method",t.macro="macro",t.keyword="keyword",t.modifier="modifier",t.comment="comment",t.string="string",t.number="number",t.regexp="regexp",t.operator="operator"})(s7=Ee.SemanticTokenTypes||(Ee.SemanticTokenTypes={}));var o7;(function(t){t.declaration="declaration",t.definition="de

Error 2:

image

Log when the above error occurs

Ready!
Initialized!
open file:///Users/akshaybhalotia/code/developer-docs/docs/2.%20CONNECT%20SDK/Desktop/1.%20Browser.md
create text checking session for "file:///Users/akshaybhalotia/code/developer-docs/docs/2.%20CONNECT%20SDK/Desktop/1.%20Browser.md" with {
  "documentDialect": "auto-text",
  "documentDomain": "general",
  "suggestions": {
    "ConjunctionAtStartOfSentence": false,
    "Fluency": true,
    "InformalPronounsAcademic": false,
    "MissingSpaces": true,
    "NounStrings": true,
    "NumbersBeginningSentences": true,
    "NumbersZeroThroughTen": true,
    "OxfordComma": false,
    "PassiveVoice": false,
    "PersonFirstLanguage": true,
    "PossiblyBiasedLanguageAgeRelated": true,
    "PossiblyBiasedLanguageDisabilityRelated": true,
    "PossiblyBiasedLanguageFamilyRelated": true,
    "PossiblyBiasedLanguageGenderRelated": true,
    "PossiblyBiasedLanguageHumanRights": true,
    "PossiblyBiasedLanguageHumanRightsRelated": true,
    "PossiblyBiasedLanguageLgbtqiaRelated": true,
    "PossiblyBiasedLanguageRaceEthnicityRelated": true,
    "PossiblyPoliticallyIncorrectLanguage": true,
    "PrepositionAtTheEndOfSentence": false,
    "PunctuationWithQuotation": true,
    "ReadabilityFillerwords": true,
    "ReadabilityTransforms": true,
    "SentenceVariety": true,
    "SpacesSurroundingSlash": true,
    "SplitInfinitive": true,
    "StylisticFragments": false,
    "UnnecessaryEllipses": false,
    "Variety": true,
    "Vocabulary": true
  }
} 
/Users/akshaybhalotia/.vscode/extensions/znck.grammarly-0.22.0/dist/server/index.node.js:34
`&&n++}a&&r.length>0&&e.push(r.length),this._lineOffsets=e}return this._lineOffsets},t.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var r=this.getLineOffsets(),a=0,n=r.length;if(n===0)return dt.create(0,e);for(;a<n;){var i=Math.floor((a+n)/2);r[i]>e?n=i:a=i+1}var s=a-1;return dt.create(s,e-r[s])},t.prototype.offsetAt=function(e){var r=this.getLineOffsets();if(e.line>=r.length)return this._content.length;if(e.line<0)return 0;var a=r[e.line],n=e.line+1<r.length?r[e.line+1]:this._content.length;return Math.max(Math.min(a+e.character,n),a)},Object.defineProperty(t.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),t}();(function(t){var e=Object.prototype.toString;function r(A){return typeof A<"u"}t.defined=r;function a(A){return typeof A>"u"}t.undefined=a;function n(A){return A===!0||A===!1}t.boolean=n;function i(A){return e.call(A)==="[object String]"}t.string=i;function s(A){return e.call(A)==="[object Number]"}t.number=s;function o(A,D,x){return e.call(A)==="[object Number]"&&D<=A&&A<=x}t.numberRange=o;function l(A){return e.call(A)==="[object Number]"&&-2147483648<=A&&A<=2147483647}t.integer=l;function p(A){return e.call(A)==="[object Number]"&&0<=A&&A<=2147483647}t.uinteger=p;function c(A){return e.call(A)==="[object Function]"}t.func=c;function _(A){return A!==null&&typeof A=="object"}t.objectLiteral=_;function E(A,D){return Array.isArray(A)&&A.every(D)}t.typedArray=E})(R||(R={}))});var i1=G(z1=>{"use strict";Object.defineProperty(z1,"__esModule",{value:!0});z1.ProtocolNotificationType=z1.ProtocolNotificationType0=z1.ProtocolRequestType=z1.ProtocolRequestType0=z1.RegistrationType=void 0;var qa=Aa(),pp=class{constructor(e){this.method=e}};z1.RegistrationType=pp;var dp=class extends qa.RequestType0{constructor(e){super(e)}};z1.ProtocolRequestType0=dp;var lp=class extends qa.RequestType{constructor(e){super(e,qa.ParameterStructures.byName)}};z1.ProtocolRequestType=lp;var up=class extends qa.NotificationType0{constructor(e){super(e)}};z1.ProtocolNotificationType0=up;var cp=class extends qa.NotificationType{constructor(e){super(e,qa.ParameterStructures.byName)}};z1.ProtocolNotificationType=cp});var i6=G(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.objectLiteral=Ge.typedArray=Ge.stringArray=Ge.array=Ge.func=Ge.error=Ge.number=Ge.string=Ge.boolean=void 0;function R4(t){return t===!0||t===!1}Ge.boolean=R4;function a6(t){return typeof t=="string"||t instanceof String}Ge.string=a6;function C4(t){return typeof t=="number"||t instanceof Number}Ge.number=C4;function O4(t){return t instanceof Error}Ge.error=O4;function P4(t){return typeof t=="function"}Ge.func=P4;function n6(t){return Array.isArray(t)}Ge.array=n6;function q4(t){return n6(t)&&t.every(e=>a6(e))}Ge.stringArray=q4;function k4(t,e){return Array.isArray(t)&&t.every(e)}Ge.typedArray=k4;function I4(t){return t!==null&&typeof t=="object"}Ge.objectLiteral=I4});var s6=G(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.ImplementationRequest=void 0;var M4=i1(),L4;(function(t){t.method="textDocument/implementation",t.type=new M4.ProtocolRequestType(t.method)})(L4=Nn.ImplementationRequest||(Nn.ImplementationRequest={}))});var o6=G(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.TypeDefinitionRequest=void 0;var V4=i1(),F4;(function(t){t.method="textDocument/typeDefinition",t.type=new V4.ProtocolRequestType(t.method)})(F4=Dn.TypeDefinitionRequest||(Dn.TypeDefinitionRequest={}))});var d6=G(_r=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});_r.DidChangeWorkspaceFoldersNotification=_r.WorkspaceFoldersRequest=void 0;var p6=i1(),j4;(function(t){t.type=new p6.ProtocolRequestType0("workspace/workspaceFolders")})(j4=_r.WorkspaceFoldersRequest||(_r.WorkspaceFoldersRequest={}));var B4;(function(t){t.type=new p6.ProtocolNotificationType("workspace/didChangeWorkspaceFolders")})(B4=_r.DidChangeWorkspaceFoldersNotification||(_r.DidChangeWorkspaceFoldersNotification={}))});var l6=G(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.ConfigurationRequest=void 0;var U4=i1(),$4;(function(t){t.type=new U4.ProtocolRequestType("workspace/configuration")})($4=An.ConfigurationRequest||(An.ConfigurationRequest={}))});var c6=G(gr=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});gr.ColorPresentationRequest=gr.DocumentColorRequest=void 0;var u6=i1(),W4;(function(t){t.method="textDocument/documentColor",t.type=new u6.ProtocolRequestType(t.method)})(W4=gr.DocumentColorRequest||(gr.DocumentColorRequest={}));var H4;(function(t){t.type=new u6.ProtocolRequestType("textDocument/colorPresentation")})(H4=gr.ColorPresentationRequest||(gr.ColorPresentationRequest={}))});var m6=G(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.FoldingRangeRequest=yr.FoldingRangeKind=void 0;var G4=i1(),z4;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(z4=yr.FoldingRangeKind||(yr.FoldingRangeKind={}));var Y4;(function(t){t.method="textDocument/foldingRange",t.type=new G4.ProtocolRequestType(t.method)})(Y4=yr.FoldingRangeRequest||(yr.FoldingRangeRequest={}))});var f6=G(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.DeclarationRequest=void 0;var K4=i1(),J4;(function(t){t.method="textDocument/declaration",t.type=new K4.ProtocolRequestType(t.method)})(J4=xn.DeclarationRequest||(xn.DeclarationRequest={}))});var h6=G(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.SelectionRangeRequest=void 0;var Z4=i1(),X4;(function(t){t.method="textDocument/selectionRange",t.type=new Z4.ProtocolRequestType(t.method)})(X4=Rn.SelectionRangeRequest||(Rn.SelectionRangeRequest={}))});var _6=G(lt=>{"use strict";Object.defineProperty(lt,"__esModule",{value:!0});lt.WorkDoneProgressCancelNotification=lt.WorkDoneProgressCreateRequest=lt.WorkDoneProgress=void 0;var Q4=Aa(),v6=i1(),e7;(function(t){t.type=new Q4.ProgressType;function e(r){return r===t.type}t.is=e})(e7=lt.WorkDoneProgress||(lt.WorkDoneProgress={}));var t7;(function(t){t.type=new v6.ProtocolRequestType("window/workDoneProgress/create")})(t7=lt.WorkDoneProgressCreateRequest||(lt.WorkDoneProgressCreateRequest={}));var r7;(function(t){t.type=new v6.ProtocolNotificationType("window/workDoneProgress/cancel")})(r7=lt.WorkDoneProgressCancelNotification||(lt.WorkDoneProgressCancelNotification={}))});var g6=G(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.CallHierarchyOutgoingCallsRequest=ut.CallHierarchyIncomingCallsRequest=ut.CallHierarchyPrepareRequest=void 0;var mp=i1(),a7;(function(t){t.method="textDocument/prepareCallHierarchy",t.type=new mp.ProtocolRequestType(t.method)})(a7=ut.CallHierarchyPrepareRequest||(ut.CallHierarchyPrepareRequest={}));var n7;(function(t){t.method="callHierarchy/incomingCalls",t.type=new mp.ProtocolRequestType(t.method)})(n7=ut.CallHierarchyIncomingCallsRequest||(ut.CallHierarchyIncomingCallsRequest={}));var i7;(function(t){t.method="callHierarchy/outgoingCalls",t.type=new mp.ProtocolRequestType(t.method)})(i7=ut.CallHierarchyOutgoingCallsRequest||(ut.CallHierarchyOutgoingCallsRequest={}))});var y6=G(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.SemanticTokensRefreshRequest=Ee.SemanticTokensRangeRequest=Ee.SemanticTokensDeltaRequest=Ee.SemanticTokensRequest=Ee.SemanticTokensRegistrationType=Ee.TokenFormat=Ee.SemanticTokens=Ee.SemanticTokenModifiers=Ee.SemanticTokenTypes=void 0;var Cn=i1(),s7;(function(t){t.namespace="namespace",t.type="type",t.class="class",t.enum="enum",t.interface="interface",t.struct="struct",t.typeParameter="typeParameter",t.parameter="parameter",t.variable="variable",t.property="property",t.enumMember="enumMember",t.event="event",t.function="function",t.method="method",t.macro="macro",t.keyword="keyword",t.modifier="modifier",t.comment="comment",t.string="string",t.number="number",t.regexp="regexp",t.operator="operator"})(s7=Ee.SemanticTokenTypes||(Ee.SemanticTokenTypes={}));var o7;(function(t){t.declaration="declaration",t.definition="de[Error - 7:23:30 PM] Connection to server got closed. Server will not be restarted.

V S Code

Version: 1.67.2
Commit: c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5
Date: 2022-05-17T18:20:04.972Z
Electron: 17.4.1
Chromium: 98.0.4758.141
Node.js: 16.13.0
V8: 9.8.177.13-electron.0
OS: Darwin arm64 21.4.0

znck/grammarly

image

When I try restarting, this is what I get:

Command 'Grammarly: Restart language server' resulted in an error (command 'grammarly.restartServer' not found)

or

image

akshaybhalotia commented 2 years ago

Another one image

Log

Ready!
[Error - 7:30:01 PM] Server initialization failed.
Error: Connection got disposed.
    at Object.dispose (/Users/akshaybhalotia/.vscode/extensions/node_modules/.pnpm/vscode-jsonrpc@6.0.0/node_modules/vscode-jsonrpc/lib/common/connection.js:1044:27)
    at Object.dispose (/Users/akshaybhalotia/.vscode/extensions/node_modules/.pnpm/vscode-languageclient@7.0.0/node_modules/vscode-languageclient/lib/common/client.js:73:35)
    at /Users/akshaybhalotia/.vscode/extensions/node_modules/.pnpm/vscode-languageclient@7.0.0/node_modules/vscode-languageclient/lib/common/client.js:2320:28
[Error - 7:30:01 PM] Starting client failed
Error: Connection got disposed.
    at Object.dispose (/Users/akshaybhalotia/.vscode/extensions/node_modules/.pnpm/vscode-jsonrpc@6.0.0/node_modules/vscode-jsonrpc/lib/common/connection.js:1044:27)
    at Object.dispose (/Users/akshaybhalotia/.vscode/extensions/node_modules/.pnpm/vscode-languageclient@7.0.0/node_modules/vscode-languageclient/lib/common/client.js:73:35)
    at /Users/akshaybhalotia/.vscode/extensions/node_modules/.pnpm/vscode-languageclient@7.0.0/node_modules/vscode-languageclient/lib/common/client.js:2320:28
akshaybhalotia commented 2 years ago

From VS Code console:

on load

[Extension Host] rejected promise not handled within 1 second: Error: Connection got disposed.
E @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
_doInvokeHandler @ rpcProtocol.ts:473
_invokeHandler @ rpcProtocol.ts:458
_receiveRequest @ rpcProtocol.ts:374
_receiveOneMessage @ rpcProtocol.ts:296
(anonymous) @ rpcProtocol.ts:161
invoke @ event.ts:575
deliver @ event.ts:779
fire @ event.ts:740
fire @ ipc.net.ts:638
_receiveMessage @ ipc.net.ts:958
(anonymous) @ ipc.net.ts:831
invoke @ event.ts:575
deliver @ event.ts:779
fire @ event.ts:740
acceptChunk @ ipc.net.ts:382
(anonymous) @ ipc.net.ts:338
O @ ipc.net.ts:60
emit @ node:events:390
addChunk @ node:internal/streams/readable:315
readableAddChunk @ node:internal/streams/readable:289
Readable.push @ node:internal/streams/readable:228
onStreamRead @ node:internal/stream_base_commons:199

[Extension Host] stack trace: Error: Connection got disposed.    at Object.dispose (/Users/akshaybhalotia/.vscode/extensions/node_modules/.pnpm/vscode-jsonrpc@6.0.0/node_modules/vscode-jsonrpc/lib/common/connection.js:1044:27)    at Object.dispose (/Users/akshaybhalotia/.vscode/extensions/node_modules/.pnpm/vscode-languageclient@7.0.0/node_modules/vscode-languageclient/lib/common/client.js:73:35)    at os.handleConnectionClosed (/Users/akshaybhalotia/.vscode/extensions/node_modules/.pnpm/vscode-languageclient@7.0.0/node_modules/vscode-languageclient/lib/common/client.js:2424:42)    at os.handleConnectionClosed (/Users/akshaybhalotia/.vscode/extensions/node_modules/.pnpm/vscode-languageclient@7.0.0/node_modules/vscode-languageclient/lib/node/main.js:155:15)    at r (/Users/akshaybhalotia/.vscode/extensions/node_modules/.pnpm/vscode-languageclient@7.0.0/node_modules/vscode-languageclient/lib/common/client.js:2411:18)    at Zs.invoke (/Users/akshaybhalotia/.vscode/extensions/node_modules/.pnpm/vscode-jsonrpc@6.0.0/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)    at Kr.fire (/Users/akshaybhalotia/.vscode/extensions/node_modules/.pnpm/vscode-jsonrpc@6.0.0/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)    at Rt (/Users/akshaybhalotia/.vscode/extensions/node_modules/.pnpm/vscode-jsonrpc@6.0.0/node_modules/vscode-jsonrpc/lib/common/connection.js:256:26)    at Zs.invoke (/Users/akshaybhalotia/.vscode/extensions/node_modules/.pnpm/vscode-jsonrpc@6.0.0/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)    at Kr.fire (/Users/akshaybhalotia/.vscode/extensions/node_modules/.pnpm/vscode-jsonrpc@6.0.0/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)    at wo.fireClose (/Users/akshaybhalotia/.vscode/extensions/node_modules/.pnpm/vscode-jsonrpc@6.0.0/node_modules/vscode-jsonrpc/lib/common/messageReader.js:40:27)    at ChildProcess.<anonymous> (/Users/akshaybhalotia/.vscode/extensions/node_modules/.pnpm/vscode-jsonrpc@6.0.0/node_modules/vscode-jsonrpc/lib/node/main.js:33:45)    at ChildProcess.emit (node:events:402:35)    at maybeClose (node:internal/child_process:1064:16)    at Socket.<anonymous> (node:internal/child_process:450:11)    at Socket.emit (node:events:390:28)    at Pipe.<anonymous> (node:net:687:12)
E @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
_doInvokeHandler @ rpcProtocol.ts:473
_invokeHandler @ rpcProtocol.ts:458
_receiveRequest @ rpcProtocol.ts:374
_receiveOneMessage @ rpcProtocol.ts:296
(anonymous) @ rpcProtocol.ts:161
invoke @ event.ts:575
deliver @ event.ts:779
fire @ event.ts:740
fire @ ipc.net.ts:638
_receiveMessage @ ipc.net.ts:958
(anonymous) @ ipc.net.ts:831
invoke @ event.ts:575
deliver @ event.ts:779
fire @ event.ts:740
acceptChunk @ ipc.net.ts:382
(anonymous) @ ipc.net.ts:338
O @ ipc.net.ts:60
emit @ node:events:390
addChunk @ node:internal/streams/readable:315
readableAddChunk @ node:internal/streams/readable:289
Readable.push @ node:internal/streams/readable:228
onStreamRead @ node:internal/stream_base_commons:199

ERR Connection got disposed.: Error: Connection got disposed.
    at Object.dispose (/Users/akshaybhalotia/.vscode/extensions/node_modules/.pnpm/vscode-jsonrpc@6.0.0/node_modules/vscode-jsonrpc/lib/common/connection.js:1044:27)
    at Object.dispose (/Users/akshaybhalotia/.vscode/extensions/node_modules/.pnpm/vscode-languageclient@7.0.0/node_modules/vscode-languageclient/lib/common/client.js:73:35)
    at os.handleConnectionClosed (/Users/akshaybhalotia/.vscode/extensions/node_modules/.pnpm/vscode-languageclient@7.0.0/node_modules/vscode-languageclient/lib/common/client.js:2424:42)
    at os.handleConnectionClosed (/Users/akshaybhalotia/.vscode/extensions/node_modules/.pnpm/vscode-languageclient@7.0.0/node_modules/vscode-languageclient/lib/node/main.js:155:15)
    at r (/Users/akshaybhalotia/.vscode/extensions/node_modules/.pnpm/vscode-languageclient@7.0.0/node_modules/vscode-languageclient/lib/common/client.js:2411:18)
    at Zs.invoke (/Users/akshaybhalotia/.vscode/extensions/node_modules/.pnpm/vscode-jsonrpc@6.0.0/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
    at Kr.fire (/Users/akshaybhalotia/.vscode/extensions/node_modules/.pnpm/vscode-jsonrpc@6.0.0/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
    at Rt (/Users/akshaybhalotia/.vscode/extensions/node_modules/.pnpm/vscode-jsonrpc@6.0.0/node_modules/vscode-jsonrpc/lib/common/connection.js:256:26)
    at Zs.invoke (/Users/akshaybhalotia/.vscode/extensions/node_modules/.pnpm/vscode-jsonrpc@6.0.0/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
    at Kr.fire (/Users/akshaybhalotia/.vscode/extensions/node_modules/.pnpm/vscode-jsonrpc@6.0.0/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
    at wo.fireClose (/Users/akshaybhalotia/.vscode/extensions/node_modules/.pnpm/vscode-jsonrpc@6.0.0/node_modules/vscode-jsonrpc/lib/common/messageReader.js:40:27)
    at ChildProcess.<anonymous> (/Users/akshaybhalotia/.vscode/extensions/node_modules/.pnpm/vscode-jsonrpc@6.0.0/node_modules/vscode-jsonrpc/lib/node/main.js:33:45)
    at ChildProcess.emit (node:events:402:35)
    at maybeClose (node:internal/child_process:1064:16)
    at Socket.<anonymous> (node:internal/child_process:450:11)
    at Socket.emit (node:events:390:28)
    at Pipe.<anonymous> (node:net:687:12)

on trying to restart language server

[Extension Host] rejected promise not handled within 1 second: Error: Language client is not ready yet
E @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
_doInvokeHandler @ rpcProtocol.ts:473
_invokeHandler @ rpcProtocol.ts:458
_receiveRequest @ rpcProtocol.ts:374
_receiveOneMessage @ rpcProtocol.ts:296
(anonymous) @ rpcProtocol.ts:161
invoke @ event.ts:575
deliver @ event.ts:779
fire @ event.ts:740
fire @ ipc.net.ts:638
_receiveMessage @ ipc.net.ts:958
(anonymous) @ ipc.net.ts:831
invoke @ event.ts:575
deliver @ event.ts:779
fire @ event.ts:740
acceptChunk @ ipc.net.ts:382
(anonymous) @ ipc.net.ts:338
O @ ipc.net.ts:60
emit @ node:events:390
addChunk @ node:internal/streams/readable:315
readableAddChunk @ node:internal/streams/readable:289
Readable.push @ node:internal/streams/readable:228
onStreamRead @ node:internal/stream_base_commons:199

[Extension Host] stack trace: Error: Language client is not ready yet    at os.sendRequest (/Users/akshaybhalotia/.vscode/extensions/node_modules/.pnpm/vscode-languageclient@7.0.0/node_modules/vscode-languageclient/lib/common/client.js:1852:19)    at Proxy.<anonymous> (/Users/akshaybhalotia/.vscode/extensions/packages/grammarly-languageclient/src/protocol.ts:26:41)    at iu.update (/Users/akshaybhalotia/.vscode/extensions/znck.grammarly-0.23.2/dist/extension/index.node.js:298:61)    at processTicksAndRejections (node:internal/process/task_queues:96:5)
E @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
_doInvokeHandler @ rpcProtocol.ts:473
_invokeHandler @ rpcProtocol.ts:458
_receiveRequest @ rpcProtocol.ts:374
_receiveOneMessage @ rpcProtocol.ts:296
(anonymous) @ rpcProtocol.ts:161
invoke @ event.ts:575
deliver @ event.ts:779
fire @ event.ts:740
fire @ ipc.net.ts:638
_receiveMessage @ ipc.net.ts:958
(anonymous) @ ipc.net.ts:831
invoke @ event.ts:575
deliver @ event.ts:779
fire @ event.ts:740
acceptChunk @ ipc.net.ts:382
(anonymous) @ ipc.net.ts:338
O @ ipc.net.ts:60
emit @ node:events:390
addChunk @ node:internal/streams/readable:315
readableAddChunk @ node:internal/streams/readable:289
Readable.push @ node:internal/streams/readable:228
onStreamRead @ node:internal/stream_base_commons:199

ERR Language client is not ready yet: Error: Language client is not ready yet
    at os.sendRequest (/Users/akshaybhalotia/.vscode/extensions/node_modules/.pnpm/vscode-languageclient@7.0.0/node_modules/vscode-languageclient/lib/common/client.js:1852:19)
    at Proxy.<anonymous> (/Users/akshaybhalotia/.vscode/extensions/packages/grammarly-languageclient/src/protocol.ts:26:41)
    at iu.update (/Users/akshaybhalotia/.vscode/extensions/znck.grammarly-0.23.2/dist/extension/index.node.js:298:61)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
akshaybhalotia commented 2 years ago

Let me know if I can do anything else to help

rafaeltab commented 2 years ago

I switched to the pre-release version, and now everything is working perfectly

akshaybhalotia commented 2 years ago

I did the same, even did a system restart. The account connection happens fine, but when I open a file where I want to use Grammarly, I keep getting the write EPIPE error.

znck commented 2 years ago

I cannot reproduce this issue. Does this happen with a specific file or workspace?

akshaybhalotia commented 2 years ago

Yup, this is happening for specific files. Some files in the same workspace work and some don't. At first, I thought that this is due to the file length, but no.

Fails for a 215 lines file Fails for a 61 lines file Fails for a 136 lines file

Works for a 116 lines file Works for a 204 lines file

These are all markdown files, btw. And all of them have tables, hyperlinks, bullet points, h1, h2, h3, bold, italics, etc. - so it's not the formatting syntax too.

akshaybhalotia commented 2 years ago

Another observation is that where the language server was refusing to restart previously (on the release version), it is now (on the pre-release version) successfully getting restarted if I try the "restart language server" command from one of the files that are working.

akshaybhalotia commented 2 years ago

Any updates ? @znck

akshaybhalotia commented 2 years ago

As of pre-release v0.23.6, I don't see any additional logs. Here is what I have.

Ready!
Initialized!
open file:///Users/akshaybhalotia/code/developer-docs/docs/CONNECT%20SDK/Desktop/Browser.md
create text checking session for "file:///Users/akshaybhalotia/code/developer-docs/docs/CONNECT%20SDK/Desktop/Browser.md" with {
  "documentDialect": "auto-text",
  "documentDomain": "general",
  "suggestions": {
    "ConjunctionAtStartOfSentence": false,
    "Fluency": true,
    "InformalPronounsAcademic": false,
    "MissingSpaces": true,
    "NounStrings": true,
    "NumbersBeginningSentences": true,
    "NumbersZeroThroughTen": true,
    "OxfordComma": false,
    "PassiveVoice": false,
    "PersonFirstLanguage": true,
    "PossiblyBiasedLanguageAgeRelated": true,
    "PossiblyBiasedLanguageDisabilityRelated": true,
    "PossiblyBiasedLanguageFamilyRelated": true,
    "PossiblyBiasedLanguageGenderRelated": true,
    "PossiblyBiasedLanguageHumanRights": true,
    "PossiblyBiasedLanguageHumanRightsRelated": true,
    "PossiblyBiasedLanguageLgbtqiaRelated": true,
    "PossiblyBiasedLanguageRaceEthnicityRelated": true,
    "PossiblyPoliticallyIncorrectLanguage": true,
    "PrepositionAtTheEndOfSentence": false,
    "PunctuationWithQuotation": true,
    "ReadabilityFillerwords": true,
    "ReadabilityTransforms": true,
    "SentenceVariety": true,
    "SpacesSurroundingSlash": true,
    "SplitInfinitive": true,
    "StylisticFragments": false,
    "UnnecessaryEllipses": false,
    "Variety": true,
    "Vocabulary": true
  }
} 
/Users/akshaybhalotia/.vscode/extensions/znck.grammarly-0.23.6/dist/server/index.node.js:34
`&&n++}a&&r.length>0&&e.push(r.length),this._lineOffsets=e}return this._lineOffsets},t.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var r=this.getLineOffsets(),a=0,n=r.length;if(n===0)return ut.create(0,e);for(;a<n;){var i=Math.floor((a+n)/2);r[i]>e?n=i:a=i+1}var s=a-1;return ut.create(s,e-r[s])},t.prototype.offsetAt=function(e){var r=this.getLineOffsets();if(e.line>=r.length)return this._content.length;if(e.line<0)return 0;var a=r[e.line],n=e.line+1<r.length?r[e.line+1]:this._content.length;return Math.max(Math.min(a+e.character,n),a)},Object.defineProperty(t.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),t}();(function(t){var e=Object.prototype.toString;function r(A){return typeof A<"u"}t.defined=r;function a(A){return typeof A>"u"}t.undefined=a;function n(A){return A===!0||A===!1}t.boolean=n;function i(A){return e.call(A)==="[object String]"}t.string=i;function s(A){return e.call(A)==="[object Number]"}t.number=s;function o(A,D,x){return e.call(A)==="[object Number]"&&D<=A&&A<=x}t.numberRange=o;function l(A){return e.call(A)==="[object Number]"&&-2147483648<=A&&A<=2147483647}t.integer=l;function p(A){return e.call(A)==="[object Number]"&&0<=A&&A<=2147483647}t.uinteger=p;function c(A){return e.call(A)==="[object Function]"}t.func=c;function _(A){return A!==null&&typeof A=="object"}t.objectLiteral=_;function E(A,D){return Array.isArray(A)&&A.every(D)}t.typedArray=E})(R||(R={}))});var i1=G(z1=>{"use strict";Object.defineProperty(z1,"__esModule",{value:!0});z1.ProtocolNotificationType=z1.ProtocolNotificationType0=z1.ProtocolRequestType=z1.ProtocolRequestType0=z1.RegistrationType=void 0;var qa=Aa(),pp=class{constructor(e){this.method=e}};z1.RegistrationType=pp;var dp=class extends qa.RequestType0{constructor(e){super(e)}};z1.ProtocolRequestType0=dp;var lp=class extends qa.RequestType{constructor(e){super(e,qa.ParameterStructures.byName)}};z1.ProtocolRequestType=lp;var up=class extends qa.NotificationType0{constructor(e){super(e)}};z1.ProtocolNotificationType0=up;var cp=class extends qa.NotificationType{constructor(e){super(e,qa.ParameterStructures.byName)}};z1.ProtocolNotificationType=cp});var i6=G(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.objectLiteral=Ge.typedArray=Ge.stringArray=Ge.array=Ge.func=Ge.error=Ge.number=Ge.string=Ge.boolean=void 0;function R4(t){return t===!0||t===!1}Ge.boolean=R4;function a6(t){return typeof t=="string"||t instanceof String}Ge.string=a6;function C4(t){return typeof t=="number"||t instanceof Number}Ge.number=C4;function O4(t){return t instanceof Error}Ge.error=O4;function P4(t){return typeof t=="function"}Ge.func=P4;function n6(t){return Array.isArray(t)}Ge.array=n6;function q4(t){return n6(t)&&t.every(e=>a6(e))}Ge.stringArray=q4;function k4(t,e){return Array.isArray(t)&&t.every(e)}Ge.typedArray=k4;function I4(t){return t!==null&&typeof t=="object"}Ge.objectLiteral=I4});var s6=G(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.ImplementationRequest=void 0;var M4=i1(),L4;(function(t){t.method="textDocument/implementation",t.type=new M4.ProtocolRequestType(t.method)})(L4=Dn.ImplementationRequest||(Dn.ImplementationRequest={}))});var o6=G(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.TypeDefinitionRequest=void 0;var V4=i1(),F4;(function(t){t.method="textDocument/typeDefinition",t.type=new V4.ProtocolRequestType(t.method)})(F4=An.TypeDefinitionRequest||(An.TypeDefinitionRequest={}))});var d6=G(_r=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});_r.DidChangeWorkspaceFoldersNotification=_r.WorkspaceFoldersRequest=void 0;var p6=i1(),j4;(function(t){t.type=new p6.ProtocolRequestType0("workspace/workspaceFolders")})(j4=_r.WorkspaceFoldersRequest||(_r.WorkspaceFoldersRequest={}));var B4;(function(t){t.type=new p6.ProtocolNotificationType("workspace/didChangeWorkspaceFolders")})(B4=_r.DidChangeWorkspaceFoldersNotification||(_r.DidChangeWorkspaceFoldersNotification={}))});var l6=G(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.ConfigurationRequest=void 0;var U4=i1(),$4;(function(t){t.type=new U4.ProtocolRequestType("workspace/configuration")})($4=xn.ConfigurationRequest||(xn.ConfigurationRequest={}))});var c6=G(gr=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});gr.ColorPresentationRequest=gr.DocumentColorRequest=void 0;var u6=i1(),W4;(function(t){t.method="textDocument/documentColor",t.type=new u6.ProtocolRequestType(t.method)})(W4=gr.DocumentColorRequest||(gr.DocumentColorRequest={}));var H4;(function(t){t.type=new u6.ProtocolRequestType("textDocument/colorPresentation")})(H4=gr.ColorPresentationRequest||(gr.ColorPresentationRequest={}))});var m6=G(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.FoldingRangeRequest=yr.FoldingRangeKind=void 0;var G4=i1(),z4;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(z4=yr.FoldingRangeKind||(yr.FoldingRangeKind={}));var Y4;(function(t){t.method="textDocument/foldingRange",t.type=new G4.ProtocolRequestType(t.method)})(Y4=yr.FoldingRangeRequest||(yr.FoldingRangeRequest={}))});var f6=G(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.DeclarationRequest=void 0;var K4=i1(),J4;(function(t){t.method="textDocument/declaration",t.type=new K4.ProtocolRequestType(t.method)})(J4=Rn.DeclarationRequest||(Rn.DeclarationRequest={}))});var h6=G(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});Cn.SelectionRangeRequest=void 0;var Z4=i1(),X4;(function(t){t.method="textDocument/selectionRange",t.type=new Z4.ProtocolRequestType(t.method)})(X4=Cn.SelectionRangeRequest||(Cn.SelectionRangeRequest={}))});var _6=G(ct=>{"use strict";Object.defineProperty(ct,"__esModule",{value:!0});ct.WorkDoneProgressCancelNotification=ct.WorkDoneProgressCreateRequest=ct.WorkDoneProgress=void 0;var Q4=Aa(),v6=i1(),e7;(function(t){t.type=new Q4.ProgressType;function e(r){return r===t.type}t.is=e})(e7=ct.WorkDoneProgress||(ct.WorkDoneProgress={}));var t7;(function(t){t.type=new v6.ProtocolRequestType("window/workDoneProgress/create")})(t7=ct.WorkDoneProgressCreateRequest||(ct.WorkDoneProgressCreateRequest={}));var r7;(function(t){t.type=new v6.ProtocolNotificationType("window/workDoneProgress/cancel")})(r7=ct.WorkDoneProgressCancelNotification||(ct.WorkDoneProgressCancelNotification={}))});var g6=G(mt=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});mt.CallHierarchyOutgoingCallsRequest=mt.CallHierarchyIncomingCallsRequest=mt.CallHierarchyPrepareRequest=void 0;var mp=i1(),a7;(function(t){t.method="textDocument/prepareCallHierarchy",t.type=new mp.ProtocolRequestType(t.method)})(a7=mt.CallHierarchyPrepareRequest||(mt.CallHierarchyPrepareRequest={}));var n7;(function(t){t.method="callHierarchy/incomingCalls",t.type=new mp.ProtocolRequestType(t.method)})(n7=mt.CallHierarchyIncomingCallsRequest||(mt.CallHierarchyIncomingCallsRequest={}));var i7;(function(t){t.method="callHierarchy/outgoingCalls",t.type=new mp.ProtocolRequestType(t.method)})(i7=mt.CallHierarchyOutgoingCallsRequest||(mt.CallHierarchyOutgoingCallsRequest={}))});var y6=G(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.SemanticTokensRefreshRequest=Ee.SemanticTokensRangeRequest=Ee.SemanticTokensDeltaRequest=Ee.SemanticTokensRequest=Ee.SemanticTokensRegistrationType=Ee.TokenFormat=Ee.SemanticTokens=Ee.SemanticTokenModifiers=Ee.SemanticTokenTypes=void 0;var On=i1(),s7;(function(t){t.namespace="namespace",t.type="type",t.class="class",t.enum="enum",t.interface="interface",t.struct="struct",t.typeParameter="typeParameter",t.parameter="parameter",t.variable="variable",t.property="property",t.enumMember="enumMember",t.event="event",t.function="function",t.method="method",t.macro="macro",t.keyword="keyword",t.modifier="modifier",t.comment="comment",t.string="string",t.number="number",t.regexp="regexp",t.operator="operator"})(s7=Ee.SemanticTokenTypes||(Ee.SemanticTokenTypes={}));var o7;(function(t){t.declaration="declaration",t.definition="de[Error - 7:45:20 PM] Connection to server got closed. Server will not be restarted.
akshaybhalotia commented 2 years ago

This isn't resolved yet. How can I reopen?

leowu4ever commented 1 year ago

Any news on this issue? I'm getting the below when I try to log in from vscode. image

khaled-ahmed-nagwa commented 1 year ago

Any news on this issue? I'm getting the below when I try to log in from vscode. image

@leowu4ever I started having this issue, and the solution was to downgrade vs code to version 1.77 Download from here : (vs code version 1.77)

Vvitali commented 1 year ago

@khaled-ahmed-nagwa thank you. @akshaybhalotia it seems we have same use cases and facing exactly the same issue

rosarioscavo commented 1 year ago

New installation here. Same issue