Removed haxe, neko, the haxelib folder. Did a fresh install of everything. Same problem. Can’t help but think its an environment variable problem, but don’t know what or where to look.
The plain openfl command on its own runs fine:
C:\Users\Markavian\Work\Local\project\code>openfl
.d88 88b. 888888b 888
d88P" "Y88b 888 888
888 888 888 888
888 888 88888b. .d88b. 88888b. 8888888 888
888 888 888 "88b d8P Y8b 888 "88b 888 888
888 888 888 888 88888888 888 888 888 888
Y88b. .d88P 888 d88P Y8b. 888 888 888 888
"Y88 88P" 88888P" "Y8888 888 888 888 "Y888P
888
888
OpenFL Command-Line Tools (3.6.1-LQBZc4)
Use openfl setup to configure platforms or openfl help for more commands
Use -Dv2 or -Dlegacy with your commands to use OpenFL 2.x legacy mode
I’ve got openfl working with the DisplayingABitmap example from a separate Windows 10 machine, and also by switching user accounts on the problem machine. This would seems to confirm my theory that its an environment variable problem. I’ve ran env from the command line, but the pertinent Haxe variables seem to be identical.
Error: Could not find haxelib "openfl", does it need to be installed?
haxelib run openfl setup
Returned:
lime is up to date
hxcpp is up to date
lime-samples is up to date
openfl-samples is up to date
actuate is up to date
box2d is up to date
layout is up to date
swf is up to date
I think the haxe and haxelib installations are probably fine, but something is interfering with openfl.
In your haxe/lib/openfl folder there should be a file called .current. Check that the version number in this file also has a matching folder in the same directory. The folder will be named with commas instead of dots.