"Sorry, assemblyscript is not supported in your system, use --contract=rust " error in NEAR. Suggest me to use rust instead of assemblyscript when i give assemblyscript in command
sametmollaoglu opened this issue · 11 comments
I just want to use create-near-app package from the npm registry as assemblyscript and react. But it gives https://i.stack.imgur.com/Lx36I.png error, how can i fix that ?
That's due to this changes:
dd8ac16#diff-e727e4bdf3657fd1d798edcd6b099d6e092f8573cba266154583a746bba0f346R62
which means if your system is not 64-bit MacOS or Linux you should use Rust instead AS.
@gagdiez but why?
If you want to avoid Apple's M1 better use this detection approach:
const os = require('os');
const isM1 = os.cpus()[0].model.includes("Apple");
const support_sandbox = !isM1
Also it will be great to make a reference to this issue near/near-workspaces-rs#110
Also message ""Sorry, assemblyscript is not supported in your system, use --contract=rust"" look really strange due to initial problem should affect to Rust projects as well.
Hi @sametmollaoglu and @MaxGraey , the current NEAR SDK AS has a dependency that gets broken in M1s. Since I do not own a M1, I do not remember nor cannot reproduce the exact error. But if you clone the Hello NEAR repository directly (this is the project created by create-near-app
) the error should show.
P.S. If such thing doesn't happen, or you find a solution to the error, please let me know so I can implement it in create-near-app
.
@gagdiez this error described in near/near-workspaces-rs#110. It also affects to Rust template. I proposed a solution. Just properly detect M1 arch as descibed here. And plz remove unnecessary message "Sorry, assemblyscript is not supported in your system, use --contract=rust" which compleately block all users which use 32/64-bit windows for ALL processors
cc @volovyk-s @ilblackdragon
sure, we are currently working on the new release, will see to change the message to "Sorry, NEAR-SDK-AS is not supported in your system" by then.
Thanks for the heads up!
Sorry, NEAR-SDK-AS is not supported in your system
Why only NEAR-SDK-AS ? May be I don't understend something but workspaces::sandbox problem with M1 related to wasmer and affected to all sdks (AS, RS, JS) on M1 arch
@sametmollaoglu @MaxGraey the latest version of create-near-app
has just been released, which enables assemblyscript in Mac and Linux. Our tool does not have support for windows.
You can try it now using npx create-near-app
and that will download version 4.0.0.
I will clarify info about Windows support: you can use all our tools if you are in the Windows subsystem for Linux.