davidanthoff / Electron.jl

Julia wrapper for Electron
Other
85 stars 19 forks source link

Add support for M1 Macs #103

Closed Xergon-sci closed 2 years ago

Xergon-sci commented 2 years ago

I tried installing blink on an M1 Mac, and I got the error below in return. I followed the trace and it seems the download of electron for M1 Macs is not configured.

@davidanthoff I cannot help with configuring the artifact but are we allowed to contribute to this package?

[ Info: Precompiling Electron [a1bb12fb-d4d1-54b4-b10a-ee7951ef7ad3]
ERROR: LoadError: Cannot locate artifact 'electronjs_app' for aarch64-apple-darwin-libgfortran5-cxx11-julia_version+1.7.1 in '/Users/michiel/.julia/packages/Electron/ILvWR/Artifacts.toml'
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:33
  [2] artifact_slash_lookup(name::String, artifact_dict::Dict{String, Any}, artifacts_toml::String, platform::Base.BinaryPlatforms.Platform)
    @ Artifacts /Applications/Julia-1.7.app/Contents/Resources/julia/share/julia/stdlib/v1.7/Artifacts/src/Artifacts.jl:608
  [3] var"@artifact_str"(__source__::LineNumberNode, __module__::Module, name::Any, platform::Nothing)
    @ Artifacts /Applications/Julia-1.7.app/Contents/Resources/julia/share/julia/stdlib/v1.7/Artifacts/src/Artifacts.jl:678
  [4] var"@artifact_str"(__source__::LineNumberNode, __module__::Module, name::Any)
    @ Artifacts /Applications/Julia-1.7.app/Contents/Resources/julia/share/julia/stdlib/v1.7/Artifacts/src/Artifacts.jl:641
  [5] include
    @ ./Base.jl:418 [inlined]
  [6] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::String)
    @ Base ./loading.jl:1318
  [7] top-level scope
    @ none:1
  [8] eval
    @ ./boot.jl:373 [inlined]
  [9] eval(x::Expr)
    @ Base.MainInclude ./client.jl:453
 [10] top-level scope
    @ none:1
in expression starting at /Users/michiel/.julia/packages/Electron/ILvWR/src/Electron.jl:9
in expression starting at /Users/michiel/.julia/packages/Electron/ILvWR/src/Electron.jl:1
ERROR: LoadError: Failed to precompile Electron [a1bb12fb-d4d1-54b4-b10a-ee7951ef7ad3] to /Users/michiel/.julia/compiled/v1.7/Electron/jl_daCpPG.
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:33
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, ignore_loaded_modules::Bool)
    @ Base ./loading.jl:1466
  [3] compilecache(pkg::Base.PkgId, path::String)
    @ Base ./loading.jl:1410
  [4] _require(pkg::Base.PkgId)
    @ Base ./loading.jl:1120
  [5] require(uuidkey::Base.PkgId)
    @ Base ./loading.jl:1013
  [6] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:997
  [7] eval
    @ ./boot.jl:373 [inlined]
  [8] include_string(mapexpr::typeof(identity), mod::Module, code::String, filename::String)
    @ Base ./loading.jl:1196
  [9] include_string(m::Module, txt::String, fname::String)
    @ Base ./loading.jl:1206
 [10] invokelatest(::Any, ::Any, ::Vararg{Any}; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Base ./essentials.jl:716
 [11] invokelatest(::Any, ::Any, ::Vararg{Any})
    @ Base ./essentials.jl:714
 [12] inlineeval(m::Module, code::String, code_line::Int64, code_column::Int64, file::String; softscope::Bool)
    @ VSCodeServer ~/.vscode/extensions/julialang.language-julia-1.5.10/scripts/packages/VSCodeServer/src/eval.jl:211
 [13] (::VSCodeServer.var"#60#64"{Bool, Bool, Module, String, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams})()
    @ VSCodeServer ~/.vscode/extensions/julialang.language-julia-1.5.10/scripts/packages/VSCodeServer/src/eval.jl:155
 [14] withpath(f::VSCodeServer.var"#60#64"{Bool, Bool, Module, String, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams}, path::String)
    @ VSCodeServer ~/.vscode/extensions/julialang.language-julia-1.5.10/scripts/packages/VSCodeServer/src/repl.jl:185
 [15] (::VSCodeServer.var"#59#63"{Bool, Bool, Bool, Module, String, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams})()
    @ VSCodeServer ~/.vscode/extensions/julialang.language-julia-1.5.10/scripts/packages/VSCodeServer/src/eval.jl:153
 [16] hideprompt(f::VSCodeServer.var"#59#63"{Bool, Bool, Bool, Module, String, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams})
    @ VSCodeServer ~/.vscode/extensions/julialang.language-julia-1.5.10/scripts/packages/VSCodeServer/src/repl.jl:36
 [17] (::VSCodeServer.var"#58#62"{Bool, Bool, Bool, Module, String, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams})()
    @ VSCodeServer ~/.vscode/extensions/julialang.language-julia-1.5.10/scripts/packages/VSCodeServer/src/eval.jl:124
 [18] with_logstate(f::Function, logstate::Any)
    @ Base.CoreLogging ./logging.jl:511
 [19] with_logger
    @ ./logging.jl:623 [inlined]
 [20] (::VSCodeServer.var"#57#61"{VSCodeServer.ReplRunCodeRequestParams})()
    @ VSCodeServer ~/.vscode/extensions/julialang.language-julia-1.5.10/scripts/packages/VSCodeServer/src/eval.jl:201
 [21] #invokelatest#2
    @ ./essentials.jl:716 [inlined]
 [22] invokelatest(::Any)
    @ Base ./essentials.jl:714
 [23] macro expansion
    @ ~/.vscode/extensions/julialang.language-julia-1.5.10/scripts/packages/VSCodeServer/src/eval.jl:34 [inlined]
 [24] (::VSCodeServer.var"#55#56")()
    @ VSCodeServer ./task.jl:423
in expression starting at /Users/michiel/Projecten/Duke/src/run.jl:2
AbhimanyuAryan commented 2 years ago

yes please. Thanks for reporting the error