Skip to content

Launching opencode crashes the file system (Linux) #721

@faustinoribeiro

Description

@faustinoribeiro

I installed the latest version (0.1.194) and also tried to run v0.0.190. Run the app crashed the file system with this error:

113 | ${A.join(`
114 | `)}`:"";F.fail(Q("Missing required argument: %s","Missing required arguments: %s",Object.keys(H).length,Object.keys(H).join(", ")+K))}},X.unknownArguments=function q(U,G,H,A,K=!0){var N;let E=D.getInternalMethods().getCommandInstance().getCommands(),C=[],R=D.getInternalMethods().getContext();if(Object.keys(U).forEach((L)=>{if(!KH.includes(L)&&!Object.prototype.hasOwnProperty.call(H,L)&&!Object.prototype.hasOwnProperty.call(D.getInternalMethods().getParseContext(),L)&&!X.isValidAndSomeAliasIsNotNew(L,G))C.push(L)}),K&&(R.commands.length>0||E.length>0||A))U._.slice(R.commands.length).forEach((L)=>{if(!E.includes(""+L))C.push(""+L)});if(K){let P=((N=D.getDemandedCommands()._)===null||N===void 0?void 0:N.max)||0,y=R.commands.length+P;if(y<U._.length)U._.slice(y).forEach((_)=>{if(_=String(_),!R.commands.includes(_)&&!C.includes(_))C.push(_)})}if(C.length)F.fail(Q("Unknown argument: %s","Unknown arguments: %s",C.length,C.map((L)=>L.trim()?L:`"${L}"`).join(", ")))},X.unknownCommands=function q(U){let G=D.getInternal | ... truncated 
115 |   ${J("Argument: %s, Given: %s, Choices: %s",N,F.stringifiedValues(H[N]),F.stringifiedValues(G.choices[N]))}`}),F.fail(K)};let Y={};X.implies=function q(U,G){if(O0("<string|object> [array|number|string]",[U,G],arguments.length),typeof U==="object")Object.keys(U).forEach((H)=>{X.implies(H,U[H])});else{if(D.global(U),!Y[U])Y[U]=[];if(Array.isArray(G))G.forEach((H)=>X.implies(U,H));else e1(G,void 0,$),Y[U].push(G)}},X.getImplied=function q(){return Y};function B(q,U){let G=Number(U);if(U=isNaN(G)?U:G,typeof U==="number")U=q._.length>=U;else if(U.match(/^--no-.+/))U=U.match(/^--no-(.+)/)[1],U=!Object.prototype.hasOwnProperty.call(q,U);else U=Object.prototype.hasOwnProperty.call(q,U);return U}X.implications=function q(U){let G=[];if(Object.keys(Y).forEach((H)=>{let A=H;(Y[H]||[]).forEach((K)=>{let N=A,E=K;if(N=B(U,N),K=B(U,K),N&&!K)G.push(` ${A} -> ${E}`)})}),G.length){let H=`${J("Implications failed:")}
116 | `;G.forEach((A)=>{H+=A}),F.fail(H)}};let W={};X.conflicts=function q(U,G){if(O0("<string|object> [array|string]",[U,G],arguments.length),typeof U==="object")Object.keys(U).forEach((H)=>{X.conflicts(H,U[H])});else{if(D.global(U),!W[U])W[U]=[];if(Array.isArray(G))G.forEach((H)=>X.conflicts(U,H));else W[U].push(G)}},X.getConflicting=()=>W,X.conflicting=function q(U){if(Object.keys(U).forEach((G)=>{if(W[G])W[G].forEach((H)=>{if(H&&U[G]!==void 0&&U[H]!==void 0)F.fail(J("Arguments %s and %s are mutually exclusive",G,H))})}),D.getInternalMethods().getParserConfiguration()["strip-dashed"])Object.keys(W).forEach((G)=>{W[G].forEach((H)=>{if(H&&U[$.Parser.camelCase(G)]!==void 0&&U[$.Parser.camelCase(H)]!==void 0)F.fail(J("Arguments %s and %s are mutually exclusive",G,H))})})},X.recommendCommands=function q(U,G){G=G.sort((N,E)=>E.length-N.length);let A=null,K=1/0;for(let N=0,E;(E=G[N])!==void 0;N++){let C=GH(U,E);if(C<=3&&C<K)K=C,A=E}if(A)F.fail(J("Did you mean %s?",A))},X.reset=function q(U){return Y=k8(Y,(G)=>!U[G]),W= | ... truncated 
117 | `),void 0,"versionWarning");if(I(this,b0,"f").key[D]=!0,F.alias)this.alias(D,F.alias);let $=F.deprecate||F.deprecated;if($)this.deprecateOption(D,$);let J=F.demand||F.required||F.require;if(J)this.demand(D,J);if(F.demandOption)this.demandOption(D,typeof F.demandOption==="string"?F.demandOption:void 0);if(F.conflicts)this.conflicts(D,F.conflicts);if("default"in F)this.default(D,F.default);if(F.implies!==void 0)this.implies(D,F.implies);if(F.nargs!==void 0)this.nargs(D,F.nargs);if(F.config)this.config(D,F.configParser);if(F.normalize)this.normalize(D);if(F.choices)this.choices(D,F.choices);if(F.coerce)this.coerce(D,F.coerce);if(F.group)this.group(D,F.group);if(F.boolean||F.type==="boolean"){if(this.boolean(D),F.alias)this.boolean(F.alias)}if(F.array||F.type==="array"){if(this.array(D),F.alias)this.array(F.alias)}if(F.number||F.type==="number"){if(this.number(D),F.alias)this.number(F.alias)}if(F.string||F.type==="string"){if(this.string(D),F.alias)this.string(F.alias)}if(F.count||F.type==="count")this.count(D);i | ... truncated 
118 | `,"f");Z0(this,L1,I(this,L1,"f")+D.join(" "),"f")}}}[FY](D){k7(I(this,b0,"f")).forEach((F)=>{if(((J)=>J==="configObjects")(F))return;let $=I(this,b0,"f")[F];if(Array.isArray($)){if($.includes(D))$.splice($.indexOf(D),1)}else if(typeof $==="object")delete $[D]}),delete I(this,e0,"f").getDescriptions()[D]}[EH](D,F,$){if(!I(this,j3,"f")[$])I(this,l0,"f").process.emitWarning(D,F),I(this,j3,"f")[$]=!0}[ZH](){I(this,z3,"f").push({options:I(this,b0,"f"),configObjects:I(this,b0,"f").configObjects.slice(0),exitProcess:I(this,h2,"f"),groups:I(this,M6,"f"),strict:I(this,SF,"f"),strictCommands:I(this,_F,"f"),strictOptions:I(this,bF,"f"),completionCommand:I(this,O2,"f"),output:I(this,L1,"f"),exitError:I(this,y8,"f"),hasOutput:I(this,E2,"f"),parsed:this.parsed,parseFn:I(this,Z2,"f"),parseContext:I(this,PF,"f")}),I(this,e0,"f").freeze(),I(this,eD,"f").freeze(),I(this,w1,"f").freeze(),I(this,u2,"f").freeze()}[NH](){let D="",F;if(/\b(node|iojs|electron)(\.exe)?$/.test(I(this,l0,"f").process.argv()[0]))F=I(this,l0,"f").process | ... truncated 

error: EIO: i/o error, write
      at <anonymous> (/$bunfs/root/opencode:118:11204)

This renders the file system unusable (unable to create files or folders or read files). I have to restart my machine (apparently with no damage to any files).
I am on pop_os 22.04.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions