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

panicked getrandom::getrandom() failed.: Error "Node.js crypto CommonJS module is unavailable" #700

Closed
davidaparicio opened this issue Nov 15, 2024 · 3 comments

Comments

@davidaparicio
Copy link

Hello!

When I open a TOML on my VSCodium, I got a panic:

Version: 1.88.1
Release: 24104
Commit: 0d01a72525276e5e3771fe5851b9c83de0de1e2b
Date: 2024-04-13T01:43:30.924Z (7 mos ago)
Electron: 28.2.8
ElectronBuildId: undefined
Chromium: 120.0.6099.291
Node.js: 18.18.2
V8: 12.0.267.19-electron.0
OS: Darwin arm64 24.1.0

And the output of "Even Better TOML LSP" is the following:

 INFO registered request handler method="initialize"
 INFO registered request handler method="textDocument/foldingRange"
 INFO registered request handler method="textDocument/documentSymbol"
 INFO registered request handler method="textDocument/formatting"
 INFO registered request handler method="textDocument/completion"
 INFO registered request handler method="textDocument/hover"
 INFO registered request handler method="textDocument/documentLink"
 INFO registered request handler method="textDocument/semanticTokens/full"
 INFO registered request handler method="textDocument/prepareRename"
 INFO registered request handler method="textDocument/rename"
 INFO registered notification handler method="initialized"
 INFO registered notification handler method="textDocument/didOpen"
 INFO registered notification handler method="textDocument/didChange"
 INFO registered notification handler method="textDocument/didSave"
 INFO registered notification handler method="textDocument/didClose"
 INFO registered notification handler method="workspace/didChangeConfiguration"
 INFO registered notification handler method="workspace/didChangeWorkspaceFolders"
 INFO registered request handler method="taplo/convertToJson"
 INFO registered request handler method="taplo/convertToToml"
 INFO registered request handler method="taplo/listSchemas"
 INFO registered request handler method="taplo/associatedSchema"
 INFO registered notification handler method="taplo/associateSchema"
panicked at /Users/JounQin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ahash-0.8.3/src/random_state.rs:81:51:
getrandom::getrandom() failed.: Error { internal_code: 2147483660, description: "Node.js crypto CommonJS module is unavailable" }

Stack:

Error
    at EA.G.wbg.__wbg_new_abda76e883ba8a5f (/Users/daparicio/.vscode-oss/extensions/tamasfe.even-better-toml-0.21.0-universal/dist/server.js:2:4187)
    at console_error_panic_hook::Error::new::hd83448d5e1a1b88a (wasm://wasm/065ed00a:wasm-function[40242]:0x1249bc2)
    at console_error_panic_hook::hook_impl::h24434d5d3a31a46a (wasm://wasm/065ed00a:wasm-function[10411]:0xcf17fe)
    at console_error_panic_hook::hook::hb562c91cafc2c895 (wasm://wasm/065ed00a:wasm-function[59765]:0x12e59c7)
    at core::ops::function::Fn::call::h46d6beedf89bee9d (wasm://wasm/065ed00a:wasm-function[42879]:0x1275769)
    at std::panicking::rust_panic_with_hook::h8e8556df5e46d2ff (wasm://wasm/065ed00a:wasm-function[20551]:0xfc8712)
    at std::panicking::begin_panic_handler::{{closure}}::h142b9f459ded72d9 (wasm://wasm/065ed00a:wasm-function[25954]:0x10c54f1)
    at std::sys_common::backtrace::__rust_end_short_backtrace::h1c0d3278570375be (wasm://wasm/065ed00a:wasm-function[61550]:0x12e9f20)
    at rust_begin_unwind (wasm://wasm/065ed00a:wasm-function[42801]:0x12744d7)
    at core::panicking::panic_fmt::hbea4287e435ed8a3 (wasm://wasm/065ed00a:wasm-function[43645]:0x1280e86)


/Users/daparicio/.vscode-oss/extensions/tamasfe.even-better-toml-0.21.0-universal/dist/server.js:40
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"	",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"};const FQ=Cg,{MAX_LENGTH:KC,CHAR_BACKSLASH:hg,CHAR_BACKTICK:MQ,CHAR_COMMA:cQ,CHAR_DOT:yQ,CHAR_LEFT_PARENTHESES:NQ,CHAR_RIGHT_PARENTHESES:UQ,CHAR_LEFT_CURLY_BRACE:OQ,CHAR_RIGHT_CURLY_BRACE:jQ,CHAR_LEFT_SQUARE_BRACKET:XC,CHAR_RIGHT_SQUARE_BRACKET:VC,CHAR_DOUBLE_QUOTE:RQ,CHAR_SINGLE_QUOTE:kQ,CHAR_NO_BREAK_SPACE:ZQ,CHAR_ZERO_WIDTH_NOBREAK_SPACE:JQ}=iQ,HQ=(I,A={})=>{if(typeof I!="string")throw new TypeError("Expected a string");const g=A||{},C=typeof g.maxLength=="number"?Math.min(KC,g.maxLength):KC;if(I.length>C)throw new SyntaxError(`Input length (${I.length}), exceeds max characters (${C})`);const E={type:"root",input:I,nodes:[]},B=[E];let Q=E,h=E,Y=0;const i=I.length;let S=0,w=0,F;const J=()=>I[S++],M=O=>{if(O.type==="text"&&h.type==="dot"&&(h.type="text"),h&&h.type==="text"&&O.type==="text"){h.value+=O.value;return}return Q.nodes.push(O),O.parent=Q,O.prev=h,h=O,O};for(M({type:"bos"});S<i;)if(Q=B[B.length-1],F=J(),!(F===JQ||F===ZQ)){if(F===hg){M({type:"text",value:(A.keepEscaping?F:"")+J()});continue}if(F===VC){M({type:"text",value:"\\"+F});continue}if(F===XC){Y++;let O;for(;S<i&&(O=J());){if(F+=O,O===XC){Y++;continue}if(O===hg){F+=J();continue}if(O===VC&&(Y--,Y===0))break}M({type:"text",value:F});continue}if(F===NQ){Q=M({type:"paren",nodes:[]}),B.push(Q),M({type:"text",value:F});continue}if(F===UQ){if(Q.type!=="paren"){M({type:"text",value:F});continue}Q=B.pop(),M({type:"text",value:F}),Q=B[B.length-1];continue}if(F===RQ||F===kQ||F===MQ){const O=F;let H;for(A.keepQuotes!==!0&&(F="");S<i&&(H=J());){if(H===hg){F+=H+J();continue}if(H===O){A.keepQuotes===!0&&(F+=H);break}F+=H}M({type:"text",value:F});continue}if(F===OQ){w++;const H={type:"brace",open:!0,close:!1,dollar:h.value&&h.value.slice(-1)==="$"||Q.dollar===!0,depth:w,commas:0,ranges:0,nodes:[]};Q=M(H),B.push(Q),M({type:"open",value:F});continue}if(F===jQ){if(Q.type!=="brace"){M({type:"text",value:F});continue}const O="close";Q=B.pop(),Q.close=!0,M({type:O,value:F}),w--,Q=B[B.length-1];continue}if(F===cQ&&w>0){if(Q.ranges>0){Q.ranges=0;const O=Q.nodes.shift();Q.nodes=[O,{type:"text",value:FQ(Q)}]}M({type:"comma",value:F}),Q.commas++;continue}if(F===yQ&&w>0&&Q.commas===0){const O=Q.nodes;if(w===0||O.length===0){M({type:"text",value:F});continue}if(h.type==="dot"){if(Q.range=[],h.value+=F,h.type="range",Q.nodes.length!==3&&Q.nodes.length!==5){Q.invalid=!0,Q.ranges=0,h.type="text";continue}Q.ranges++,Q.args=[];continue}if(h.type==="range"){O.pop();const H=O[O.length-1];H.value+=h.value+F,h=H,Q.ranges--;continue}M({type:"dot",value:F});continue}M({type:"text",value:F})}do if(Q=B.pop(),Q.type!=="root"){Q.nodes.forEach(Z=>{Z.nodes||(Z.type==="open"&&(Z.isOpen=!0),Z.type==="close"&&(Z.isClose=!0),Z.nodes||(Z.type="text"),Z.invalid=!0)});const O=B[B.length-1],H=O.nodes.indexOf(Q);O.nodes.splice(H,1,...Q.nodes)}while(B.length>0);return M({type:"eos"}),E};var mQ=HQ;const LC=Cg,aQ=GQ,lQ=wQ,pQ=mQ,YA=(I,A={})=>{let g=[];if(Array.isArray(I))for(const C of I){const E=YA.create(C,A);Array.isArray(E)?g.push(...E):g.push(E)}else g=[].concat(YA.create(I,A));return A&&A.expand===!0&&A.nodupes===!0&&(g=[...new Set(g)]),g};YA.parse=(I,A={})=>pQ(I,A),YA.stringify=(I,A={})=>LC(typeof I=="string"?YA.parse(I,A):I,A),YA.compile=(I,A={})=>(typeof I=="string"&&(I=YA.parse(I,A)),aQ(I,A)),YA.expand=(I,A={})=>{typeof I=="string"&&(I=YA.parse(I,A));let g=lQ(I,A);return A.noempty===!0&&(g=g.filter(Boolean)),A.nodupes===!0&&(g=[...new Set(g)]),g},YA.create=(I,A={})=>I===""||I.length<3?[I]:A.expand!==!0?YA.compile(I,A):YA.expand(I,A);var WQ=YA,II={};const bQ=iA,ZA="\\\\/",dC=`[^${ZA}]`,TA="\\.",TQ="\\+",sQ="\\?",JI="\\/",KQ="(?=.)",zC="[^/]",Dg=`(?:${JI}|$)`,xC=`(?:^|${JI})`,Sg=`${TA}{1,2}${Dg}`,XQ=`(?!${TA})`,VQ=`(?!${xC}${Sg})`,LQ=`(?!${TA}{0,1}${Dg})`,dQ=`(?!${Sg})`,zQ=`[^.${JI}]`,xQ=`${zC}*?`,qC={DOT_LITERAL:TA,PLUS_LITERAL:TQ,QMARK_LITERAL:sQ,SLASH_LITERAL:JI,ONE_CHAR:KQ,QMARK:zC,END_ANCHOR:Dg,DOTS_SLASH:Sg,NO_DOT:XQ,NO_DOTS:VQ,NO_DOT_SLASH:LQ,NO_DOTS_SLASH:dQ,QMARK_NO_DOT:zQ,STAR:xQ,START_ANCHOR:xC},qQ={...qC,SLASH_LITERAL:`[${ZA}]`,QMARK:dC,STAR:`${dC}*?`,DOTS_SLASH:`${TA}{1,2}(?:[${ZA}]|$)`,NO_DOT:`(?!${TA})`,NO_DOTS:`(?!(?:^|[${ZA}])${TA}{1,2}(?:[${ZA}]|$))`,NO_DOT_SLASH:`(?!${TA}{0,1}(?:[${ZA}]|$))`,NO_DOTS_SLASH:`(?!${TA}{1,2}(?:[${ZA}]|$))`,QMARK_NO_DOT:`[^.${ZA}]`,START_ANCHOR:`(?:^|[${ZA}])`,END_ANCHOR:`(?:[${ZA}]|$)`},PQ={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};var HI={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:PQ,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:bQ.sep,extglobChars(I){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${I.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(I){return I===!0?qQ:qC}};(function(I){const A=iA,g=process.platform==="win32",{REGEX_BACKSLASH:C,REGEX_REMOVE_BACKSLASH:E,REGEX_SPECIAL_CHARS:B,REGEX_SPECIAL_CHARS_GLOBAL:Q}=HI;I.isObject=h=>h!==null&&typeof h=="object"&&!Array.isArray(h),I.hasRegexChars=h=>B.test(h),I.isRegexChar=h=>h.length===1&&I.hasRegexChars(h),I.escapeRegex=h=>h.replace(Q,"\\$1"),I.toPosixSlashes=h=>h.replace(C,"/"),I.removeBackslashes=h=>h.replace(E,Y=>Y==="\\"?"":Y),I.supportsLookbehinds=()=>{const h=process.version.slice(1).split(".").map(Number);return h.length===3&&h[0]>=9||h[0]===8&&h[1]>=10},I.isWindows=h=>h&&typeof h.windows=="boolean"?h.windows:g===!0||A.sep==="\\",I.escapeLast=(h,Y,i)=>{const S=h.lastIndexOf(Y,i);return S===-1?h:h[S-1]==="\\"?I.escapeLast(h,Y,S-1):`${h.slice(0,S)}\\${h.slice(S)}`},I.removePrefix=(h,Y={})=>{let i=h;return i.startsWith("./")&&(i=i.slice(2),Y.prefix="./"),i},I.wrapOutput=(h,Y={},i={})=>{const S=i.contains?"":"^",w=i.contains?"":"$";let F=`${S}(?:${h})${w}`;return Y.negated===!0&&(F=`(?:^(?!${F}).*$)`),F}})(II);const PC=II,{CHAR_ASTERISK:Gg,CHAR_AT:nQ,CHAR_BACKWARD_SLASH:gI,CHAR_COMMA:tQ,CHAR_DOT:Yg,CHAR_EXCLAMATION_MARK:og,CHAR_FORWARD_SLASH:nC,CHAR_LEFT_CURLY_BRACE:wg,CHAR_LEFT_PARENTHESES:ig,CHAR_LEFT_SQUARE_BRACKET:fQ,CHAR_PLUS:vQ,CHAR_QUESTION_MARK:tC,CHAR_RIGHT_CURLY_BRACE:eQ,CHAR_RIGHT_PARENTHESES:fC,CHAR_RIGHT_SQUARE_BRACKET:uQ}=HI,vC=I=>I===nC||I===gI,eC=I=>{I.isPrefix!==!0&&(I.depth=I.isGlobstar?1/0:1)},rQ=(I,A)=>{const g=A||{},C=I.length-1,E=g.parts===!0||g.scanToEnd===!0,B=[],Q=[],h=[];let Y=I,i=-1,S=0,w=0,F=!1,J=!1,M=!1,O=!1,H=!1,Z=!1,q=!1,d=!1,x=!1,a=!1,p=0,W,l,z={value:"",depth:0,isGlob:!1};co[Error - 10:22:14] Server process exited with code 1.
[Error - 10:22:14] Server initialization failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Info  - 10:22:14] Connection to server got closed. Server will restart.
true
[Error - 10:22:14] Even Better TOML LSP client: couldn't create connection to server.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
 INFO registered request handler method="initialize"
 INFO registered request handler method="textDocument/foldingRange"
 INFO registered request handler method="textDocument/documentSymbol"
 INFO registered request handler method="textDocument/formatting"
 INFO registered request handler method="textDocument/completion"
 INFO registered request handler method="textDocument/hover"
 INFO registered request handler method="textDocument/documentLink"
 INFO registered request handler method="textDocument/semanticTokens/full"
 INFO registered request handler method="textDocument/prepareRename"
 INFO registered request handler method="textDocument/rename"
 INFO registered notification handler method="initialized"
 INFO registered notification handler method="textDocument/didOpen"
 INFO registered notification handler method="textDocument/didChange"
 INFO registered notification handler method="textDocument/didSave"
 INFO registered notification handler method="textDocument/didClose"
 INFO registered notification handler method="workspace/didChangeConfiguration"
 INFO registered notification handler method="workspace/didChangeWorkspaceFolders"
 INFO registered request handler method="taplo/convertToJson"
 INFO registered request handler method="taplo/convertToToml"
 INFO registered request handler method="taplo/listSchemas"
 INFO registered request handler method="taplo/associatedSchema"
 INFO registered notification handler method="taplo/associateSchema"
panicked at /Users/JounQin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ahash-0.8.3/src/random_state.rs:81:51:
getrandom::getrandom() failed.: Error { internal_code: 2147483660, description: "Node.js crypto CommonJS module is unavailable" }

Stack:

Error
    at EA.G.wbg.__wbg_new_abda76e883ba8a5f (/Users/daparicio/.vscode-oss/extensions/tamasfe.even-better-toml-0.21.0-universal/dist/server.js:2:4187)
    at console_error_panic_hook::Error::new::hd83448d5e1a1b88a (wasm://wasm/065ed00a:wasm-function[40242]:0x1249bc2)
    at console_error_panic_hook::hook_impl::h24434d5d3a31a46a (wasm://wasm/065ed00a:wasm-function[10411]:0xcf17fe)
    at console_error_panic_hook::hook::hb562c91cafc2c895 (wasm://wasm/065ed00a:wasm-function[59765]:0x12e59c7)
    at core::ops::function::Fn::call::h46d6beedf89bee9d (wasm://wasm/065ed00a:wasm-function[42879]:0x1275769)
    at std::panicking::rust_panic_with_hook::h8e8556df5e46d2ff (wasm://wasm/065ed00a:wasm-function[20551]:0xfc8712)
    at std::panicking::begin_panic_handler::{{closure}}::h142b9f459ded72d9 (wasm://wasm/065ed00a:wasm-function[25954]:0x10c54f1)
    at std::sys_common::backtrace::__rust_end_short_backtrace::h1c0d3278570375be (wasm://wasm/065ed00a:wasm-function[61550]:0x12e9f20)
    at rust_begin_unwind (wasm://wasm/065ed00a:wasm-function[42801]:0x12744d7)
    at core::panicking::panic_fmt::hbea4287e435ed8a3 (wasm://wasm/065ed00a:wasm-function[43645]:0x1280e86)


/Users/daparicio/.vscode-oss/extensions/tamasfe.even-better-toml-0.21.0-universal/dist/server.js:40
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"	",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"};const FQ=Cg,{MAX_LENGTH:KC,CHAR_BACKSLASH:hg,CHAR_BACKTICK:MQ,CHAR_COMMA:cQ,CHAR_DOT:yQ,CHAR_LEFT_PARENTHESES:NQ,CHAR_RIGHT_PARENTHESES:UQ,CHAR_LEFT_CURLY_BRACE:OQ,CHAR_RIGHT_CURLY_BRACE:jQ,CHAR_LEFT_SQUARE_BRACKET:XC,CHAR_RIGHT_SQUARE_BRACKET:VC,CHAR_DOUBLE_QUOTE:RQ,CHAR_SINGLE_QUOTE:kQ,CHAR_NO_BREAK_SPACE:ZQ,CHAR_ZERO_WIDTH_NOBREAK_SPACE:JQ}=iQ,HQ=(I,A={})=>{if(typeof I!="string")throw new TypeError("Expected a string");const g=A||{},C=typeof g.maxLength=="number"?Math.min(KC,g.maxLength):KC;if(I.length>C)throw new SyntaxError(`Input length (${I.length}), exceeds max characters (${C})`);const E={type:"root",input:I,nodes:[]},B=[E];let Q=E,h=E,Y=0;const i=I.length;let S=0,w=0,F;const J=()=>I[S++],M=O=>{if(O.type==="text"&&h.type==="dot"&&(h.type="text"),h&&h.type==="text"&&O.type==="text"){h.value+=O.value;return}return Q.nodes.push(O),O.parent=Q,O.prev=h,h=O,O};for(M({type:"bos"});S<i;)if(Q=B[B.length-1],F=J(),!(F===JQ||F===ZQ)){if(F===hg){M({type:"text",value:(A.keepEscaping?F:"")+J()});continue}if(F===VC){M({type:"text",value:"\\"+F});continue}if(F===XC){Y++;let O;for(;S<i&&(O=J());){if(F+=O,O===XC){Y++;continue}if(O===hg){F+=J();continue}if(O===VC&&(Y--,Y===0))break}M({type:"text",value:F});continue}if(F===NQ){Q=M({type:"paren",nodes:[]}),B.push(Q),M({type:"text",value:F});continue}if(F===UQ){if(Q.type!=="paren"){M({type:"text",value:F});continue}Q=B.pop(),M({type:"text",value:F}),Q=B[B.length-1];continue}if(F===RQ||F===kQ||F===MQ){const O=F;let H;for(A.keepQuotes!==!0&&(F="");S<i&&(H=J());){if(H===hg){F+=H+J();continue}if(H===O){A.keepQuotes===!0&&(F+=H);break}F+=H}M({type:"text",value:F});continue}if(F===OQ){w++;const H={type:"brace",open:!0,close:!1,dollar:h.value&&h.value.slice(-1)==="$"||Q.dollar===!0,depth:w,commas:0,ranges:0,nodes:[]};Q=M(H),B.push(Q),M({type:"open",value:F});continue}if(F===jQ){if(Q.type!=="brace"){M({type:"text",value:F});continue}const O="close";Q=B.pop(),Q.close=!0,M({type:O,value:F}),w--,Q=B[B.length-1];continue}if(F===cQ&&w>0){if(Q.ranges>0){Q.ranges=0;const O=Q.nodes.shift();Q.nodes=[O,{type:"text",value:FQ(Q)}]}M({type:"comma",value:F}),Q.commas++;continue}if(F===yQ&&w>0&&Q.commas===0){const O=Q.nodes;if(w===0||O.length===0){M({type:"text",value:F});continue}if(h.type==="dot"){if(Q.range=[],h.value+=F,h.type="range",Q.nodes.length!==3&&Q.nodes.length!==5){Q.invalid=!0,Q.ranges=0,h.type="text";continue}Q.ranges++,Q.args=[];continue}if(h.type==="range"){O.pop();const H=O[O.length-1];H.value+=h.value+F,h=H,Q.ranges--;continue}M({type:"dot",value:F});continue}M({type:"text",value:F})}do if(Q=B.pop(),Q.type!=="root"){Q.nodes.forEach(Z=>{Z.nodes||(Z.type==="open"&&(Z.isOpen=!0),Z.type==="close"&&(Z.isClose=!0),Z.nodes||(Z.type="text"),Z.invalid=!0)});const O=B[B.length-1],H=O.nodes.indexOf(Q);O.nodes.splice(H,1,...Q.nodes)}while(B.length>0);return M({type:"eos"}),E};var mQ=HQ;const LC=Cg,aQ=GQ,lQ=wQ,pQ=mQ,YA=(I,A={})=>{let g=[];if(Array.isArray(I))for(const C of I){const E=YA.create(C,A);Array.isArray(E)?g.push(...E):g.push(E)}else g=[].concat(YA.create(I,A));return A&&A.expand===!0&&A.nodupes===!0&&(g=[...new Set(g)]),g};YA.parse=(I,A={})=>pQ(I,A),YA.stringify=(I,A={})=>LC(typeof I=="string"?YA.parse(I,A):I,A),YA.compile=(I,A={})=>(typeof I=="string"&&(I=YA.parse(I,A)),aQ(I,A)),YA.expand=(I,A={})=>{typeof I=="string"&&(I=YA.parse(I,A));let g=lQ(I,A);return A.noempty===!0&&(g=g.filter(Boolean)),A.nodupes===!0&&(g=[...new Set(g)]),g},YA.create=(I,A={})=>I===""||I.length<3?[I]:A.expand!==!0?YA.compile(I,A):YA.expand(I,A);var WQ=YA,II={};const bQ=iA,ZA="\\\\/",dC=`[^${ZA}]`,TA="\\.",TQ="\\+",sQ="\\?",JI="\\/",KQ="(?=.)",zC="[^/]",Dg=`(?:${JI}|$)`,xC=`(?:^|${JI})`,Sg=`${TA}{1,2}${Dg}`,XQ=`(?!${TA})`,VQ=`(?!${xC}${Sg})`,LQ=`(?!${TA}{0,1}${Dg})`,dQ=`(?!${Sg})`,zQ=`[^.${JI}]`,xQ=`${zC}*?`,qC={DOT_LITERAL:TA,PLUS_LITERAL:TQ,QMARK_LITERAL:sQ,SLASH_LITERAL:JI,ONE_CHAR:KQ,QMARK:zC,END_ANCHOR:Dg,DOTS_SLASH:Sg,NO_DOT:XQ,NO_DOTS:VQ,NO_DOT_SLASH:LQ,NO_DOTS_SLASH:dQ,QMARK_NO_DOT:zQ,STAR:xQ,START_ANCHOR:xC},qQ={...qC,SLASH_LITERAL:`[${ZA}]`,QMARK:dC,STAR:`${dC}*?`,DOTS_SLASH:`${TA}{1,2}(?:[${ZA}]|$)`,NO_DOT:`(?!${TA})`,NO_DOTS:`(?!(?:^|[${ZA}])${TA}{1,2}(?:[${ZA}]|$))`,NO_DOT_SLASH:`(?!${TA}{0,1}(?:[${ZA}]|$))`,NO_DOTS_SLASH:`(?!${TA}{1,2}(?:[${ZA}]|$))`,QMARK_NO_DOT:`[^.${ZA}]`,START_ANCHOR:`(?:^|[${ZA}])`,END_ANCHOR:`(?:[${ZA}]|$)`},PQ={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};var HI={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:PQ,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:bQ.sep,extglobChars(I){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${I.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(I){return I===!0?qQ:qC}};(function(I){const A=iA,g=process.platform==="win32",{REGEX_BACKSLASH:C,REGEX_REMOVE_BACKSLASH:E,REGEX_SPECIAL_CHARS:B,REGEX_SPECIAL_CHARS_GLOBAL:Q}=HI;I.isObject=h=>h!==null&&typeof h=="object"&&!Array.isArray(h),I.hasRegexChars=h=>B.test(h),I.isRegexChar=h=>h.length===1&&I.hasRegexChars(h),I.escapeRegex=h=>h.replace(Q,"\\$1"),I.toPosixSlashes=h=>h.replace(C,"/"),I.removeBackslashes=h=>h.replace(E,Y=>Y==="\\"?"":Y),I.supportsLookbehinds=()=>{const h=process.version.slice(1).split(".").map(Number);return h.length===3&&h[0]>=9||h[0]===8&&h[1]>=10},I.isWindows=h=>h&&typeof h.windows=="boolean"?h.windows:g===!0||A.sep==="\\",I.escapeLast=(h,Y,i)=>{const S=h.lastIndexOf(Y,i);return S===-1?h:h[S-1]==="\\"?I.escapeLast(h,Y,S-1):`${h.slice(0,S)}\\${h.slice(S)}`},I.removePrefix=(h,Y={})=>{let i=h;return i.startsWith("./")&&(i=i.slice(2),Y.prefix="./"),i},I.wrapOutput=(h,Y={},i={})=>{const S=i.contains?"":"^",w=i.contains?"":"$";let F=`${S}(?:${h})${w}`;return Y.negated===!0&&(F=`(?:^(?!${F}).*$)`),F}})(II);const PC=II,{CHAR_ASTERISK:Gg,CHAR_AT:nQ,CHAR_BACKWARD_SLASH:gI,CHAR_COMMA:tQ,CHAR_DOT:Yg,CHAR_EXCLAMATION_MARK:og,CHAR_FORWARD_SLASH:nC,CHAR_LEFT_CURLY_BRACE:wg,CHAR_LEFT_PARENTHESES:ig,CHAR_LEFT_SQUARE_BRACKET:fQ,CHAR_PLUS:vQ,CHAR_QUESTION_MARK:tC,CHAR_RIGHT_CURLY_BRACE:eQ,CHAR_RIGHT_PARENTHESES:fC,CHAR_RIGHT_SQUARE_BRACKET:uQ}=HI,vC=I=>I===nC||I===gI,eC=I=>{I.isPrefix!==!0&&(I.depth=I.isGlobstar?1/0:1)},rQ=(I,A)=>{const g=A||{},C=I.length-1,E=g.parts===!0||g.scanToEnd===!0,B=[],Q=[],h=[];let Y=I,i=-1,S=0,w=0,F=!1,J=!1,M=!1,O=!1,H=!1,Z=!1,q=!1,d=!1,x=!1,a=!1,p=0,W,l,z={value:"",depth:0,isGlob:!1};co[Error - 10:22:15] Server process exited with code 1.
[Error - 10:22:15] Server initialization failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Info  - 10:22:15] Connection to server got closed. Server will restart.
true
[Error - 10:22:15] Even Better TOML LSP client: couldn't create connection to server.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
 INFO registered request handler method="initialize"
 INFO registered request handler method="textDocument/foldingRange"
 INFO registered request handler method="textDocument/documentSymbol"
 INFO registered request handler method="textDocument/formatting"
 INFO registered request handler method="textDocument/completion"
 INFO registered request handler method="textDocument/hover"
 INFO registered request handler method="textDocument/documentLink"
 INFO registered request handler method="textDocument/semanticTokens/full"
 INFO registered request handler method="textDocument/prepareRename"
 INFO registered request handler method="textDocument/rename"
 INFO registered notification handler method="initialized"
 INFO registered notification handler method="textDocument/didOpen"
 INFO registered notification handler method="textDocument/didChange"
 INFO registered notification handler method="textDocument/didSave"
 INFO registered notification handler method="textDocument/didClose"
 INFO registered notification handler method="workspace/didChangeConfiguration"
 INFO registered notification handler method="workspace/didChangeWorkspaceFolders"
 INFO registered request handler method="taplo/convertToJson"
 INFO registered request handler method="taplo/convertToToml"
 INFO registered request handler method="taplo/listSchemas"
 INFO registered request handler method="taplo/associatedSchema"
 INFO registered notification handler method="taplo/associateSchema"
panicked at /Users/JounQin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ahash-0.8.3/src/random_state.rs:81:51:
getrandom::getrandom() failed.: Error { internal_code: 2147483660, description: "Node.js crypto CommonJS module is unavailable" }

Stack:

Error
    at EA.G.wbg.__wbg_new_abda76e883ba8a5f (/Users/daparicio/.vscode-oss/extensions/tamasfe.even-better-toml-0.21.0-universal/dist/server.js:2:4187)
    at console_error_panic_hook::Error::new::hd83448d5e1a1b88a (wasm://wasm/065ed00a:wasm-function[40242]:0x1249bc2)
    at console_error_panic_hook::hook_impl::h24434d5d3a31a46a (wasm://wasm/065ed00a:wasm-function[10411]:0xcf17fe)
    at console_error_panic_hook::hook::hb562c91cafc2c895 (wasm://wasm/065ed00a:wasm-function[59765]:0x12e59c7)
    at core::ops::function::Fn::call::h46d6beedf89bee9d (wasm://wasm/065ed00a:wasm-function[42879]:0x1275769)
    at std::panicking::rust_panic_with_hook::h8e8556df5e46d2ff (wasm://wasm/065ed00a:wasm-function[20551]:0xfc8712)
    at std::panicking::begin_panic_handler::{{closure}}::h142b9f459ded72d9 (wasm://wasm/065ed00a:wasm-function[25954]:0x10c54f1)
    at std::sys_common::backtrace::__rust_end_short_backtrace::h1c0d3278570375be (wasm://wasm/065ed00a:wasm-function[61550]:0x12e9f20)
    at rust_begin_unwind (wasm://wasm/065ed00a:wasm-function[42801]:0x12744d7)
    at core::panicking::panic_fmt::hbea4287e435ed8a3 (wasm://wasm/065ed00a:wasm-function[43645]:0x1280e86)


/Users/daparicio/.vscode-oss/extensions/tamasfe.even-better-toml-0.21.0-universal/dist/server.js:40
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"	",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"};const FQ=Cg,{MAX_LENGTH:KC,CHAR_BACKSLASH:hg,CHAR_BACKTICK:MQ,CHAR_COMMA:cQ,CHAR_DOT:yQ,CHAR_LEFT_PARENTHESES:NQ,CHAR_RIGHT_PARENTHESES:UQ,CHAR_LEFT_CURLY_BRACE:OQ,CHAR_RIGHT_CURLY_BRACE:jQ,CHAR_LEFT_SQUARE_BRACKET:XC,CHAR_RIGHT_SQUARE_BRACKET:VC,CHAR_DOUBLE_QUOTE:RQ,CHAR_SINGLE_QUOTE:kQ,CHAR_NO_BREAK_SPACE:ZQ,CHAR_ZERO_WIDTH_NOBREAK_SPACE:JQ}=iQ,HQ=(I,A={})=>{if(typeof I!="string")throw new TypeError("Expected a string");const g=A||{},C=typeof g.maxLength=="number"?Math.min(KC,g.maxLength):KC;if(I.length>C)throw new SyntaxError(`Input length (${I.length}), exceeds max characters (${C})`);const E={type:"root",input:I,nodes:[]},B=[E];let Q=E,h=E,Y=0;const i=I.length;let S=0,w=0,F;const J=()=>I[S++],M=O=>{if(O.type==="text"&&h.type==="dot"&&(h.type="text"),h&&h.type==="text"&&O.type==="text"){h.value+=O.value;return}return Q.nodes.push(O),O.parent=Q,O.prev=h,h=O,O};for(M({type:"bos"});S<i;)if(Q=B[B.length-1],F=J(),!(F===JQ||F===ZQ)){if(F===hg){M({type:"text",value:(A.keepEscaping?F:"")+J()});continue}if(F===VC){M({type:"text",value:"\\"+F});continue}if(F===XC){Y++;let O;for(;S<i&&(O=J());){if(F+=O,O===XC){Y++;continue}if(O===hg){F+=J();continue}if(O===VC&&(Y--,Y===0))break}M({type:"text",value:F});continue}if(F===NQ){Q=M({type:"paren",nodes:[]}),B.push(Q),M({type:"text",value:F});continue}if(F===UQ){if(Q.type!=="paren"){M({type:"text",value:F});continue}Q=B.pop(),M({type:"text",value:F}),Q=B[B.length-1];continue}if(F===RQ||F===kQ||F===MQ){const O=F;let H;for(A.keepQuotes!==!0&&(F="");S<i&&(H=J());){if(H===hg){F+=H+J();continue}if(H===O){A.keepQuotes===!0&&(F+=H);break}F+=H}M({type:"text",value:F});continue}if(F===OQ){w++;const H={type:"brace",open:!0,close:!1,dollar:h.value&&h.value.slice(-1)==="$"||Q.dollar===!0,depth:w,commas:0,ranges:0,nodes:[]};Q=M(H),B.push(Q),M({type:"open",value:F});continue}if(F===jQ){if(Q.type!=="brace"){M({type:"text",value:F});continue}const O="close";Q=B.pop(),Q.close=!0,M({type:O,value:F}),w--,Q=B[B.length-1];continue}if(F===cQ&&w>0){if(Q.ranges>0){Q.ranges=0;const O=Q.nodes.shift();Q.nodes=[O,{type:"text",value:FQ(Q)}]}M({type:"comma",value:F}),Q.commas++;continue}if(F===yQ&&w>0&&Q.commas===0){const O=Q.nodes;if(w===0||O.length===0){M({type:"text",value:F});continue}if(h.type==="dot"){if(Q.range=[],h.value+=F,h.type="range",Q.nodes.length!==3&&Q.nodes.length!==5){Q.invalid=!0,Q.ranges=0,h.type="text";continue}Q.ranges++,Q.args=[];continue}if(h.type==="range"){O.pop();const H=O[O.length-1];H.value+=h.value+F,h=H,Q.ranges--;continue}M({type:"dot",value:F});continue}M({type:"text",value:F})}do if(Q=B.pop(),Q.type!=="root"){Q.nodes.forEach(Z=>{Z.nodes||(Z.type==="open"&&(Z.isOpen=!0),Z.type==="close"&&(Z.isClose=!0),Z.nodes||(Z.type="text"),Z.invalid=!0)});const O=B[B.length-1],H=O.nodes.indexOf(Q);O.nodes.splice(H,1,...Q.nodes)}while(B.length>0);return M({type:"eos"}),E};var mQ=HQ;const LC=Cg,aQ=GQ,lQ=wQ,pQ=mQ,YA=(I,A={})=>{let g=[];if(Array.isArray(I))for(const C of I){const E=YA.create(C,A);Array.isArray(E)?g.push(...E):g.push(E)}else g=[].concat(YA.create(I,A));return A&&A.expand===!0&&A.nodupes===!0&&(g=[...new Set(g)]),g};YA.parse=(I,A={})=>pQ(I,A),YA.stringify=(I,A={})=>LC(typeof I=="string"?YA.parse(I,A):I,A),YA.compile=(I,A={})=>(typeof I=="string"&&(I=YA.parse(I,A)),aQ(I,A)),YA.expand=(I,A={})=>{typeof I=="string"&&(I=YA.parse(I,A));let g=lQ(I,A);return A.noempty===!0&&(g=g.filter(Boolean)),A.nodupes===!0&&(g=[...new Set(g)]),g},YA.create=(I,A={})=>I===""||I.length<3?[I]:A.expand!==!0?YA.compile(I,A):YA.expand(I,A);var WQ=YA,II={};const bQ=iA,ZA="\\\\/",dC=`[^${ZA}]`,TA="\\.",TQ="\\+",sQ="\\?",JI="\\/",KQ="(?=.)",zC="[^/]",Dg=`(?:${JI}|$)`,xC=`(?:^|${JI})`,Sg=`${TA}{1,2}${Dg}`,XQ=`(?!${TA})`,VQ=`(?!${xC}${Sg})`,LQ=`(?!${TA}{0,1}${Dg})`,dQ=`(?!${Sg})`,zQ=`[^.${JI}]`,xQ=`${zC}*?`,qC={DOT_LITERAL:TA,PLUS_LITERAL:TQ,QMARK_LITERAL:sQ,SLASH_LITERAL:JI,ONE_CHAR:KQ,QMARK:zC,END_ANCHOR:Dg,DOTS_SLASH:Sg,NO_DOT:XQ,NO_DOTS:VQ,NO_DOT_SLASH:LQ,NO_DOTS_SLASH:dQ,QMARK_NO_DOT:zQ,STAR:xQ,START_ANCHOR:xC},qQ={...qC,SLASH_LITERAL:`[${ZA}]`,QMARK:dC,STAR:`${dC}*?`,DOTS_SLASH:`${TA}{1,2}(?:[${ZA}]|$)`,NO_DOT:`(?!${TA})`,NO_DOTS:`(?!(?:^|[${ZA}])${TA}{1,2}(?:[${ZA}]|$))`,NO_DOT_SLASH:`(?!${TA}{0,1}(?:[${ZA}]|$))`,NO_DOTS_SLASH:`(?!${TA}{1,2}(?:[${ZA}]|$))`,QMARK_NO_DOT:`[^.${ZA}]`,START_ANCHOR:`(?:^|[${ZA}])`,END_ANCHOR:`(?:[${ZA}]|$)`},PQ={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};var HI={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:PQ,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:bQ.sep,extglobChars(I){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${I.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(I){return I===!0?qQ:qC}};(function(I){const A=iA,g=process.platform==="win32",{REGEX_BACKSLASH:C,REGEX_REMOVE_BACKSLASH:E,REGEX_SPECIAL_CHARS:B,REGEX_SPECIAL_CHARS_GLOBAL:Q}=HI;I.isObject=h=>h!==null&&typeof h=="object"&&!Array.isArray(h),I.hasRegexChars=h=>B.test(h),I.isRegexChar=h=>h.length===1&&I.hasRegexChars(h),I.escapeRegex=h=>h.replace(Q,"\\$1"),I.toPosixSlashes=h=>h.replace(C,"/"),I.removeBackslashes=h=>h.replace(E,Y=>Y==="\\"?"":Y),I.supportsLookbehinds=()=>{const h=process.version.slice(1).split(".").map(Number);return h.length===3&&h[0]>=9||h[0]===8&&h[1]>=10},I.isWindows=h=>h&&typeof h.windows=="boolean"?h.windows:g===!0||A.sep==="\\",I.escapeLast=(h,Y,i)=>{const S=h.lastIndexOf(Y,i);return S===-1?h:h[S-1]==="\\"?I.escapeLast(h,Y,S-1):`${h.slice(0,S)}\\${h.slice(S)}`},I.removePrefix=(h,Y={})=>{let i=h;return i.startsWith("./")&&(i=i.slice(2),Y.prefix="./"),i},I.wrapOutput=(h,Y={},i={})=>{const S=i.contains?"":"^",w=i.contains?"":"$";let F=`${S}(?:${h})${w}`;return Y.negated===!0&&(F=`(?:^(?!${F}).*$)`),F}})(II);const PC=II,{CHAR_ASTERISK:Gg,CHAR_AT:nQ,CHAR_BACKWARD_SLASH:gI,CHAR_COMMA:tQ,CHAR_DOT:Yg,CHAR_EXCLAMATION_MARK:og,CHAR_FORWARD_SLASH:nC,CHAR_LEFT_CURLY_BRACE:wg,CHAR_LEFT_PARENTHESES:ig,CHAR_LEFT_SQUARE_BRACKET:fQ,CHAR_PLUS:vQ,CHAR_QUESTION_MARK:tC,CHAR_RIGHT_CURLY_BRACE:eQ,CHAR_RIGHT_PARENTHESES:fC,CHAR_RIGHT_SQUARE_BRACKET:uQ}=HI,vC=I=>I===nC||I===gI,eC=I=>{I.isPrefix!==!0&&(I.depth=I.isGlobstar?1/0:1)},rQ=(I,A)=>{const g=A||{},C=I.length-1,E=g.parts===!0||g.scanToEnd===!0,B=[],Q=[],h=[];let Y=I,i=-1,S=0,w=0,F=!1,J=!1,M=!1,O=!1,H=!1,Z=!1,q=!1,d=!1,x=!1,a=!1,p=0,W,l,z={value:"",depth:0,isGlob:!1};co[Error - 10:22:15] Server process exited with code 1.
[Error - 10:22:15] Server initialization failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Info  - 10:22:15] Connection to server got closed. Server will restart.
true
[Error - 10:22:15] Even Better TOML LSP client: couldn't create connection to server.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 10:22:15] Restarting server failed
  Message: Pending response rejected since connection got disposed
  Code: -32097 
 INFO registered request handler method="initialize"
 INFO registered request handler method="textDocument/foldingRange"
 INFO registered request handler method="textDocument/documentSymbol"
 INFO registered request handler method="textDocument/formatting"
 INFO registered request handler method="textDocument/completion"
 INFO registered request handler method="textDocument/hover"
 INFO registered request handler method="textDocument/documentLink"
 INFO registered request handler method="textDocument/semanticTokens/full"
 INFO registered request handler method="textDocument/prepareRename"
 INFO registered request handler method="textDocument/rename"
 INFO registered notification handler method="initialized"
 INFO registered notification handler method="textDocument/didOpen"
 INFO registered notification handler method="textDocument/didChange"
 INFO registered notification handler method="textDocument/didSave"
 INFO registered notification handler method="textDocument/didClose"
 INFO registered notification handler method="workspace/didChangeConfiguration"
 INFO registered notification handler method="workspace/didChangeWorkspaceFolders"
 INFO registered request handler method="taplo/convertToJson"
 INFO registered request handler method="taplo/convertToToml"
 INFO registered request handler method="taplo/listSchemas"
 INFO registered request handler method="taplo/associatedSchema"
 INFO registered notification handler method="taplo/associateSchema"
panicked at /Users/JounQin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ahash-0.8.3/src/random_state.rs:81:51:
getrandom::getrandom() failed.: Error { internal_code: 2147483660, description: "Node.js crypto CommonJS module is unavailable" }

Stack:

Error
    at EA.G.wbg.__wbg_new_abda76e883ba8a5f (/Users/daparicio/.vscode-oss/extensions/tamasfe.even-better-toml-0.21.0-universal/dist/server.js:2:4187)
    at console_error_panic_hook::Error::new::hd83448d5e1a1b88a (wasm://wasm/065ed00a:wasm-function[40242]:0x1249bc2)
    at console_error_panic_hook::hook_impl::h24434d5d3a31a46a (wasm://wasm/065ed00a:wasm-function[10411]:0xcf17fe)
    at console_error_panic_hook::hook::hb562c91cafc2c895 (wasm://wasm/065ed00a:wasm-function[59765]:0x12e59c7)
    at core::ops::function::Fn::call::h46d6beedf89bee9d (wasm://wasm/065ed00a:wasm-function[42879]:0x1275769)
    at std::panicking::rust_panic_with_hook::h8e8556df5e46d2ff (wasm://wasm/065ed00a:wasm-function[20551]:0xfc8712)
    at std::panicking::begin_panic_handler::{{closure}}::h142b9f459ded72d9 (wasm://wasm/065ed00a:wasm-function[25954]:0x10c54f1)
    at std::sys_common::backtrace::__rust_end_short_backtrace::h1c0d3278570375be (wasm://wasm/065ed00a:wasm-function[61550]:0x12e9f20)
    at rust_begin_unwind (wasm://wasm/065ed00a:wasm-function[42801]:0x12744d7)
    at core::panicking::panic_fmt::hbea4287e435ed8a3 (wasm://wasm/065ed00a:wasm-function[43645]:0x1280e86)


/Users/daparicio/.vscode-oss/extensions/tamasfe.even-better-toml-0.21.0-universal/dist/server.js:40
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"	",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"};const FQ=Cg,{MAX_LENGTH:KC,CHAR_BACKSLASH:hg,CHAR_BACKTICK:MQ,CHAR_COMMA:cQ,CHAR_DOT:yQ,CHAR_LEFT_PARENTHESES:NQ,CHAR_RIGHT_PARENTHESES:UQ,CHAR_LEFT_CURLY_BRACE:OQ,CHAR_RIGHT_CURLY_BRACE:jQ,CHAR_LEFT_SQUARE_BRACKET:XC,CHAR_RIGHT_SQUARE_BRACKET:VC,CHAR_DOUBLE_QUOTE:RQ,CHAR_SINGLE_QUOTE:kQ,CHAR_NO_BREAK_SPACE:ZQ,CHAR_ZERO_WIDTH_NOBREAK_SPACE:JQ}=iQ,HQ=(I,A={})=>{if(typeof I!="string")throw new TypeError("Expected a string");const g=A||{},C=typeof g.maxLength=="number"?Math.min(KC,g.maxLength):KC;if(I.length>C)throw new SyntaxError(`Input length (${I.length}), exceeds max characters (${C})`);const E={type:"root",input:I,nodes:[]},B=[E];let Q=E,h=E,Y=0;const i=I.length;let S=0,w=0,F;const J=()=>I[S++],M=O=>{if(O.type==="text"&&h.type==="dot"&&(h.type="text"),h&&h.type==="text"&&O.type==="text"){h.value+=O.value;return}return Q.nodes.push(O),O.parent=Q,O.prev=h,h=O,O};for(M({type:"bos"});S<i;)if(Q=B[B.length-1],F=J(),!(F===JQ||F===ZQ)){if(F===hg){M({type:"text",value:(A.keepEscaping?F:"")+J()});continue}if(F===VC){M({type:"text",value:"\\"+F});continue}if(F===XC){Y++;let O;for(;S<i&&(O=J());){if(F+=O,O===XC){Y++;continue}if(O===hg){F+=J();continue}if(O===VC&&(Y--,Y===0))break}M({type:"text",value:F});continue}if(F===NQ){Q=M({type:"paren",nodes:[]}),B.push(Q),M({type:"text",value:F});continue}if(F===UQ){if(Q.type!=="paren"){M({type:"text",value:F});continue}Q=B.pop(),M({type:"text",value:F}),Q=B[B.length-1];continue}if(F===RQ||F===kQ||F===MQ){const O=F;let H;for(A.keepQuotes!==!0&&(F="");S<i&&(H=J());){if(H===hg){F+=H+J();continue}if(H===O){A.keepQuotes===!0&&(F+=H);break}F+=H}M({type:"text",value:F});continue}if(F===OQ){w++;const H={type:"brace",open:!0,close:!1,dollar:h.value&&h.value.slice(-1)==="$"||Q.dollar===!0,depth:w,commas:0,ranges:0,nodes:[]};Q=M(H),B.push(Q),M({type:"open",value:F});continue}if(F===jQ){if(Q.type!=="brace"){M({type:"text",value:F});continue}const O="close";Q=B.pop(),Q.close=!0,M({type:O,value:F}),w--,Q=B[B.length-1];continue}if(F===cQ&&w>0){if(Q.ranges>0){Q.ranges=0;const O=Q.nodes.shift();Q.nodes=[O,{type:"text",value:FQ(Q)}]}M({type:"comma",value:F}),Q.commas++;continue}if(F===yQ&&w>0&&Q.commas===0){const O=Q.nodes;if(w===0||O.length===0){M({type:"text",value:F});continue}if(h.type==="dot"){if(Q.range=[],h.value+=F,h.type="range",Q.nodes.length!==3&&Q.nodes.length!==5){Q.invalid=!0,Q.ranges=0,h.type="text";continue}Q.ranges++,Q.args=[];continue}if(h.type==="range"){O.pop();const H=O[O.length-1];H.value+=h.value+F,h=H,Q.ranges--;continue}M({type:"dot",value:F});continue}M({type:"text",value:F})}do if(Q=B.pop(),Q.type!=="root"){Q.nodes.forEach(Z=>{Z.nodes||(Z.type==="open"&&(Z.isOpen=!0),Z.type==="close"&&(Z.isClose=!0),Z.nodes||(Z.type="text"),Z.invalid=!0)});const O=B[B.length-1],H=O.nodes.indexOf(Q);O.nodes.splice(H,1,...Q.nodes)}while(B.length>0);return M({type:"eos"}),E};var mQ=HQ;const LC=Cg,aQ=GQ,lQ=wQ,pQ=mQ,YA=(I,A={})=>{let g=[];if(Array.isArray(I))for(const C of I){const E=YA.create(C,A);Array.isArray(E)?g.push(...E):g.push(E)}else g=[].concat(YA.create(I,A));return A&&A.expand===!0&&A.nodupes===!0&&(g=[...new Set(g)]),g};YA.parse=(I,A={})=>pQ(I,A),YA.stringify=(I,A={})=>LC(typeof I=="string"?YA.parse(I,A):I,A),YA.compile=(I,A={})=>(typeof I=="string"&&(I=YA.parse(I,A)),aQ(I,A)),YA.expand=(I,A={})=>{typeof I=="string"&&(I=YA.parse(I,A));let g=lQ(I,A);return A.noempty===!0&&(g=g.filter(Boolean)),A.nodupes===!0&&(g=[...new Set(g)]),g},YA.create=(I,A={})=>I===""||I.length<3?[I]:A.expand!==!0?YA.compile(I,A):YA.expand(I,A);var WQ=YA,II={};const bQ=iA,ZA="\\\\/",dC=`[^${ZA}]`,TA="\\.",TQ="\\+",sQ="\\?",JI="\\/",KQ="(?=.)",zC="[^/]",Dg=`(?:${JI}|$)`,xC=`(?:^|${JI})`,Sg=`${TA}{1,2}${Dg}`,XQ=`(?!${TA})`,VQ=`(?!${xC}${Sg})`,LQ=`(?!${TA}{0,1}${Dg})`,dQ=`(?!${Sg})`,zQ=`[^.${JI}]`,xQ=`${zC}*?`,qC={DOT_LITERAL:TA,PLUS_LITERAL:TQ,QMARK_LITERAL:sQ,SLASH_LITERAL:JI,ONE_CHAR:KQ,QMARK:zC,END_ANCHOR:Dg,DOTS_SLASH:Sg,NO_DOT:XQ,NO_DOTS:VQ,NO_DOT_SLASH:LQ,NO_DOTS_SLASH:dQ,QMARK_NO_DOT:zQ,STAR:xQ,START_ANCHOR:xC},qQ={...qC,SLASH_LITERAL:`[${ZA}]`,QMARK:dC,STAR:`${dC}*?`,DOTS_SLASH:`${TA}{1,2}(?:[${ZA}]|$)`,NO_DOT:`(?!${TA})`,NO_DOTS:`(?!(?:^|[${ZA}])${TA}{1,2}(?:[${ZA}]|$))`,NO_DOT_SLASH:`(?!${TA}{0,1}(?:[${ZA}]|$))`,NO_DOTS_SLASH:`(?!${TA}{1,2}(?:[${ZA}]|$))`,QMARK_NO_DOT:`[^.${ZA}]`,START_ANCHOR:`(?:^|[${ZA}])`,END_ANCHOR:`(?:[${ZA}]|$)`},PQ={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};var HI={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:PQ,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:bQ.sep,extglobChars(I){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${I.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(I){return I===!0?qQ:qC}};(function(I){const A=iA,g=process.platform==="win32",{REGEX_BACKSLASH:C,REGEX_REMOVE_BACKSLASH:E,REGEX_SPECIAL_CHARS:B,REGEX_SPECIAL_CHARS_GLOBAL:Q}=HI;I.isObject=h=>h!==null&&typeof h=="object"&&!Array.isArray(h),I.hasRegexChars=h=>B.test(h),I.isRegexChar=h=>h.length===1&&I.hasRegexChars(h),I.escapeRegex=h=>h.replace(Q,"\\$1"),I.toPosixSlashes=h=>h.replace(C,"/"),I.removeBackslashes=h=>h.replace(E,Y=>Y==="\\"?"":Y),I.supportsLookbehinds=()=>{const h=process.version.slice(1).split(".").map(Number);return h.length===3&&h[0]>=9||h[0]===8&&h[1]>=10},I.isWindows=h=>h&&typeof h.windows=="boolean"?h.windows:g===!0||A.sep==="\\",I.escapeLast=(h,Y,i)=>{const S=h.lastIndexOf(Y,i);return S===-1?h:h[S-1]==="\\"?I.escapeLast(h,Y,S-1):`${h.slice(0,S)}\\${h.slice(S)}`},I.removePrefix=(h,Y={})=>{let i=h;return i.startsWith("./")&&(i=i.slice(2),Y.prefix="./"),i},I.wrapOutput=(h,Y={},i={})=>{const S=i.contains?"":"^",w=i.contains?"":"$";let F=`${S}(?:${h})${w}`;return Y.negated===!0&&(F=`(?:^(?!${F}).*$)`),F}})(II);const PC=II,{CHAR_ASTERISK:Gg,CHAR_AT:nQ,CHAR_BACKWARD_SLASH:gI,CHAR_COMMA:tQ,CHAR_DOT:Yg,CHAR_EXCLAMATION_MARK:og,CHAR_FORWARD_SLASH:nC,CHAR_LEFT_CURLY_BRACE:wg,CHAR_LEFT_PARENTHESES:ig,CHAR_LEFT_SQUARE_BRACKET:fQ,CHAR_PLUS:vQ,CHAR_QUESTION_MARK:tC,CHAR_RIGHT_CURLY_BRACE:eQ,CHAR_RIGHT_PARENTHESES:fC,CHAR_RIGHT_SQUARE_BRACKET:uQ}=HI,vC=I=>I===nC||I===gI,eC=I=>{I.isPrefix!==!0&&(I.depth=I.isGlobstar?1/0:1)},rQ=(I,A)=>{const g=A||{},C=I.length-1,E=g.parts===!0||g.scanToEnd===!0,B=[],Q=[],h=[];let Y=I,i=-1,S=0,w=0,F=!1,J=!1,M=!1,O=!1,H=!1,Z=!1,q=!1,d=!1,x=!1,a=!1,p=0,W,l,z={value:"",depth:0,isGlob:!1};co[Error - 10:22:16] Server process exited with code 1.
[Error - 10:22:16] Server initialization failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Info  - 10:22:16] Connection to server got closed. Server will restart.
true
[Error - 10:22:16] Even Better TOML LSP client: couldn't create connection to server.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 10:22:16] Restarting server failed
  Message: Pending response rejected since connection got disposed
  Code: -32097 
 INFO registered request handler method="initialize"
 INFO registered request handler method="textDocument/foldingRange"
 INFO registered request handler method="textDocument/documentSymbol"
 INFO registered request handler method="textDocument/formatting"
 INFO registered request handler method="textDocument/completion"
 INFO registered request handler method="textDocument/hover"
 INFO registered request handler method="textDocument/documentLink"
 INFO registered request handler method="textDocument/semanticTokens/full"
 INFO registered request handler method="textDocument/prepareRename"
 INFO registered request handler method="textDocument/rename"
 INFO registered notification handler method="initialized"
 INFO registered notification handler method="textDocument/didOpen"
 INFO registered notification handler method="textDocument/didChange"
 INFO registered notification handler method="textDocument/didSave"
 INFO registered notification handler method="textDocument/didClose"
 INFO registered notification handler method="workspace/didChangeConfiguration"
 INFO registered notification handler method="workspace/didChangeWorkspaceFolders"
 INFO registered request handler method="taplo/convertToJson"
 INFO registered request handler method="taplo/convertToToml"
 INFO registered request handler method="taplo/listSchemas"
 INFO registered request handler method="taplo/associatedSchema"
 INFO registered notification handler method="taplo/associateSchema"
panicked at /Users/JounQin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ahash-0.8.3/src/random_state.rs:81:51:
getrandom::getrandom() failed.: Error { internal_code: 2147483660, description: "Node.js crypto CommonJS module is unavailable" }

Stack:

Error
    at EA.G.wbg.__wbg_new_abda76e883ba8a5f (/Users/daparicio/.vscode-oss/extensions/tamasfe.even-better-toml-0.21.0-universal/dist/server.js:2:4187)
    at console_error_panic_hook::Error::new::hd83448d5e1a1b88a (wasm://wasm/065ed00a:wasm-function[40242]:0x1249bc2)
    at console_error_panic_hook::hook_impl::h24434d5d3a31a46a (wasm://wasm/065ed00a:wasm-function[10411]:0xcf17fe)
    at console_error_panic_hook::hook::hb562c91cafc2c895 (wasm://wasm/065ed00a:wasm-function[59765]:0x12e59c7)
    at core::ops::function::Fn::call::h46d6beedf89bee9d (wasm://wasm/065ed00a:wasm-function[42879]:0x1275769)
    at std::panicking::rust_panic_with_hook::h8e8556df5e46d2ff (wasm://wasm/065ed00a:wasm-function[20551]:0xfc8712)
    at std::panicking::begin_panic_handler::{{closure}}::h142b9f459ded72d9 (wasm://wasm/065ed00a:wasm-function[25954]:0x10c54f1)
    at std::sys_common::backtrace::__rust_end_short_backtrace::h1c0d3278570375be (wasm://wasm/065ed00a:wasm-function[61550]:0x12e9f20)
    at rust_begin_unwind (wasm://wasm/065ed00a:wasm-function[42801]:0x12744d7)
    at core::panicking::panic_fmt::hbea4287e435ed8a3 (wasm://wasm/065ed00a:wasm-function[43645]:0x1280e86)


/Users/daparicio/.vscode-oss/extensions/tamasfe.even-better-toml-0.21.0-universal/dist/server.js:40
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"	",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"};const FQ=Cg,{MAX_LENGTH:KC,CHAR_BACKSLASH:hg,CHAR_BACKTICK:MQ,CHAR_COMMA:cQ,CHAR_DOT:yQ,CHAR_LEFT_PARENTHESES:NQ,CHAR_RIGHT_PARENTHESES:UQ,CHAR_LEFT_CURLY_BRACE:OQ,CHAR_RIGHT_CURLY_BRACE:jQ,CHAR_LEFT_SQUARE_BRACKET:XC,CHAR_RIGHT_SQUARE_BRACKET:VC,CHAR_DOUBLE_QUOTE:RQ,CHAR_SINGLE_QUOTE:kQ,CHAR_NO_BREAK_SPACE:ZQ,CHAR_ZERO_WIDTH_NOBREAK_SPACE:JQ}=iQ,HQ=(I,A={})=>{if(typeof I!="string")throw new TypeError("Expected a string");const g=A||{},C=typeof g.maxLength=="number"?Math.min(KC,g.maxLength):KC;if(I.length>C)throw new SyntaxError(`Input length (${I.length}), exceeds max characters (${C})`);const E={type:"root",input:I,nodes:[]},B=[E];let Q=E,h=E,Y=0;const i=I.length;let S=0,w=0,F;const J=()=>I[S++],M=O=>{if(O.type==="text"&&h.type==="dot"&&(h.type="text"),h&&h.type==="text"&&O.type==="text"){h.value+=O.value;return}return Q.nodes.push(O),O.parent=Q,O.prev=h,h=O,O};for(M({type:"bos"});S<i;)if(Q=B[B.length-1],F=J(),!(F===JQ||F===ZQ)){if(F===hg){M({type:"text",value:(A.keepEscaping?F:"")+J()});continue}if(F===VC){M({type:"text",value:"\\"+F});continue}if(F===XC){Y++;let O;for(;S<i&&(O=J());){if(F+=O,O===XC){Y++;continue}if(O===hg){F+=J();continue}if(O===VC&&(Y--,Y===0))break}M({type:"text",value:F});continue}if(F===NQ){Q=M({type:"paren",nodes:[]}),B.push(Q),M({type:"text",value:F});continue}if(F===UQ){if(Q.type!=="paren"){M({type:"text",value:F});continue}Q=B.pop(),M({type:"text",value:F}),Q=B[B.length-1];continue}if(F===RQ||F===kQ||F===MQ){const O=F;let H;for(A.keepQuotes!==!0&&(F="");S<i&&(H=J());){if(H===hg){F+=H+J();continue}if(H===O){A.keepQuotes===!0&&(F+=H);break}F+=H}M({type:"text",value:F});continue}if(F===OQ){w++;const H={type:"brace",open:!0,close:!1,dollar:h.value&&h.value.slice(-1)==="$"||Q.dollar===!0,depth:w,commas:0,ranges:0,nodes:[]};Q=M(H),B.push(Q),M({type:"open",value:F});continue}if(F===jQ){if(Q.type!=="brace"){M({type:"text",value:F});continue}const O="close";Q=B.pop(),Q.close=!0,M({type:O,value:F}),w--,Q=B[B.length-1];continue}if(F===cQ&&w>0){if(Q.ranges>0){Q.ranges=0;const O=Q.nodes.shift();Q.nodes=[O,{type:"text",value:FQ(Q)}]}M({type:"comma",value:F}),Q.commas++;continue}if(F===yQ&&w>0&&Q.commas===0){const O=Q.nodes;if(w===0||O.length===0){M({type:"text",value:F});continue}if(h.type==="dot"){if(Q.range=[],h.value+=F,h.type="range",Q.nodes.length!==3&&Q.nodes.length!==5){Q.invalid=!0,Q.ranges=0,h.type="text";continue}Q.ranges++,Q.args=[];continue}if(h.type==="range"){O.pop();const H=O[O.length-1];H.value+=h.value+F,h=H,Q.ranges--;continue}M({type:"dot",value:F});continue}M({type:"text",value:F})}do if(Q=B.pop(),Q.type!=="root"){Q.nodes.forEach(Z=>{Z.nodes||(Z.type==="open"&&(Z.isOpen=!0),Z.type==="close"&&(Z.isClose=!0),Z.nodes||(Z.type="text"),Z.invalid=!0)});const O=B[B.length-1],H=O.nodes.indexOf(Q);O.nodes.splice(H,1,...Q.nodes)}while(B.length>0);return M({type:"eos"}),E};var mQ=HQ;const LC=Cg,aQ=GQ,lQ=wQ,pQ=mQ,YA=(I,A={})=>{let g=[];if(Array.isArray(I))for(const C of I){const E=YA.create(C,A);Array.isArray(E)?g.push(...E):g.push(E)}else g=[].concat(YA.create(I,A));return A&&A.expand===!0&&A.nodupes===!0&&(g=[...new Set(g)]),g};YA.parse=(I,A={})=>pQ(I,A),YA.stringify=(I,A={})=>LC(typeof I=="string"?YA.parse(I,A):I,A),YA.compile=(I,A={})=>(typeof I=="string"&&(I=YA.parse(I,A)),aQ(I,A)),YA.expand=(I,A={})=>{typeof I=="string"&&(I=YA.parse(I,A));let g=lQ(I,A);return A.noempty===!0&&(g=g.filter(Boolean)),A.nodupes===!0&&(g=[...new Set(g)]),g},YA.create=(I,A={})=>I===""||I.length<3?[I]:A.expand!==!0?YA.compile(I,A):YA.expand(I,A);var WQ=YA,II={};const bQ=iA,ZA="\\\\/",dC=`[^${ZA}]`,TA="\\.",TQ="\\+",sQ="\\?",JI="\\/",KQ="(?=.)",zC="[^/]",Dg=`(?:${JI}|$)`,xC=`(?:^|${JI})`,Sg=`${TA}{1,2}${Dg}`,XQ=`(?!${TA})`,VQ=`(?!${xC}${Sg})`,LQ=`(?!${TA}{0,1}${Dg})`,dQ=`(?!${Sg})`,zQ=`[^.${JI}]`,xQ=`${zC}*?`,qC={DOT_LITERAL:TA,PLUS_LITERAL:TQ,QMARK_LITERAL:sQ,SLASH_LITERAL:JI,ONE_CHAR:KQ,QMARK:zC,END_ANCHOR:Dg,DOTS_SLASH:Sg,NO_DOT:XQ,NO_DOTS:VQ,NO_DOT_SLASH:LQ,NO_DOTS_SLASH:dQ,QMARK_NO_DOT:zQ,STAR:xQ,START_ANCHOR:xC},qQ={...qC,SLASH_LITERAL:`[${ZA}]`,QMARK:dC,STAR:`${dC}*?`,DOTS_SLASH:`${TA}{1,2}(?:[${ZA}]|$)`,NO_DOT:`(?!${TA})`,NO_DOTS:`(?!(?:^|[${ZA}])${TA}{1,2}(?:[${ZA}]|$))`,NO_DOT_SLASH:`(?!${TA}{0,1}(?:[${ZA}]|$))`,NO_DOTS_SLASH:`(?!${TA}{1,2}(?:[${ZA}]|$))`,QMARK_NO_DOT:`[^.${ZA}]`,START_ANCHOR:`(?:^|[${ZA}])`,END_ANCHOR:`(?:[${ZA}]|$)`},PQ={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};var HI={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:PQ,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:bQ.sep,extglobChars(I){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${I.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(I){return I===!0?qQ:qC}};(function(I){const A=iA,g=process.platform==="win32",{REGEX_BACKSLASH:C,REGEX_REMOVE_BACKSLASH:E,REGEX_SPECIAL_CHARS:B,REGEX_SPECIAL_CHARS_GLOBAL:Q}=HI;I.isObject=h=>h!==null&&typeof h=="object"&&!Array.isArray(h),I.hasRegexChars=h=>B.test(h),I.isRegexChar=h=>h.length===1&&I.hasRegexChars(h),I.escapeRegex=h=>h.replace(Q,"\\$1"),I.toPosixSlashes=h=>h.replace(C,"/"),I.removeBackslashes=h=>h.replace(E,Y=>Y==="\\"?"":Y),I.supportsLookbehinds=()=>{const h=process.version.slice(1).split(".").map(Number);return h.length===3&&h[0]>=9||h[0]===8&&h[1]>=10},I.isWindows=h=>h&&typeof h.windows=="boolean"?h.windows:g===!0||A.sep==="\\",I.escapeLast=(h,Y,i)=>{const S=h.lastIndexOf(Y,i);return S===-1?h:h[S-1]==="\\"?I.escapeLast(h,Y,S-1):`${h.slice(0,S)}\\${h.slice(S)}`},I.removePrefix=(h,Y={})=>{let i=h;return i.startsWith("./")&&(i=i.slice(2),Y.prefix="./"),i},I.wrapOutput=(h,Y={},i={})=>{const S=i.contains?"":"^",w=i.contains?"":"$";let F=`${S}(?:${h})${w}`;return Y.negated===!0&&(F=`(?:^(?!${F}).*$)`),F}})(II);const PC=II,{CHAR_ASTERISK:Gg,CHAR_AT:nQ,CHAR_BACKWARD_SLASH:gI,CHAR_COMMA:tQ,CHAR_DOT:Yg,CHAR_EXCLAMATION_MARK:og,CHAR_FORWARD_SLASH:nC,CHAR_LEFT_CURLY_BRACE:wg,CHAR_LEFT_PARENTHESES:ig,CHAR_LEFT_SQUARE_BRACKET:fQ,CHAR_PLUS:vQ,CHAR_QUESTION_MARK:tC,CHAR_RIGHT_CURLY_BRACE:eQ,CHAR_RIGHT_PARENTHESES:fC,CHAR_RIGHT_SQUARE_BRACKET:uQ}=HI,vC=I=>I===nC||I===gI,eC=I=>{I.isPrefix!==!0&&(I.depth=I.isGlobstar?1/0:1)},rQ=(I,A)=>{const g=A||{},C=I.length-1,E=g.parts===!0||g.scanToEnd===!0,B=[],Q=[],h=[];let Y=I,i=-1,S=0,w=0,F=!1,J=!1,M=!1,O=!1,H=!1,Z=!1,q=!1,d=!1,x=!1,a=!1,p=0,W,l,z={value:"",depth:0,isGlob:!1};co[Error - 10:22:16] Server process exited with code 1.
[Error - 10:22:16] Server initialization failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 10:22:16] The Even Better TOML LSP server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.
[Error - 10:22:16] Even Better TOML LSP client: couldn't create connection to server.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 10:22:16] Restarting server failed
  Message: Pending response rejected since connection got disposed
  Code: -32097 
@davidaparicio
Copy link
Author

I think, it's a version related issue..
Because, writing down this ticket, I saw the old version of VSCode.
Now, I don't have more crashs at the moment, so I can close the issue ;-)

❯ brew install --cask vscodium
==> Downloading https://formulae.brew.sh/api/cask.jws.json
######################################################################### 100.0%
==> Upgrading 1 outdated package:
vscodium 1.87.2.24072 -> 1.95.2.24313
==> Upgrading vscodium
==> Downloading https://github.com/VSCodium/vscodium/releases/download/1.95.2.24
==> Downloading from https://objects.githubusercontent.com/github-production-rel
######################################################################### 100.0%
==> Backing App 'VSCodium.app' up to '/opt/homebrew/Caskroom/vscodium/1.87.2.240
==> Removing App '/Applications/VSCodium.app'
==> Unlinking Binary '/opt/homebrew/bin/codium'
==> Moving App 'VSCodium.app' to '/Applications/VSCodium.app'
==> Linking Binary 'codium' to '/opt/homebrew/bin/codium'
==> Purging files for version 1.87.2.24072 of Cask vscodium
🍺  vscodium was successfully upgraded!

@panekj
Copy link
Collaborator

panekj commented Nov 15, 2024

With NodeJS v19, webCrypto is enabled by default (nodejs/node@572d556...2849283).

Since code-oss/vscode 1.90.0, it switched from NodeJS v18 to v20.

We had workaround for our ahash dependency to make it work earlier which was removed with v0.21.0 of Even Better TOML (1db7997).
This is expected breakage for any extension that relied on the workaround and had to be patched for any newer vscode distributions.

@davidaparicio
Copy link
Author

Waow! Thx a lot for this very precise information with its context 💯
Interesting to understand these evolutions even if I'm not a Node.JS developer (for the moment)
But it's always interesting, especially when you're a day-to-day user of software that uses them 👍

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

2 participants