HaxeFoundation / HaxeFoundation/haxe
https hxcpp/neko
- Dominant language
- Haxe
- Stars
- 6.9k
- Forks
- 715
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 11
Description
I tried on haxe 3.4.7 with hxcpp and neko then installed more up to date but still no luck.
Please clarify if this works and details of setup I should run to check against.
```
haxe compile.hxml
Error : Could not load module std@socket_close__1
```
# Specific details of system setup:
- Haxe Compiler 4.0.0-preview.5+7eb789f
- hxcpp 4.0.4
- Mac osx 10.12.6
- hxssl version 3.0.0-alpha
# src/Main.hx
``` haxe
package;
import sys.*;
import haxe.Http;
#if neko
import neko.Lib;
#elseif cpp
import cpp.Lib;
#end
class Main {
static function main() { new Main(); }
// ( real url details removed but the test url works in browser )
var _apiKey ='' ;// _userName_'
var _password ='';//_password_';
var _shop ='';// shop url
var _resource ='';//_resource_;
public function new(){
Lib.print("test!\n");
var apiKey = _apiKey;
var password = _password;
var shop = _shop;
var resource = _resource;
var url = 'https://$apiKey:$password@$shop/admin/$resource.json';
var req = new Http( url );
req.onData = function( data ) Lib.print( 'first 100 bytes: '+ data.substr( 0, 100 ) + '\n' );
req.onError = function( error ) Lib.print( 'error: $error' + '\n');
req.request( true );
}
}
```
# compile.hxml
```
-cp src
-main Main
#-neko Main.n
-cpp out
-lib hxssl
#-lib curl
#-cmd neko Main.n
-cmd ./out/Main
```
Contributor guide
Assessment
This issue has not been assessed yet.