-
Notifications
You must be signed in to change notification settings - Fork 570
Windows Issue: missing print/log output on Node 4.x with sourcemap support #341
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
You get no output at all? This is very strange, since there are no system calls involved here. Could you try a simple JS file with |
When did it stop working? When you upgraded Node.js or on some GopherJS version? |
// commandline sequence with Node 4.2.1: c:\Go\work\src\github.com\rusco\dummy>node -v c:\Go\work\src\github.com\rusco\dummy>type main.go // +build js
package main
import "github.com/gopherjs/gopherjs/js"
func log(i ...interface{}) {
js.Global.Get("console").Call("log", i...)
}
func main() {
print("print message")
log("log message")
} c:\Go\work\src\github.com\rusco\dummy>gopherjs build main.go c:\Go\work\src\github.com\rusco\dummy>node main.js c:\Go\work\src\github.com\rusco\dummy>gopherjs run main.go c:\Go\work\src\github.com\rusco\dummy>node
c:\Go\work\src\github.com\rusco\dummy> //Just for curiosity I downgraded node to v0.12.7 with sourcemap support and it looks the same. Unfortunately I have no clue since when this happend, but I suppose within the last 2 months. |
Please put a panic in there to see if the code is running at all. |
Looks like not. node main.js -> throws the exception |
Hmm that's strange. You could try 151315c. That's before the sourcemap change. |
Looks the same. Let's wait until some other windows user confirms this, I can live with running node manually. |
This may be resolved, as of #1111 , but it would be good to confirm. |
I get no output on Windows 7, 64 bit / Node 4.2.1 + sourcemap lib.
This is a pity, since it is very useful for quick and dirty prototyping.
It used to work without problems.
The text was updated successfully, but these errors were encountered: