reach-sh / reach-lang

Reach: The Safest and Smartest DApp Programming Language
https://www.reach.sh
Apache License 2.0
581 stars 167 forks source link

Not able to import modules in versions after 0.1.13rc0 (f79282c4) #1576

Open jeapostrophe opened 1 year ago

jeapostrophe commented 1 year ago

Discussed in https://github.com/reach-sh/reach-lang/discussions/1569

Originally posted by **temptemp3** March 8, 2023 Good day. I am having issues compiling a reach program using modules in v0.1.13-rc.0 are later. I started with the latest version to date 0.1.13-rc.3 (88e48902) and worked my way back to the latest stable version 0.1.12. Reach version 0.1.12 works as expect. Here is what I am seeing on 0.1.13-rc.0 or later: 1) Compiling Command: `./reach compile --install-pkgs` Output: REACH_VERSION: f79282c4 reachc: git: readCreateProcessWithExitCode: exec: invalid argument (Bad file descriptor) reachc: error[RI0003]: Cannot install packages; did you mean to run with `--install-pkgs`? ./index.rsh:4:30:import from 4| import { api, view, events } from "@temptemp3/arc-72#arc-72-v0.1.13r0:index.rsh"; 2) Compiling with packages Command: `./reach compile --install-pkgs` Output: reachc: git: readCreateProcessWithExitCode: exec: invalid argument (Bad file descriptor) 2) Updating Command `./reach update ` Output: ``` Please stand-by...reach: HttpExceptionRequest Request { host = "docs.reach.sh" port = 443 secure = True requestHeaders = [] path = "/reach" queryString = "" method = "GET" proxy = Nothing rawBody = False redirectCount = 10 responseTimeout = ResponseTimeoutDefault requestVersion = HTTP/1.1 proxySecureMode = ProxySecureWithConnect } (InternalException (HandshakeFailed (Error_Protocol ("certificate has unknown CA",True,UnknownCa)))) ``` Here is the source code for the reach program. Not that I added an import line to an existing module. https://github.com/temptemp3/arc-72/blob/discussions/1569/index.rsh