Luxe - "Type not found : UserConfigDef" after updating - game-engine

I've just updated Haxe, Luxe, Hxcpp, etc. on Windows after not using them for a while, and now none of my projects will compile, not even the "empty" sample. I get the following in cmd:
C:\GAMEDEV\empty>haxelib run flow run
flow / 1.0.0-alpha.2 (node.js v0.12.7)
flow / target is windows ( arch 32 )
flow / haxe version 3.3.0
flow / build - empty 1.0.0 for windows
flow / build - running haxe ...
C:\HaxeToolkit\haxe\lib\snow\git\snow/types/Types.hx:72: characters 25-38 : Type
not found : UserConfigDef
C:\GAMEDEV\empty>
Same error when building from Sublime package. Is it possible that I've broken something? Should I attempt to completely reinstall?

It seems that Luxe is not compatible with Haxe 3.3.0-rc1 yet - there is an open issue about it on GitHub. Try downgrading to Haxe 3.2.1.
You may also need to downgrade hxcpp to 3.2.205 if you run into any cpp compilation issues.

Related

Can't get kotlin "hello world" example to Run in intelliJ

I'm following the intelliJ IDEA tutorial titled Create your first Kotlin application
(Last modified: 08 March 2021). Here are the various versions I'm using:
~$ java -version
java version "16" 2021-03-16
Java(TM) SE Runtime Environment (build 16+36-2231)
Java HotSpot(TM) 64-Bit Server VM (build 16+36-2231, mixed mode, sharing)
~$ javac -version
javac 16
Here's my code:
fun main(args: Array<String>) {
println("What is your name?")
val name = readLine()
println("Hello $name")
}
Here's what my project structure looks like:
I notice that it says "Kotlin not configured" above my code, but when I go to Tools > Kotlin > Configure Kotlin in Project, I get
:
In the Event Log pane, I see this:
4/15/21
1:54 PM Download pre-built shared indexes
Reduce the indexing time and CPU load with pre-built JDK shared indexes
Always download
Download once
Don't show again
Configure...
1:54 PM Gradle sync started
1:54 PM Gradle sync failed: Unsupported class file major version 60 (5 s 329 ms)
1:55 PM No IDE or plugin updates available
In the Problems(?) pane, I see this:
Unresolved reference: println
Unresolved reference: readLine
Unresolved reference: println
Parameter 'args' is never used
Package directive doesn't match file location
Any ideas on why the basic functions in my program are not recognized?
Thanks for looking!
Edit: I tried downloading JDK 15 and specifying that in my Project Structure, but I got the same results:
try build>clean project.
As for your unresolved references, you can double-click/left-click > show context options. If that doesn't work then maybe reinstall InteliJ Idea or download Android Studio which has a lot more support on google and yt.
Okay, I got it working. I'll try to figure out what I did.
tldr; I had to switch from JDK 16 to JDK 15 to get my hello world console application to run.
First, when I was setting up the project, I chose the wrong Project Template: I selected JVM - Application rather than JVM - Console Application. This is what I needed to do:
So, I started a new project, chose the right template, and I typed in my code, and I noticed a Build pane at the bottom left displayed:
I tried Build > Build Project, and nothing changed. So, I tried the Run menu item: the first section of the Run menu was grayed out, but there was another Run command in the second section of the Run menu. I selected that Run, and a little window popped up with the following:
Run
0 Edit Configurations
The "0 Edit Configurations" line was highlighted, and I got nowhere trying to figure out how to Run my code.
So, I started yet another new project, and this time I selected a different JDK, version 15:
After clicking Next, then Finish, I typed in my code, and this time the Build pane looked like the following (without me doing anything but typing in my code):
After I finished typing in my code, as the tutorial described, this time there was a little green arrow in the gutter:
When I clicked on the green arrow in the gutter, I could successfully Run my program.
So, it appears that you cannot use JDK 16, and you have to use JDK 15. intelliJ was able to detect all my installed Java versions, so any version you have installed should appear as a choice in the the project settings. You may have to quit intelliJ, then restart intelliJ after you install JDK 15 in order to see it listed as a choice under Project JDK: when you create a project.

solc.exe - Application Error The application was unable to start correctly

Solidity compiler is not working on Win 7 Enterprise (64-bit) SP1.
It was downloaded from https://github.com/ethereum/solidity/releases
Version 0.4.19 (solidity-windows.zip)
solc --version
Error : solc.exe - Application Error
The application was unable to start correctly (0x...). Click OK to close the application.
Content of solidity-windows folder :
<DIR> .
<DIR> ..
440,120 msvcp140.dll
6,201,344 solc.exe
16,123,392 soltest.exe
Seems answer is located here : https://ethereum.stackexchange.com/questions/11081/install-solc-compiler-on-windows-8
So either MS Visual Studio needs to be installed (suggested 2015) or JS script needs to be written (using Node.js solc module)
The remaining concern is that MS Visual Studio is too huge for installation for resolving mentioned issue. Is anyone aware what exact software component(s) from MS Visual Studio are needed? And described solution with JS script returns errors for the contracts which have import statements.
>node compileWithoutInstalledMSStudio -f file1.sol
Solc version : 0.4.19+commit.c4cbbb05.Emscripten.clang
Read file : ../solidity/file1.sol
COMPILATION ERROR :
:4:1: ParserError: Source "file2.sol" not found: File not supplied initially.
import "./file2.sol";
^----------------------------^

How to debug Haxe using IntelliJ IDEA?

I'm trying to debug a Haxe application with cpp target using IntelliJ IDEA.
Every time i got same error while trying to run debug on it:
"You can debug only flash or HXCPP targets"
I have a basic HelloWorld project setup with the Haxe compiler and the C++ target (setup).
I'm using latest plugin for Haxe (0.9.10) and hxcpp-debugger with old protocol version (as mentioned in haxe plugin description). Tried this on IDEA14, 15 & 2016.
All guides that I found to make it work looks outdated.
the closest i found is this video https://www.youtube.com/watch?v=6JjgOrEXcQc - it uses openfl, but if you look at the logging window, it outputs a command : haxelib run hxcpp Build.xml haxe -Ddebug -DHXCPP -Dcpp -Ddebug -Ddesktop -Dhaxe_208 -Dhaxe_209 -Dhaxe_210 -Dhxcpp -Dnme -Dnme_install_tool -Dsys -Dtrue -Dwindows. You'd have to make your build run that same command if you're not using openfl to build.
The code must also create a debug socket server somewhere in your main method:
new DebugSocket("127.0.0.1", 65333, true)

selenium2 for composer install facing with phalcon/incubator error in PHP

I am using window command prompt,When I update composer facing with below error
C:\xampp\htdocs\myproject>composer update
Warning: This development build of composer is over 60 days old. It is recommend
ed to update it by running "C:\ProgramData\ComposerSetup\bin\composer.phar self-
update" to get the latest version.
Loading composer repositories with package information
Updating dependencies (including require-dev)
Failed to decode response: zlib_decode(): data error
Retrying with degraded mode, check https://getcomposer.org/doc/articles/troubles
hooting.md#degraded-mode for more info
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for phalcon/incubator dev-master -> satisfiable by ph
alcon/incubator[dev-master].
- phalcon/incubator dev-master requires ext-phalcon >=2.0.4 -> the requested
PHP extension phalcon is missing from your system.
The last line should give you a clue: You haven't yet installed PhalconPHP on your system, which is required by the Incubator package.
Also, run a composer self-update as recommended.

Flash Builder - Platform conversion failed error during release build

This is a very annoying problem while generating release build files. Here is the steps I did while building:
Select Project > Export Release Build
Select Signed Native Installer
Import certificate
Click Next.
I always got the following error:
https://forums.adobe.com/servlet/JiveServlet/showImage/2-6524012-651585/build_error.png
Platform conversion failed. Process exited with error 5. Output was
"[ErrorEvent type="error" bubbles=false cancelable=false eventPhase=2
text="Unhandled exception Error: EndUpdateResource: Windows Error #5"
errorID=0]
I have the following setup:
OS: Windows 8.1
System type: 64-bit
Flash Builder Version: 4.6 Premium
Installed FB: FlashBuilder_4_6_LS10.exe
Please help. This is giving me a lot of headaches for a couple of days now.
Additionally, here's the stack trace:
java.io.IOException: Platform conversion failed. Process exited with
error 5. Output was "[ErrorEvent type="error" bubbles=false
cancelable=false eventPhase=2 text="Unhandled exception Error:
EndUpdateResource: Windows Error #5" errorID=0] " at
com.adobe.air.nai.NativePackager.conversionFail(NativePackager.java:222)
at
com.adobe.air.nai.NativePackager.invokePlatformConversion(NativePackager.java:203)
at
com.adobe.air.nai.NativePackager.createPackage(NativePackager.java:92)
at
com.adobe.flexbuilder.multisdk.apollo.export.AIRNativeInstallerPackager.create(AIRNativeI
nstallerPackager.java:129) at
com.adobe.flexbuilder.exportimport.releaseversion.ExportReleaseVersionManager.doExport(Ex
portReleaseVersionManager.java:586) at
com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportReleaseVersionWizard$1.run(Exp
ortReleaseVersionWizard.java:208)
I also suspect this is because of the following settings:
Eclipse.ini
https://forums.adobe.com/servlet/JiveServlet/showImage/2-6525217-651726/eclipse.png
...
-startup plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher_library plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20110502.jar
...
Notice that the plugin used is not intended for x64 processors.
#ActionScript3030 is correct, for anyone finding this later on, if you re-link your Library Paths (even if they look correct) this should rectify your issue.
The issue is caused by the links not being able to resolve to their GUID counterparts in your AppData/Local folder. This happens quite commonly when you create a new user profile and try to copy over your old user profiles information.
I already figured this out. I created a virtual machine with windows 7 32bit operating system and I'm happy now :)
If you initially created your project on a different system then try to compile it in another system, the class source and swc paths may not match. These paths could be there but not being implemented in code, so you will not get any run time errors while debugging, but it will give you the error 5 during compilation.
Solution:
Remove the idle paths not directly in use in your code. You can identify them by simply checking the path.
Found the same issue when trying to use Microsoft Essential Security on my Windows 7 x32. When i uinstall it - problem gone. So try to check your firewall settings if stucking the same problem.
Just to add an alternative solution (I'm on an x64 Windows and want to keep build exported for x64), in my case the error popped up when building the project with the AIR SDK defined in the app.xml (an older one, 3.9) and went away when I explicitly used a newer SDK (19).
(Disclaimer: I used the command line adt tool from the SDK to build, not Flash Builder).
A little late, but might possibly help someone.
I had the same error recently with FlashDevelop. Figured out that the my path was too long. When I renamed some long folder and file names, the error disappeared.
Try to disable UAC on Windows 8. Change it to "Never notify". The problem