Skip to content

LS is not working anymore on vscode (due to vscode upgrade ?) #30

@Clemog

Description

@Clemog

Using 0.8.6 (vs code, macos)

Here is the output i have :

node:electron/js2c/node_init:2
(()=>{"use strict";var t={"./lib/node/asar-fs-wrapper.ts":(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.wrapFsWithAsar=void 0;const s=r("buffer"),n=r("fs"),i=r("path"),a=r("util"),o=process._linkedBinding("electron_common_asar"),c=r("module"),f=global.Promise,l=process.env.ELECTRON_NO_ASAR&&"browser"!==process.type&&"renderer"!==process.type,u=process.internalBinding;delete process.internalBinding;const nextTick=(t,e=[])=>{process.nextTick((()=>t(...e)))},h=new Map,getOrCreateArchive=t=>{if(h.has(t))return h.get(t);try{const e=new o.Archive(t);return h.set(t,e),e}catch{return null}};process._getOrCreateArchive=getOrCreateArchive;const p=/\.asar/i,{getValidatedPath:d,getOptions:y,getDirent:P}=require("internal/fs/utils"),{validateBoolean:_,validateFunction:A}=require("internal/validators"),{URL:N}=require("internal/url"),splitPath=t=>{if(process.noAsar||l)return{isAsar:!1};let e=t;return s.Buffer.isBuffer(t)&&(e=t.toString()),e instanceof N&&(e=d(e)),"string"!=typeof e?{isAsar:!1}:p.test(e)?o.splitPath(i.normalize(e)):{isAsar:!1}};let I=0;const O=process.getuid?.()??0,v=process.getgid?.()??0,g=new Date;function getDirents(t,{0:e,1:r}){for(let s=0;s<e.length;s++){let n=r[s];const a=splitPath(i.join(t,e[s]));if(a.isAsar){const t=getOrCreateArchive(a.asarPath);if(!t)continue;const e=t.stat(a.filePath);if(!e)continue;n=e.type}e[s]=P(t,e[s],n)}return e}var m;!function(t){t[t.kFile=n.constants.UV_DIRENT_FILE]="kFile",t[t.kDirectory=n.constants.UV_DIRENT_DIR]="kDirectory",t[t.kLink=n.constants.UV_DIRENT_LINK]="kLink"}(m||(m={}));const F=new Map([[m.kFile,n.constants.S_IFREG],[m.kDirectory,n.constants.S_IFDIR],[m.kLink,n.constants.S_IFLNK]]),asarStatsToFsStats=function(t){const{Stats:e}=r("fs");return new e(1,n.constants.S_IROTH|n.constants.S_IRGRP|n.constants.S_IRUSR|n.constants.S_IWUSR|F.get(t.type),1,O,v,0,void 0,++I,t.size,void 0,g.getTime(),g.getTime(),g.getTime(),g.getTime())},createError=(t,{asarPath:e,filePath:r}={})=>{let s;switch(t){case"NOT_FOUND":s=new Error(`ENOENT, ${r} not found in ${e}`),s.code="ENOENT",s.errno=-2;break;case"NOT_DIR":s=new Error("ENOTDIR, not a directory"),s.code="ENOTDIR",s.errno=-20;break;case"NO_ACCESS":s=new Error(`EACCES: permission denied, access '${r}'`),s.code="EACCES",s.errno=-13;break;case"INVALID_ARCHIVE":s=new Error(`Invalid package ${e}`);break;default:throw new Error(`Invalid error type "${t}" passed to createError.`)}return s},overrideAPISync=function(t,e,r,s=!1){null==r&&(r=0);const n=t[e],func=function(...t){const e=t[r],s=splitPath(e);if(!s.isAsar)return n.apply(this,t);const{asarPath:i,filePath:a}=s,o=getOrCreateArchive(i);if(!o)throw createError("INVALID_ARCHIVE",{asarPath:i});const c=o.copyFileOut(a);if(!c)throw createError("NOT_FOUND",{asarPath:i,filePath:a});return t[r]=c,n.apply(this,t)};if(s)return func;t[e]=func},overrideAPI=function(t,e,r){null==r&&(r=0);const s=t[e];t[e]=function(...n){const i=n[r],a=splitPath(i);if(!a.isAsar)return s.apply(this,n);const{asarPath:o,filePath:c}=a,f=n[n.length-1];if("function"!=typeof f)return overrideAPISync(t,e,r,!0).apply(this,n);const l=getOrCreateArchive(o);if(!l){const t=createError("INVALID_ARCHIVE",{asarPath:o});return void nextTick(f,[t])}const u=l.copyFileOut(c);if(u)return n[r]=u,s.apply(this,n);{const t=createError("NOT_FOUND",{asarPath:o,filePath:c});nextTick(f,[t])}},s[a.promisify.custom]&&(t[e][a.promisify.custom]=makePromiseFunction(s[a.promisify.custom],r)),t.promises&&t.promises[e]&&(t.promises[e]=makePromiseFunction(t.promises[e],r))};let S;function validateBufferIntegrity(t,e){if(!e)return;S=S||r("crypto");const s=S.createHash(e.algorithm).update(t).digest("hex");s!==e.hash&&(console.error(`ASAR Integrity Violation: got a hash mismatch (${s} vs ${e.hash})`),process.exit(1))}const makePromiseFunction=function(t,e){return function(...r){const s=r[e],n=splitPath(s);if(!n.isAsar)return t.apply(this,r);const{asarPath:i,filePath:a}=n,o=getOrCreateArchive(i);if(!o)return f.reject(createError("INVALID_ARCHIVE",{asarPath:i}));const c=o.copyFileOut(a);return c?(r[e]=c,t.apply(this,r)):f.reject(createError("NOT_FOUND",{asarPath:i,filePath:a}))}};e.wrapFsWithAsar=t=>{const e=new Map,logASARAccess=(s,n,a)=>{if(process.env.ELECTRON_LOG_ASAR_READS){if(!e.has(s)){const n=`${i.basename(s,".asar")}-access-log.txt`,a=i.join(r("os").tmpdir(),n);e.set(s,t.openSync(a,"a"))}t.writeSync(e.get(s),`${a}: ${n}\n`)}},shouldThrowStatError=t=>!t||"object"!=typeof t||!1!==t.throwIfNoEntry,{lstatSync:n}=t;t.lstatSync=(t,e)=>{const r=splitPath(t);if(!r.isAsar)return n(t,e);const{asarPath:s,filePath:i}=r,a=getOrCreateArchive(s);if(!a){if(shouldThrowStatError(e))throw createError("INVALID_ARCHIVE",{asarPath:s});return null}const o=a.stat(i);if(!o){if(shouldThrowStatError(e))throw createError("NOT_FOUND",{asarPath:s,filePath:i});return null}return asarStatsToFsStats(o)};const{lstat:o}=t;t.lstat=(t,e,r)=>{const s=splitPath(t);if("function"==typeof e&&(r=e,e={}),!s.isAsar)return o(t,e,r);const{asarPath:n,filePath:i}=s,a=getOrCreateArchive(n);if(!a){const t=createError("INVALID_ARCHIVE",{asarPath:n});return void nextTick(r,[t])}const c=a.stat(i);if(!c){const t=createError("NOT_FOUND",{asarPath:n,filePath:i});return void nextTick(r,[t])}const f=asarStatsToFsStats(c);nextTick(r,[null,f])},t.promises.lstat=a.promisify(t.lstat);const{statSync:l}=t;t.statSync=(e,r)=>{const{isAsar:s}=splitPath(e);return s?t.lstatSync(e,r):l(e,r)};const{stat:h}=t;t.stat=(e,r,s)=>{const{isAsar:n}=splitPath(e);if("function"==typeof r&&(s=r,r={}),!n)return h(e,r,s);process.nextTick((()=>t.lstat(e,r,s)))},t.promises.stat=a.promisify(t.stat);const wrapRealpathSync=function(t){return function(e,r){const s=splitPath(e);if(!s.isAsar)return t.apply(this,arguments);const{asarPath:n,filePath:a}=s,o=getOrCreateArchive(n);if(!o)throw createError("INVALID_ARCHIVE",{asarPath:n});const c=o.realpath(a);if(!1===c)throw createError("NOT_FOUND",{asarPath:n,filePath:a});return i.join(t(n,r),c)}},{realpathSync:p}=t;t.realpathSync=wrapRealpathSync(p),t.realpathSync.native=wrapRealpathSync(p.native);const wrapRealpath=function(t){return function(e,r,s){const n=splitPath(e);if(!n.isAsar)return t.apply(this,arguments);const{asarPath:a,filePath:o}=n;arguments.length<3&&(s=r,r={});const c=getOrCreateArchive(a);if(!c){const t=createError("INVALID_ARCHIVE",{asarPath:a});return void nextTick(s,[t])}const f=c.realpath(o);if(!1!==f)t(a,r,((t,e)=>{if(null===t){const t=i.join(e,f);s(null,t)}else s(t)}));else{const t=createError("NOT_FOUND",{asarPath:a,filePath:o});nextTick(s,[t])}}},{realpath:N}=t;t.realpath=wrapRealpath(N),t.realpath.native=wrapRealpath(N.native),t.promises.realpath=a.promisify(t.realpath.native);const{exists:I}=t;t.exists=function exists(t,e){let r;try{r=splitPath(t)}catch{return void nextTick(e,[!1])}if(!r.isAsar)return I(t,e);const{asarPath:s,filePath:n}=r,i=getOrCreateArchive(s);if(!i){const t=createError("INVALID_ARCHIVE",{asarPath:s});return void nextTick(e,[t])}const a=!1!==i.stat(n);nextTick(e,[a])},t.exists[a.promisify.custom]=function exists(t){const e=splitPath(t);if(!e.isAsar)return I[a.promisify.custom](t);const{asarPath:r,filePath:s}=e,n=getOrCreateArchive(r);if(!n){const t=createError("INVALID_ARCHIVE",{asarPath:r});return f.reject(t)}return f.resolve(!1!==n.stat(s))};const{existsSync:O}=t;t.existsSync=t=>{let e;try{e=splitPath(t)}catch{return!1}if(!e.isAsar)return O(t);const{asarPath:r,filePath:s}=e,n=getOrCreateArchive(r);return!!n&&!1!==n.stat(s)};const{access:v}=t;t.access=function(e,r,s){const n=splitPath(e);if(!n.isAsar)return v.apply(this,arguments);const{asarPath:i,filePath:a}=n;"function"==typeof r&&(s=r,r=t.constants.F_OK);const o=getOrCreateArchive(i);if(!o){const t=createError("INVALID_ARCHIVE",{asarPath:i});return void nextTick(s,[t])}const c=o.getFileInfo(a);if(!c){const t=createError("NOT_FOUND",{asarPath:i,filePath:a});return void nextTick(s,[t])}if(c.unpacked){const e=o.copyFileOut(a);return t.access(e,r,s)}if(o.stat(a))if(r&t.constants.W_OK){const t=createError("NO_ACCESS",{asarPath:i,filePath:a});nextTick(s,[t])}else nextTick(s);else{const t=createError("NOT_FOUND",{asarPath:i,filePath:a});nextTick(s,[t])}};const{access:g}=t.promises;[Error - 12:01:52] Server initialization failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Info  - 12:01:52] Connection to server got closed. Server will restart.
true
[Error - 12:01:52] Publicodes Language Server client: couldn't create connection to server.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
node:electron/js2c/node_init:2
(()=>{"use strict";var t={"./lib/node/asar-fs-wrapper.ts":(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.wrapFsWithAsar=void 0;const s=r("buffer"),n=r("fs"),i=r("path"),a=r("util"),o=process._linkedBinding("electron_common_asar"),c=r("module"),f=global.Promise,l=process.env.ELECTRON_NO_ASAR&&"browser"!==process.type&&"renderer"!==process.type,u=process.internalBinding;delete process.internalBinding;const nextTick=(t,e=[])=>{process.nextTick((()=>t(...e)))},h=new Map,getOrCreateArchive=t=>{if(h.has(t))return h.get(t);try{const e=new o.Archive(t);return h.set(t,e),e}catch{return null}};process._getOrCreateArchive=getOrCreateArchive;const p=/\.asar/i,{getValidatedPath:d,getOptions:y,getDirent:P}=require("internal/fs/utils"),{validateBoolean:_,validateFunction:A}=require("internal/validators"),{URL:N}=require("internal/url"),splitPath=t=>{if(process.noAsar||l)return{isAsar:!1};let e=t;return s.Buffer.isBuffer(t)&&(e=t.toString()),e instanceof N&&(e=d(e)),"string"!=typeof e?{isAsar:!1}:p.test(e)?o.splitPath(i.normalize(e)):{isAsar:!1}};let I=0;const O=process.getuid?.()??0,v=process.getgid?.()??0,g=new Date;function getDirents(t,{0:e,1:r}){for(let s=0;s<e.length;s++){let n=r[s];const a=splitPath(i.join(t,e[s]));if(a.isAsar){const t=getOrCreateArchive(a.asarPath);if(!t)continue;const e=t.stat(a.filePath);if(!e)continue;n=e.type}e[s]=P(t,e[s],n)}return e}var m;!function(t){t[t.kFile=n.constants.UV_DIRENT_FILE]="kFile",t[t.kDirectory=n.constants.UV_DIRENT_DIR]="kDirectory",t[t.kLink=n.constants.UV_DIRENT_LINK]="kLink"}(m||(m={}));const F=new Map([[m.kFile,n.constants.S_IFREG],[m.kDirectory,n.constants.S_IFDIR],[m.kLink,n.constants.S_IFLNK]]),asarStatsToFsStats=function(t){const{Stats:e}=r("fs");return new e(1,n.constants.S_IROTH|n.constants.S_IRGRP|n.constants.S_IRUSR|n.constants.S_IWUSR|F.get(t.type),1,O,v,0,void 0,++I,t.size,void 0,g.getTime(),g.getTime(),g.getTime(),g.getTime())},createError=(t,{asarPath:e,filePath:r}={})=>{let s;switch(t){case"NOT_FOUND":s=new Error(`ENOENT, ${r} not found in ${e}`),s.code="ENOENT",s.errno=-2;break;case"NOT_DIR":s=new Error("ENOTDIR, not a directory"),s.code="ENOTDIR",s.errno=-20;break;case"NO_ACCESS":s=new Error(`EACCES: permission denied, access '${r}'`),s.code="EACCES",s.errno=-13;break;case"INVALID_ARCHIVE":s=new Error(`Invalid package ${e}`);break;default:throw new Error(`Invalid error type "${t}" passed to createError.`)}return s},overrideAPISync=function(t,e,r,s=!1){null==r&&(r=0);const n=t[e],func=function(...t){const e=t[r],s=splitPath(e);if(!s.isAsar)return n.apply(this,t);const{asarPath:i,filePath:a}=s,o=getOrCreateArchive(i);if(!o)throw createError("INVALID_ARCHIVE",{asarPath:i});const c=o.copyFileOut(a);if(!c)throw createError("NOT_FOUND",{asarPath:i,filePath:a});return t[r]=c,n.apply(this,t)};if(s)return func;t[e]=func},overrideAPI=function(t,e,r){null==r&&(r=0);const s=t[e];t[e]=function(...n){const i=n[r],a=splitPath(i);if(!a.isAsar)return s.apply(this,n);const{asarPath:o,filePath:c}=a,f=n[n.length-1];if("function"!=typeof f)return overrideAPISync(t,e,r,!0).apply(this,n);const l=getOrCreateArchive(o);if(!l){const t=createError("INVALID_ARCHIVE",{asarPath:o});return void nextTick(f,[t])}const u=l.copyFileOut(c);if(u)return n[r]=u,s.apply(this,n);{const t=createError("NOT_FOUND",{asarPath:o,filePath:c});nextTick(f,[t])}},s[a.promisify.custom]&&(t[e][a.promisify.custom]=makePromiseFunction(s[a.promisify.custom],r)),t.promises&&t.promises[e]&&(t.promises[e]=makePromiseFunction(t.promises[e],r))};let S;function validateBufferIntegrity(t,e){if(!e)return;S=S||r("crypto");const s=S.createHash(e.algorithm).update(t).digest("hex");s!==e.hash&&(console.error(`ASAR Integrity Violation: got a hash mismatch (${s} vs ${e.hash})`),process.exit(1))}const makePromiseFunction=function(t,e){return function(...r){const s=r[e],n=splitPath(s);if(!n.isAsar)return t.apply(this,r);const{asarPath:i,filePath:a}=n,o=getOrCreateArchive(i);if(!o)return f.reject(createError("INVALID_ARCHIVE",{asarPath:i}));const c=o.copyFileOut(a);return c?(r[e]=c,t.apply(this,r)):f.reject(createError("NOT_FOUND",{asarPath:i,filePath:a}))}};e.wrapFsWithAsar=t=>{const e=new Map,logASARAccess=(s,n,a)=>{if(process.env.ELECTRON_LOG_ASAR_READS){if(!e.has(s)){const n=`${i.basename(s,".asar")}-access-log.txt`,a=i.join(r("os").tmpdir(),n);e.set(s,t.openSync(a,"a"))}t.writeSync(e.get(s),`${a}: ${n}\n`)}},shouldThrowStatError=t=>!t||"object"!=typeof t||!1!==t.throwIfNoEntry,{lstatSync:n}=t;t.lstatSync=(t,e)=>{const r=splitPath(t);if(!r.isAsar)return n(t,e);const{asarPath:s,filePath:i}=r,a=getOrCreateArchive(s);if(!a){if(shouldThrowStatError(e))throw createError("INVALID_ARCHIVE",{asarPath:s});return null}const o=a.stat(i);if(!o){if(shouldThrowStatError(e))throw createError("NOT_FOUND",{asarPath:s,filePath:i});return null}return asarStatsToFsStats(o)};const{lstat:o}=t;t.lstat=(t,e,r)=>{const s=splitPath(t);if("function"==typeof e&&(r=e,e={}),!s.isAsar)return o(t,e,r);const{asarPath:n,filePath:i}=s,a=getOrCreateArchive(n);if(!a){const t=createError("INVALID_ARCHIVE",{asarPath:n});return void nextTick(r,[t])}const c=a.stat(i);if(!c){const t=createError("NOT_FOUND",{asarPath:n,filePath:i});return void nextTick(r,[t])}const f=asarStatsToFsStats(c);nextTick(r,[null,f])},t.promises.lstat=a.promisify(t.lstat);const{statSync:l}=t;t.statSync=(e,r)=>{const{isAsar:s}=splitPath(e);return s?t.lstatSync(e,r):l(e,r)};const{stat:h}=t;t.stat=(e,r,s)=>{const{isAsar:n}=splitPath(e);if("function"==typeof r&&(s=r,r={}),!n)return h(e,r,s);process.nextTick((()=>t.lstat(e,r,s)))},t.promises.stat=a.promisify(t.stat);const wrapRealpathSync=function(t){return function(e,r){const s=splitPath(e);if(!s.isAsar)return t.apply(this,arguments);const{asarPath:n,filePath:a}=s,o=getOrCreateArchive(n);if(!o)throw createError("INVALID_ARCHIVE",{asarPath:n});const c=o.realpath(a);if(!1===c)throw createError("NOT_FOUND",{asarPath:n,filePath:a});return i.join(t(n,r),c)}},{realpathSync:p}=t;t.realpathSync=wrapRealpathSync(p),t.realpathSync.native=wrapRealpathSync(p.native);const wrapRealpath=function(t){return function(e,r,s){const n=splitPath(e);if(!n.isAsar)return t.apply(this,arguments);const{asarPath:a,filePath:o}=n;arguments.length<3&&(s=r,r={});const c=getOrCreateArchive(a);if(!c){const t=createError("INVALID_ARCHIVE",{asarPath:a});return void nextTick(s,[t])}const f=c.realpath(o);if(!1!==f)t(a,r,((t,e)=>{if(null===t){const t=i.join(e,f);s(null,t)}else s(t)}));else{const t=createError("NOT_FOUND",{asarPath:a,filePath:o});nextTick(s,[t])}}},{realpath:N}=t;t.realpath=wrapRealpath(N),t.realpath.native=wrapRealpath(N.native),t.promises.realpath=a.promisify(t.realpath.native);const{exists:I}=t;t.exists=function exists(t,e){let r;try{r=splitPath(t)}catch{return void nextTick(e,[!1])}if(!r.isAsar)return I(t,e);const{asarPath:s,filePath:n}=r,i=getOrCreateArchive(s);if(!i){const t=createError("INVALID_ARCHIVE",{asarPath:s});return void nextTick(e,[t])}const a=!1!==i.stat(n);nextTick(e,[a])},t.exists[a.promisify.custom]=function exists(t){const e=splitPath(t);if(!e.isAsar)return I[a.promisify.custom](t);const{asarPath:r,filePath:s}=e,n=getOrCreateArchive(r);if(!n){const t=createError("INVALID_ARCHIVE",{asarPath:r});return f.reject(t)}return f.resolve(!1!==n.stat(s))};const{existsSync:O}=t;t.existsSync=t=>{let e;try{e=splitPath(t)}catch{return!1}if(!e.isAsar)return O(t);const{asarPath:r,filePath:s}=e,n=getOrCreateArchive(r);return!!n&&!1!==n.stat(s)};const{access:v}=t;t.access=function(e,r,s){const n=splitPath(e);if(!n.isAsar)return v.apply(this,arguments);const{asarPath:i,filePath:a}=n;"function"==typeof r&&(s=r,r=t.constants.F_OK);const o=getOrCreateArchive(i);if(!o){const t=createError("INVALID_ARCHIVE",{asarPath:i});return void nextTick(s,[t])}const c=o.getFileInfo(a);if(!c){const t=createError("NOT_FOUND",{asarPath:i,filePath:a});return void nextTick(s,[t])}if(c.unpacked){const e=o.copyFileOut(a);return t.access(e,r,s)}if(o.stat(a))if(r&t.constants.W_OK){const t=createError("NO_ACCESS",{asarPath:i,filePath:a});nextTick(s,[t])}else nextTick(s);else{const t=createError("NOT_FOUND",{asarPath:i,filePath:a});nextTick(s,[t])}};const{access:g}=t.promises;[Error - 12:01:52] Server initialization failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Info  - 12:01:52] Connection to server got closed. Server will restart.
true
[Error - 12:01:52] Publicodes Language Server client: couldn't create connection to server.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
node:electron/js2c/node_init:2
(()=>{"use strict";var t={"./lib/node/asar-fs-wrapper.ts":(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.wrapFsWithAsar=void 0;const s=r("buffer"),n=r("fs"),i=r("path"),a=r("util"),o=process._linkedBinding("electron_common_asar"),c=r("module"),f=global.Promise,l=process.env.ELECTRON_NO_ASAR&&"browser"!==process.type&&"renderer"!==process.type,u=process.internalBinding;delete process.internalBinding;const nextTick=(t,e=[])=>{process.nextTick((()=>t(...e)))},h=new Map,getOrCreateArchive=t=>{if(h.has(t))return h.get(t);try{const e=new o.Archive(t);return h.set(t,e),e}catch{return null}};process._getOrCreateArchive=getOrCreateArchive;const p=/\.asar/i,{getValidatedPath:d,getOptions:y,getDirent:P}=require("internal/fs/utils"),{validateBoolean:_,validateFunction:A}=require("internal/validators"),{URL:N}=require("internal/url"),splitPath=t=>{if(process.noAsar||l)return{isAsar:!1};let e=t;return s.Buffer.isBuffer(t)&&(e=t.toString()),e instanceof N&&(e=d(e)),"string"!=typeof e?{isAsar:!1}:p.test(e)?o.splitPath(i.normalize(e)):{isAsar:!1}};let I=0;const O=process.getuid?.()??0,v=process.getgid?.()??0,g=new Date;function getDirents(t,{0:e,1:r}){for(let s=0;s<e.length;s++){let n=r[s];const a=splitPath(i.join(t,e[s]));if(a.isAsar){const t=getOrCreateArchive(a.asarPath);if(!t)continue;const e=t.stat(a.filePath);if(!e)continue;n=e.type}e[s]=P(t,e[s],n)}return e}var m;!function(t){t[t.kFile=n.constants.UV_DIRENT_FILE]="kFile",t[t.kDirectory=n.constants.UV_DIRENT_DIR]="kDirectory",t[t.kLink=n.constants.UV_DIRENT_LINK]="kLink"}(m||(m={}));const F=new Map([[m.kFile,n.constants.S_IFREG],[m.kDirectory,n.constants.S_IFDIR],[m.kLink,n.constants.S_IFLNK]]),asarStatsToFsStats=function(t){const{Stats:e}=r("fs");return new e(1,n.constants.S_IROTH|n.constants.S_IRGRP|n.constants.S_IRUSR|n.constants.S_IWUSR|F.get(t.type),1,O,v,0,void 0,++I,t.size,void 0,g.getTime(),g.getTime(),g.getTime(),g.getTime())},createError=(t,{asarPath:e,filePath:r}={})=>{let s;switch(t){case"NOT_FOUND":s=new Error(`ENOENT, ${r} not found in ${e}`),s.code="ENOENT",s.errno=-2;break;case"NOT_DIR":s=new Error("ENOTDIR, not a directory"),s.code="ENOTDIR",s.errno=-20;break;case"NO_ACCESS":s=new Error(`EACCES: permission denied, access '${r}'`),s.code="EACCES",s.errno=-13;break;case"INVALID_ARCHIVE":s=new Error(`Invalid package ${e}`);break;default:throw new Error(`Invalid error type "${t}" passed to createError.`)}return s},overrideAPISync=function(t,e,r,s=!1){null==r&&(r=0);const n=t[e],func=function(...t){const e=t[r],s=splitPath(e);if(!s.isAsar)return n.apply(this,t);const{asarPath:i,filePath:a}=s,o=getOrCreateArchive(i);if(!o)throw createError("INVALID_ARCHIVE",{asarPath:i});const c=o.copyFileOut(a);if(!c)throw createError("NOT_FOUND",{asarPath:i,filePath:a});return t[r]=c,n.apply(this,t)};if(s)return func;t[e]=func},overrideAPI=function(t,e,r){null==r&&(r=0);const s=t[e];t[e]=function(...n){const i=n[r],a=splitPath(i);if(!a.isAsar)return s.apply(this,n);const{asarPath:o,filePath:c}=a,f=n[n.length-1];if("function"!=typeof f)return overrideAPISync(t,e,r,!0).apply(this,n);const l=getOrCreateArchive(o);if(!l){const t=createError("INVALID_ARCHIVE",{asarPath:o});return void nextTick(f,[t])}const u=l.copyFileOut(c);if(u)return n[r]=u,s.apply(this,n);{const t=createError("NOT_FOUND",{asarPath:o,filePath:c});nextTick(f,[t])}},s[a.promisify.custom]&&(t[e][a.promisify.custom]=makePromiseFunction(s[a.promisify.custom],r)),t.promises&&t.promises[e]&&(t.promises[e]=makePromiseFunction(t.promises[e],r))};let S;function validateBufferIntegrity(t,e){if(!e)return;S=S||r("crypto");const s=S.createHash(e.algorithm).update(t).digest("hex");s!==e.hash&&(console.error(`ASAR Integrity Violation: got a hash mismatch (${s} vs ${e.hash})`),process.exit(1))}const makePromiseFunction=function(t,e){return function(...r){const s=r[e],n=splitPath(s);if(!n.isAsar)return t.apply(this,r);const{asarPath:i,filePath:a}=n,o=getOrCreateArchive(i);if(!o)return f.reject(createError("INVALID_ARCHIVE",{asarPath:i}));const c=o.copyFileOut(a);return c?(r[e]=c,t.apply(this,r)):f.reject(createError("NOT_FOUND",{asarPath:i,filePath:a}))}};e.wrapFsWithAsar=t=>{const e=new Map,logASARAccess=(s,n,a)=>{if(process.env.ELECTRON_LOG_ASAR_READS){if(!e.has(s)){const n=`${i.basename(s,".asar")}-access-log.txt`,a=i.join(r("os").tmpdir(),n);e.set(s,t.openSync(a,"a"))}t.writeSync(e.get(s),`${a}: ${n}\n`)}},shouldThrowStatError=t=>!t||"object"!=typeof t||!1!==t.throwIfNoEntry,{lstatSync:n}=t;t.lstatSync=(t,e)=>{const r=splitPath(t);if(!r.isAsar)return n(t,e);const{asarPath:s,filePath:i}=r,a=getOrCreateArchive(s);if(!a){if(shouldThrowStatError(e))throw createError("INVALID_ARCHIVE",{asarPath:s});return null}const o=a.stat(i);if(!o){if(shouldThrowStatError(e))throw createError("NOT_FOUND",{asarPath:s,filePath:i});return null}return asarStatsToFsStats(o)};const{lstat:o}=t;t.lstat=(t,e,r)=>{const s=splitPath(t);if("function"==typeof e&&(r=e,e={}),!s.isAsar)return o(t,e,r);const{asarPath:n,filePath:i}=s,a=getOrCreateArchive(n);if(!a){const t=createError("INVALID_ARCHIVE",{asarPath:n});return void nextTick(r,[t])}const c=a.stat(i);if(!c){const t=createError("NOT_FOUND",{asarPath:n,filePath:i});return void nextTick(r,[t])}const f=asarStatsToFsStats(c);nextTick(r,[null,f])},t.promises.lstat=a.promisify(t.lstat);const{statSync:l}=t;t.statSync=(e,r)=>{const{isAsar:s}=splitPath(e);return s?t.lstatSync(e,r):l(e,r)};const{stat:h}=t;t.stat=(e,r,s)=>{const{isAsar:n}=splitPath(e);if("function"==typeof r&&(s=r,r={}),!n)return h(e,r,s);process.nextTick((()=>t.lstat(e,r,s)))},t.promises.stat=a.promisify(t.stat);const wrapRealpathSync=function(t){return function(e,r){const s=splitPath(e);if(!s.isAsar)return t.apply(this,arguments);const{asarPath:n,filePath:a}=s,o=getOrCreateArchive(n);if(!o)throw createError("INVALID_ARCHIVE",{asarPath:n});const c=o.realpath(a);if(!1===c)throw createError("NOT_FOUND",{asarPath:n,filePath:a});return i.join(t(n,r),c)}},{realpathSync:p}=t;t.realpathSync=wrapRealpathSync(p),t.realpathSync.native=wrapRealpathSync(p.native);const wrapRealpath=function(t){return function(e,r,s){const n=splitPath(e);if(!n.isAsar)return t.apply(this,arguments);const{asarPath:a,filePath:o}=n;arguments.length<3&&(s=r,r={});const c=getOrCreateArchive(a);if(!c){const t=createError("INVALID_ARCHIVE",{asarPath:a});return void nextTick(s,[t])}const f=c.realpath(o);if(!1!==f)t(a,r,((t,e)=>{if(null===t){const t=i.join(e,f);s(null,t)}else s(t)}));else{const t=createError("NOT_FOUND",{asarPath:a,filePath:o});nextTick(s,[t])}}},{realpath:N}=t;t.realpath=wrapRealpath(N),t.realpath.native=wrapRealpath(N.native),t.promises.realpath=a.promisify(t.realpath.native);const{exists:I}=t;t.exists=function exists(t,e){let r;try{r=splitPath(t)}catch{return void nextTick(e,[!1])}if(!r.isAsar)return I(t,e);const{asarPath:s,filePath:n}=r,i=getOrCreateArchive(s);if(!i){const t=createError("INVALID_ARCHIVE",{asarPath:s});return void nextTick(e,[t])}const a=!1!==i.stat(n);nextTick(e,[a])},t.exists[a.promisify.custom]=function exists(t){const e=splitPath(t);if(!e.isAsar)return I[a.promisify.custom](t);const{asarPath:r,filePath:s}=e,n=getOrCreateArchive(r);if(!n){const t=createError("INVALID_ARCHIVE",{asarPath:r});return f.reject(t)}return f.resolve(!1!==n.stat(s))};const{existsSync:O}=t;t.existsSync=t=>{let e;try{e=splitPath(t)}catch{return!1}if(!e.isAsar)return O(t);const{asarPath:r,filePath:s}=e,n=getOrCreateArchive(r);return!!n&&!1!==n.stat(s)};const{access:v}=t;t.access=function(e,r,s){const n=splitPath(e);if(!n.isAsar)return v.apply(this,arguments);const{asarPath:i,filePath:a}=n;"function"==typeof r&&(s=r,r=t.constants.F_OK);const o=getOrCreateArchive(i);if(!o){const t=createError("INVALID_ARCHIVE",{asarPath:i});return void nextTick(s,[t])}const c=o.getFileInfo(a);if(!c){const t=createError("NOT_FOUND",{asarPath:i,filePath:a});return void nextTick(s,[t])}if(c.unpacked){const e=o.copyFileOut(a);return t.access(e,r,s)}if(o.stat(a))if(r&t.constants.W_OK){const t=createError("NO_ACCESS",{asarPath:i,filePath:a});nextTick(s,[t])}else nextTick(s);else{const t=createError("NOT_FOUND",{asarPath:i,filePath:a});nextTick(s,[t])}};const{access:g}=t.promises;[Error - 12:01:52] Server initialization failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Info  - 12:01:52] Connection to server got closed. Server will restart.
true
[Error - 12:01:52] Publicodes Language Server client: couldn't create connection to server.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 12:01:52] Restarting server failed
  Message: Pending response rejected since connection got disposed
  Code: -32097 
node:electron/js2c/node_init:2
(()=>{"use strict";var t={"./lib/node/asar-fs-wrapper.ts":(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.wrapFsWithAsar=void 0;const s=r("buffer"),n=r("fs"),i=r("path"),a=r("util"),o=process._linkedBinding("electron_common_asar"),c=r("module"),f=global.Promise,l=process.env.ELECTRON_NO_ASAR&&"browser"!==process.type&&"renderer"!==process.type,u=process.internalBinding;delete process.internalBinding;const nextTick=(t,e=[])=>{process.nextTick((()=>t(...e)))},h=new Map,getOrCreateArchive=t=>{if(h.has(t))return h.get(t);try{const e=new o.Archive(t);return h.set(t,e),e}catch{return null}};process._getOrCreateArchive=getOrCreateArchive;const p=/\.asar/i,{getValidatedPath:d,getOptions:y,getDirent:P}=require("internal/fs/utils"),{validateBoolean:_,validateFunction:A}=require("internal/validators"),{URL:N}=require("internal/url"),splitPath=t=>{if(process.noAsar||l)return{isAsar:!1};let e=t;return s.Buffer.isBuffer(t)&&(e=t.toString()),e instanceof N&&(e=d(e)),"string"!=typeof e?{isAsar:!1}:p.test(e)?o.splitPath(i.normalize(e)):{isAsar:!1}};let I=0;const O=process.getuid?.()??0,v=process.getgid?.()??0,g=new Date;function getDirents(t,{0:e,1:r}){for(let s=0;s<e.length;s++){let n=r[s];const a=splitPath(i.join(t,e[s]));if(a.isAsar){const t=getOrCreateArchive(a.asarPath);if(!t)continue;const e=t.stat(a.filePath);if(!e)continue;n=e.type}e[s]=P(t,e[s],n)}return e}var m;!function(t){t[t.kFile=n.constants.UV_DIRENT_FILE]="kFile",t[t.kDirectory=n.constants.UV_DIRENT_DIR]="kDirectory",t[t.kLink=n.constants.UV_DIRENT_LINK]="kLink"}(m||(m={}));const F=new Map([[m.kFile,n.constants.S_IFREG],[m.kDirectory,n.constants.S_IFDIR],[m.kLink,n.constants.S_IFLNK]]),asarStatsToFsStats=function(t){const{Stats:e}=r("fs");return new e(1,n.constants.S_IROTH|n.constants.S_IRGRP|n.constants.S_IRUSR|n.constants.S_IWUSR|F.get(t.type),1,O,v,0,void 0,++I,t.size,void 0,g.getTime(),g.getTime(),g.getTime(),g.getTime())},createError=(t,{asarPath:e,filePath:r}={})=>{let s;switch(t){case"NOT_FOUND":s=new Error(`ENOENT, ${r} not found in ${e}`),s.code="ENOENT",s.errno=-2;break;case"NOT_DIR":s=new Error("ENOTDIR, not a directory"),s.code="ENOTDIR",s.errno=-20;break;case"NO_ACCESS":s=new Error(`EACCES: permission denied, access '${r}'`),s.code="EACCES",s.errno=-13;break;case"INVALID_ARCHIVE":s=new Error(`Invalid package ${e}`);break;default:throw new Error(`Invalid error type "${t}" passed to createError.`)}return s},overrideAPISync=function(t,e,r,s=!1){null==r&&(r=0);const n=t[e],func=function(...t){const e=t[r],s=splitPath(e);if(!s.isAsar)return n.apply(this,t);const{asarPath:i,filePath:a}=s,o=getOrCreateArchive(i);if(!o)throw createError("INVALID_ARCHIVE",{asarPath:i});const c=o.copyFileOut(a);if(!c)throw createError("NOT_FOUND",{asarPath:i,filePath:a});return t[r]=c,n.apply(this,t)};if(s)return func;t[e]=func},overrideAPI=function(t,e,r){null==r&&(r=0);const s=t[e];t[e]=function(...n){const i=n[r],a=splitPath(i);if(!a.isAsar)return s.apply(this,n);const{asarPath:o,filePath:c}=a,f=n[n.length-1];if("function"!=typeof f)return overrideAPISync(t,e,r,!0).apply(this,n);const l=getOrCreateArchive(o);if(!l){const t=createError("INVALID_ARCHIVE",{asarPath:o});return void nextTick(f,[t])}const u=l.copyFileOut(c);if(u)return n[r]=u,s.apply(this,n);{const t=createError("NOT_FOUND",{asarPath:o,filePath:c});nextTick(f,[t])}},s[a.promisify.custom]&&(t[e][a.promisify.custom]=makePromiseFunction(s[a.promisify.custom],r)),t.promises&&t.promises[e]&&(t.promises[e]=makePromiseFunction(t.promises[e],r))};let S;function validateBufferIntegrity(t,e){if(!e)return;S=S||r("crypto");const s=S.createHash(e.algorithm).update(t).digest("hex");s!==e.hash&&(console.error(`ASAR Integrity Violation: got a hash mismatch (${s} vs ${e.hash})`),process.exit(1))}const makePromiseFunction=function(t,e){return function(...r){const s=r[e],n=splitPath(s);if(!n.isAsar)return t.apply(this,r);const{asarPath:i,filePath:a}=n,o=getOrCreateArchive(i);if(!o)return f.reject(createError("INVALID_ARCHIVE",{asarPath:i}));const c=o.copyFileOut(a);return c?(r[e]=c,t.apply(this,r)):f.reject(createError("NOT_FOUND",{asarPath:i,filePath:a}))}};e.wrapFsWithAsar=t=>{const e=new Map,logASARAccess=(s,n,a)=>{if(process.env.ELECTRON_LOG_ASAR_READS){if(!e.has(s)){const n=`${i.basename(s,".asar")}-access-log.txt`,a=i.join(r("os").tmpdir(),n);e.set(s,t.openSync(a,"a"))}t.writeSync(e.get(s),`${a}: ${n}\n`)}},shouldThrowStatError=t=>!t||"object"!=typeof t||!1!==t.throwIfNoEntry,{lstatSync:n}=t;t.lstatSync=(t,e)=>{const r=splitPath(t);if(!r.isAsar)return n(t,e);const{asarPath:s,filePath:i}=r,a=getOrCreateArchive(s);if(!a){if(shouldThrowStatError(e))throw createError("INVALID_ARCHIVE",{asarPath:s});return null}const o=a.stat(i);if(!o){if(shouldThrowStatError(e))throw createError("NOT_FOUND",{asarPath:s,filePath:i});return null}return asarStatsToFsStats(o)};const{lstat:o}=t;t.lstat=(t,e,r)=>{const s=splitPath(t);if("function"==typeof e&&(r=e,e={}),!s.isAsar)return o(t,e,r);const{asarPath:n,filePath:i}=s,a=getOrCreateArchive(n);if(!a){const t=createError("INVALID_ARCHIVE",{asarPath:n});return void nextTick(r,[t])}const c=a.stat(i);if(!c){const t=createError("NOT_FOUND",{asarPath:n,filePath:i});return void nextTick(r,[t])}const f=asarStatsToFsStats(c);nextTick(r,[null,f])},t.promises.lstat=a.promisify(t.lstat);const{statSync:l}=t;t.statSync=(e,r)=>{const{isAsar:s}=splitPath(e);return s?t.lstatSync(e,r):l(e,r)};const{stat:h}=t;t.stat=(e,r,s)=>{const{isAsar:n}=splitPath(e);if("function"==typeof r&&(s=r,r={}),!n)return h(e,r,s);process.nextTick((()=>t.lstat(e,r,s)))},t.promises.stat=a.promisify(t.stat);const wrapRealpathSync=function(t){return function(e,r){const s=splitPath(e);if(!s.isAsar)return t.apply(this,arguments);const{asarPath:n,filePath:a}=s,o=getOrCreateArchive(n);if(!o)throw createError("INVALID_ARCHIVE",{asarPath:n});const c=o.realpath(a);if(!1===c)throw createError("NOT_FOUND",{asarPath:n,filePath:a});return i.join(t(n,r),c)}},{realpathSync:p}=t;t.realpathSync=wrapRealpathSync(p),t.realpathSync.native=wrapRealpathSync(p.native);const wrapRealpath=function(t){return function(e,r,s){const n=splitPath(e);if(!n.isAsar)return t.apply(this,arguments);const{asarPath:a,filePath:o}=n;arguments.length<3&&(s=r,r={});const c=getOrCreateArchive(a);if(!c){const t=createError("INVALID_ARCHIVE",{asarPath:a});return void nextTick(s,[t])}const f=c.realpath(o);if(!1!==f)t(a,r,((t,e)=>{if(null===t){const t=i.join(e,f);s(null,t)}else s(t)}));else{const t=createError("NOT_FOUND",{asarPath:a,filePath:o});nextTick(s,[t])}}},{realpath:N}=t;t.realpath=wrapRealpath(N),t.realpath.native=wrapRealpath(N.native),t.promises.realpath=a.promisify(t.realpath.native);const{exists:I}=t;t.exists=function exists(t,e){let r;try{r=splitPath(t)}catch{return void nextTick(e,[!1])}if(!r.isAsar)return I(t,e);const{asarPath:s,filePath:n}=r,i=getOrCreateArchive(s);if(!i){const t=createError("INVALID_ARCHIVE",{asarPath:s});return void nextTick(e,[t])}const a=!1!==i.stat(n);nextTick(e,[a])},t.exists[a.promisify.custom]=function exists(t){const e=splitPath(t);if(!e.isAsar)return I[a.promisify.custom](t);const{asarPath:r,filePath:s}=e,n=getOrCreateArchive(r);if(!n){const t=createError("INVALID_ARCHIVE",{asarPath:r});return f.reject(t)}return f.resolve(!1!==n.stat(s))};const{existsSync:O}=t;t.existsSync=t=>{let e;try{e=splitPath(t)}catch{return!1}if(!e.isAsar)return O(t);const{asarPath:r,filePath:s}=e,n=getOrCreateArchive(r);return!!n&&!1!==n.stat(s)};const{access:v}=t;t.access=function(e,r,s){const n=splitPath(e);if(!n.isAsar)return v.apply(this,arguments);const{asarPath:i,filePath:a}=n;"function"==typeof r&&(s=r,r=t.constants.F_OK);const o=getOrCreateArchive(i);if(!o){const t=createError("INVALID_ARCHIVE",{asarPath:i});return void nextTick(s,[t])}const c=o.getFileInfo(a);if(!c){const t=createError("NOT_FOUND",{asarPath:i,filePath:a});return void nextTick(s,[t])}if(c.unpacked){const e=o.copyFileOut(a);return t.access(e,r,s)}if(o.stat(a))if(r&t.constants.W_OK){const t=createError("NO_ACCESS",{asarPath:i,filePath:a});nextTick(s,[t])}else nextTick(s);else{const t=createError("NOT_FOUND",{asarPath:i,filePath:a});nextTick(s,[t])}};const{access:g}=t.promises;[Error - 12:01:52] Server initialization failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Info  - 12:01:52] Connection to server got closed. Server will restart.
true
[Error - 12:01:52] Publicodes Language Server client: couldn't create connection to server.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 12:01:52] Restarting server failed
  Message: Pending response rejected since connection got disposed
  Code: -32097 
node:electron/js2c/node_init:2
(()=>{"use strict";var t={"./lib/node/asar-fs-wrapper.ts":(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.wrapFsWithAsar=void 0;const s=r("buffer"),n=r("fs"),i=r("path"),a=r("util"),o=process._linkedBinding("electron_common_asar"),c=r("module"),f=global.Promise,l=process.env.ELECTRON_NO_ASAR&&"browser"!==process.type&&"renderer"!==process.type,u=process.internalBinding;delete process.internalBinding;const nextTick=(t,e=[])=>{process.nextTick((()=>t(...e)))},h=new Map,getOrCreateArchive=t=>{if(h.has(t))return h.get(t);try{const e=new o.Archive(t);return h.set(t,e),e}catch{return null}};process._getOrCreateArchive=getOrCreateArchive;const p=/\.asar/i,{getValidatedPath:d,getOptions:y,getDirent:P}=require("internal/fs/utils"),{validateBoolean:_,validateFunction:A}=require("internal/validators"),{URL:N}=require("internal/url"),splitPath=t=>{if(process.noAsar||l)return{isAsar:!1};let e=t;return s.Buffer.isBuffer(t)&&(e=t.toString()),e instanceof N&&(e=d(e)),"string"!=typeof e?{isAsar:!1}:p.test(e)?o.splitPath(i.normalize(e)):{isAsar:!1}};let I=0;const O=process.getuid?.()??0,v=process.getgid?.()??0,g=new Date;function getDirents(t,{0:e,1:r}){for(let s=0;s<e.length;s++){let n=r[s];const a=splitPath(i.join(t,e[s]));if(a.isAsar){const t=getOrCreateArchive(a.asarPath);if(!t)continue;const e=t.stat(a.filePath);if(!e)continue;n=e.type}e[s]=P(t,e[s],n)}return e}var m;!function(t){t[t.kFile=n.constants.UV_DIRENT_FILE]="kFile",t[t.kDirectory=n.constants.UV_DIRENT_DIR]="kDirectory",t[t.kLink=n.constants.UV_DIRENT_LINK]="kLink"}(m||(m={}));const F=new Map([[m.kFile,n.constants.S_IFREG],[m.kDirectory,n.constants.S_IFDIR],[m.kLink,n.constants.S_IFLNK]]),asarStatsToFsStats=function(t){const{Stats:e}=r("fs");return new e(1,n.constants.S_IROTH|n.constants.S_IRGRP|n.constants.S_IRUSR|n.constants.S_IWUSR|F.get(t.type),1,O,v,0,void 0,++I,t.size,void 0,g.getTime(),g.getTime(),g.getTime(),g.getTime())},createError=(t,{asarPath:e,filePath:r}={})=>{let s;switch(t){case"NOT_FOUND":s=new Error(`ENOENT, ${r} not found in ${e}`),s.code="ENOENT",s.errno=-2;break;case"NOT_DIR":s=new Error("ENOTDIR, not a directory"),s.code="ENOTDIR",s.errno=-20;break;case"NO_ACCESS":s=new Error(`EACCES: permission denied, access '${r}'`),s.code="EACCES",s.errno=-13;break;case"INVALID_ARCHIVE":s=new Error(`Invalid package ${e}`);break;default:throw new Error(`Invalid error type "${t}" passed to createError.`)}return s},overrideAPISync=function(t,e,r,s=!1){null==r&&(r=0);const n=t[e],func=function(...t){const e=t[r],s=splitPath(e);if(!s.isAsar)return n.apply(this,t);const{asarPath:i,filePath:a}=s,o=getOrCreateArchive(i);if(!o)throw createError("INVALID_ARCHIVE",{asarPath:i});const c=o.copyFileOut(a);if(!c)throw createError("NOT_FOUND",{asarPath:i,filePath:a});return t[r]=c,n.apply(this,t)};if(s)return func;t[e]=func},overrideAPI=function(t,e,r){null==r&&(r=0);const s=t[e];t[e]=function(...n){const i=n[r],a=splitPath(i);if(!a.isAsar)return s.apply(this,n);const{asarPath:o,filePath:c}=a,f=n[n.length-1];if("function"!=typeof f)return overrideAPISync(t,e,r,!0).apply(this,n);const l=getOrCreateArchive(o);if(!l){const t=createError("INVALID_ARCHIVE",{asarPath:o});return void nextTick(f,[t])}const u=l.copyFileOut(c);if(u)return n[r]=u,s.apply(this,n);{const t=createError("NOT_FOUND",{asarPath:o,filePath:c});nextTick(f,[t])}},s[a.promisify.custom]&&(t[e][a.promisify.custom]=makePromiseFunction(s[a.promisify.custom],r)),t.promises&&t.promises[e]&&(t.promises[e]=makePromiseFunction(t.promises[e],r))};let S;function validateBufferIntegrity(t,e){if(!e)return;S=S||r("crypto");const s=S.createHash(e.algorithm).update(t).digest("hex");s!==e.hash&&(console.error(`ASAR Integrity Violation: got a hash mismatch (${s} vs ${e.hash})`),process.exit(1))}const makePromiseFunction=function(t,e){return function(...r){const s=r[e],n=splitPath(s);if(!n.isAsar)return t.apply(this,r);const{asarPath:i,filePath:a}=n,o=getOrCreateArchive(i);if(!o)return f.reject(createError("INVALID_ARCHIVE",{asarPath:i}));const c=o.copyFileOut(a);return c?(r[e]=c,t.apply(this,r)):f.reject(createError("NOT_FOUND",{asarPath:i,filePath:a}))}};e.wrapFsWithAsar=t=>{const e=new Map,logASARAccess=(s,n,a)=>{if(process.env.ELECTRON_LOG_ASAR_READS){if(!e.has(s)){const n=`${i.basename(s,".asar")}-access-log.txt`,a=i.join(r("os").tmpdir(),n);e.set(s,t.openSync(a,"a"))}t.writeSync(e.get(s),`${a}: ${n}\n`)}},shouldThrowStatError=t=>!t||"object"!=typeof t||!1!==t.throwIfNoEntry,{lstatSync:n}=t;t.lstatSync=(t,e)=>{const r=splitPath(t);if(!r.isAsar)return n(t,e);const{asarPath:s,filePath:i}=r,a=getOrCreateArchive(s);if(!a){if(shouldThrowStatError(e))throw createError("INVALID_ARCHIVE",{asarPath:s});return null}const o=a.stat(i);if(!o){if(shouldThrowStatError(e))throw createError("NOT_FOUND",{asarPath:s,filePath:i});return null}return asarStatsToFsStats(o)};const{lstat:o}=t;t.lstat=(t,e,r)=>{const s=splitPath(t);if("function"==typeof e&&(r=e,e={}),!s.isAsar)return o(t,e,r);const{asarPath:n,filePath:i}=s,a=getOrCreateArchive(n);if(!a){const t=createError("INVALID_ARCHIVE",{asarPath:n});return void nextTick(r,[t])}const c=a.stat(i);if(!c){const t=createError("NOT_FOUND",{asarPath:n,filePath:i});return void nextTick(r,[t])}const f=asarStatsToFsStats(c);nextTick(r,[null,f])},t.promises.lstat=a.promisify(t.lstat);const{statSync:l}=t;t.statSync=(e,r)=>{const{isAsar:s}=splitPath(e);return s?t.lstatSync(e,r):l(e,r)};const{stat:h}=t;t.stat=(e,r,s)=>{const{isAsar:n}=splitPath(e);if("function"==typeof r&&(s=r,r={}),!n)return h(e,r,s);process.nextTick((()=>t.lstat(e,r,s)))},t.promises.stat=a.promisify(t.stat);const wrapRealpathSync=function(t){return function(e,r){const s=splitPath(e);if(!s.isAsar)return t.apply(this,arguments);const{asarPath:n,filePath:a}=s,o=getOrCreateArchive(n);if(!o)throw createError("INVALID_ARCHIVE",{asarPath:n});const c=o.realpath(a);if(!1===c)throw createError("NOT_FOUND",{asarPath:n,filePath:a});return i.join(t(n,r),c)}},{realpathSync:p}=t;t.realpathSync=wrapRealpathSync(p),t.realpathSync.native=wrapRealpathSync(p.native);const wrapRealpath=function(t){return function(e,r,s){const n=splitPath(e);if(!n.isAsar)return t.apply(this,arguments);const{asarPath:a,filePath:o}=n;arguments.length<3&&(s=r,r={});const c=getOrCreateArchive(a);if(!c){const t=createError("INVALID_ARCHIVE",{asarPath:a});return void nextTick(s,[t])}const f=c.realpath(o);if(!1!==f)t(a,r,((t,e)=>{if(null===t){const t=i.join(e,f);s(null,t)}else s(t)}));else{const t=createError("NOT_FOUND",{asarPath:a,filePath:o});nextTick(s,[t])}}},{realpath:N}=t;t.realpath=wrapRealpath(N),t.realpath.native=wrapRealpath(N.native),t.promises.realpath=a.promisify(t.realpath.native);const{exists:I}=t;t.exists=function exists(t,e){let r;try{r=splitPath(t)}catch{return void nextTick(e,[!1])}if(!r.isAsar)return I(t,e);const{asarPath:s,filePath:n}=r,i=getOrCreateArchive(s);if(!i){const t=createError("INVALID_ARCHIVE",{asarPath:s});return void nextTick(e,[t])}const a=!1!==i.stat(n);nextTick(e,[a])},t.exists[a.promisify.custom]=function exists(t){const e=splitPath(t);if(!e.isAsar)return I[a.promisify.custom](t);const{asarPath:r,filePath:s}=e,n=getOrCreateArchive(r);if(!n){const t=createError("INVALID_ARCHIVE",{asarPath:r});return f.reject(t)}return f.resolve(!1!==n.stat(s))};const{existsSync:O}=t;t.existsSync=t=>{let e;try{e=splitPath(t)}catch{return!1}if(!e.isAsar)return O(t);const{asarPath:r,filePath:s}=e,n=getOrCreateArchive(r);return!!n&&!1!==n.stat(s)};const{access:v}=t;t.access=function(e,r,s){const n=splitPath(e);if(!n.isAsar)return v.apply(this,arguments);const{asarPath:i,filePath:a}=n;"function"==typeof r&&(s=r,r=t.constants.F_OK);const o=getOrCreateArchive(i);if(!o){const t=createError("INVALID_ARCHIVE",{asarPath:i});return void nextTick(s,[t])}const c=o.getFileInfo(a);if(!c){const t=createError("NOT_FOUND",{asarPath:i,filePath:a});return void nextTick(s,[t])}if(c.unpacked){const e=o.copyFileOut(a);return t.access(e,r,s)}if(o.stat(a))if(r&t.constants.W_OK){const t=createError("NO_ACCESS",{asarPath:i,filePath:a});nextTick(s,[t])}else nextTick(s);else{const t=createError("NOT_FOUND",{asarPath:i,filePath:a});nextTick(s,[t])}};const{access:g}=t.promises;[Error - 12:01:52] Server initialization failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 12:01:52] The Publicodes Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.
[Error - 12:01:52] Publicodes Language Server client: couldn't create connection to server.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 12:01:52] Restarting server failed
  Message: Pending response rejected since connection got disposed
  Code: -32097 

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions