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

Error: No protocol method Coercions.as-file defined for type boolean: false #31

Open
friedger opened this issue Jul 24, 2023 · 2 comments

Comments

@friedger
Copy link

When running clariform in folder https://github.com/Trust-Machines/stacks-sbtc/blob/68a732199797f10e33cf9538bc280bfa5ae8670e/sbtc-mini/contracts

docker run -v `pwd`:/home clariform .

I get the following error

EISDIR: illegal operation on a directory, read


;;  ./clarity-bitcoin.clar
/app/clariform.js:590
h.ba=function(){return function c(b){return new bg(null,function(){return null==b?null:ne(new U(null,2,5,V,[b.key,b.v],null),c(b.forward[0]))},null,null)}(this.yc.forward[0])};h.U=function(a,b,c){return ik(b,function(d){return ik(b,qk,""," ","",c,d)},"{",", ","}",c,this)};new sy;function ty(a,b){this.f=a;this.yg=b;this.B=393216;this.K=0}h=ty.prototype;h.R=function(a,b){return new ty(this.f,b)};h.P=function(){return this.yg};h.jf=function(){return!0};h.ze=function(){return!0};h.kf=function(){return this.f};function uy(a){try{var b=a[0];return b.g?b.g(a):b.call(null,a)}catch(c){if(c instanceof Object)throw b=c,a[6].Bd(null),b;throw c;}}function vy(a,b,c){c=c.Ae(null,new ty(function(d){a[2]=d;a[1]=b;return uy(a)},T));return t(c)?(a[2]=w(c),a[1]=b,Y):null}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^

Error: No protocol method Coercions.as-file defined for type boolean: false
    at Kb (/app/clariform.js:26:291)
    at $N (/app/clariform.js:1295:184)
    at cO (/app/clariform.js:1298:185)
    at q (/app/clariform.js:1323:83)
    at Function.p [as g] (/app/clariform.js:1325:443)
    at uy (/app/clariform.js:590:555)
    at /app/clariform.js:590:714
    at /app/clariform.js:579:243
    at Immediate.dy (/app/clariform.js:576:463)
    at process.processImmediate (node:internal/timers:471:21)

Node.js v19.3.0
@pradel
Copy link

pradel commented Dec 26, 2023

Just tried the tool and seeing the same error

@vedhavyas
Copy link

Seeing this as well. Any workaround anyone found so far ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants