davidanthoff / Electron.jl

Julia wrapper for Electron
Other
86 stars 19 forks source link

Cannot load application on Windows (julia 1.6.0) #90

Closed IanButterworth closed 3 years ago

IanButterworth commented 3 years ago

I've seen this on two different Windows 10 systems. This one is a Parallels VM, the other was a native Windows desktop.

julia> versioninfo()
Julia Version 1.6.0
Commit f9720dc2eb (2021-03-24 12:55 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-11.0.1 (ORCJIT, skylake)

julia> using Electron, URIParser

julia> app = Application()
ERROR: IOError: could not spawn `'C:\Users\ian\.julia\artifacts\aaa4041dbb1e073d9d1491a285929d6ce1b0e46a\electron.exe' 'C:\Users\ian\.julia\packages\Electron\MGZPz\src\main.js' '\\.\pipe\jlel-0ff13eb0901a11eb2d1c990936ef7fbd' '\\.\pipe\jlel-sn-0ff13eb0901a11eb3bf7c13ad396f6e1' RNlNAu3YsIw71qQp6H+XE28kdfD5hvOngZiuoWT/t7rSCtq8utTUG7tqy/qlgHFoSxGU16D4IJ/W+y4yFyJM9+FRK1qaeLeMVvQ+erDLdvh9JckkV4UMGmIfJnJR1weULus4kwryKY7RO37FHFIiksAH6vbr0M4fOjZMYOgsea8=`: permission denied (EACCES)
Stacktrace:
 [1] _spawn_primitive(file::String, cmd::Cmd, stdio::Vector{Any})
   @ Base .\process.jl:99
 [2] #637
   @ .\process.jl:112 [inlined]
 [3] setup_stdios(f::Base.var"#637#638"{Cmd}, stdios::Vector{Any})
   @ Base .\process.jl:196
 [4] _spawn
   @ .\process.jl:111 [inlined]
 [5] open(cmds::Cmd, stdio::Base.TTY; write::Bool, read::Bool)
   @ Base .\process.jl:374
 [6] open(cmds::Cmd, mode::String, stdio::Base.TTY)
   @ Base .\process.jl:343
 [7] Application()
   @ Electron ~\.julia\packages\Electron\MGZPz\src\Electron.jl:148
 [8] top-level scope
   @ REPL[7]:1
davidanthoff commented 3 years ago

Yes, the package manager on 1.6 is doing some (in my opinion) really unfortunate non-standard things with file permissions on Windows... I've updated the artifact so that this should be solved, but in my mind the root problem is that the package manager is now messing in a way with file permissions that is really not appropriate on Windows...

IanButterworth commented 3 years ago

Thanks. Out of interest is there an issue tracking the Pkg permissions issues?

davidanthoff commented 3 years ago

https://github.com/JuliaLang/Pkg.jl/issues/2483