openfl / lime

A foundational Haxe framework for cross-platform development
https://lime.openfl.org/
MIT License
761 stars 376 forks source link

Problem of lime test windows #1649

Closed lez26 closed 1 year ago

lez26 commented 1 year ago

Warning: Lime version C:\Users\username\Documents\fridaynightfunkin\lime-develop\tests\runtime\test\lime may not be compatible with OpenFL 9.0.2 (expected version 7.7.*) Use before to include a specific version Warning: Could not find template file: cpp/hxml Error: Could not process argument export/release/windows/haxe/release.hxml (file not found) Invalid character: /

Sorry if my English is incorrect. I tried searching for it, but nothing came up. I tried many different ways but they were no meaning.

Version is lime 7.8.0, haxe 4.1.5 , Open FL 9.0.2 now.

joshtynjala commented 1 year ago

It looks like you might have used haxelib dev to configure a local version of Lime checked out from Github. I suspect that this path is incorrect: C:\Users\username\Documents\fridaynightfunkin\lime-develop\tests\runtime\test\lime

You probably meant to use this path instead: C:\Users\username\Documents\fridaynightfunkin\lime-develop

lez26 commented 1 year ago

What should I do?

joshtynjala commented 1 year ago

Try this:

haxelib dev lime C:\Users\username\Documents\fridaynightfunkin\lime-develop

Alternatively, if you'd prefer to use Lime 7.8.0 from Haxelib, clear the dev version and make sure 7.8.0 is the installed version:

haxelib dev lime
haxelib install lime 7.8.0
lez26 commented 1 year ago

Documents\fridaynightfunkin\lime-develop does not exist I was deleting files.but the error does not disappear. I have already lime version 7.8.0 installed.

lez26 commented 1 year ago

It's strange that even though I deleted the file, the error still persists.

player-03 commented 1 year ago

Try haxelib set lime 7.8.0 to switch back to the installed version.

joshtynjala commented 1 year ago

Documents\fridaynightfunkin\lime-develop does not exist

You still need to run haxelib dev lime to clear the old path, even if you deleted it:

haxelib dev lime
lez26 commented 1 year ago

I tried it ,but the error does not disappear.

joshtynjala commented 1 year ago

Do you still get these warnings too?

Warning: Lime version C:\Users\username\Documents\fridaynightfunkin\lime-develop\tests\runtime\test\lime may not be compatible with OpenFL 9.0.2 (expected version 7.7.*) Use before to include a specific version Warning: Could not find template file: cpp/hxml

Or just the error?

Error: Could not process argument export/release/windows/haxe/release.hxml (file not found) Invalid character: /

lez26 commented 1 year ago

Warning: Lime version C:\Users\username\Documents\fridaynightfunkin\lime-develop\tests\runtime\test\lime may not be compatible with OpenFL 9.0.2 (expected version 7.7.*) Use before to include a specific version Warning: Could not find template file: cpp/hxml Error: Could not process argument export/release/windows/haxe/release.hxml (file not found) Invalid character: /

This one

joshtynjala commented 1 year ago

To be honest, it might just be easiest for you to uninstall Haxe and start fresh.

lez26 commented 1 year ago

Sorry, I tried again and again , but the error doesn't disappear. What else can I do?

player-03 commented 1 year ago

Gather some information. What shows up when you try haxelib path lime? Also, please post your project.xml file so we can see how Lime is being imported.

lez26 commented 1 year ago

<?xml version="1.0" encoding="utf-8"?>

lez26 commented 1 year ago

C:\Users\username>haxelib path lime -L C:\HaxeToolkit\haxe\lib\lime/7,8,0/ndll/ --macro lime._internal.macros.DefineMacro.run() C:\HaxeToolkit\haxe\lib\lime/7,8,0/src/ -D lime=7.8.0

joshtynjala commented 1 year ago

It just doesn't make any sense to me for you to get a warning about C:\Users\username\Documents\fridaynightfunkin\lime-develop\tests\runtime\test\lime when haxelib path lime returns C:\HaxeToolkit\haxe\lib\lime/7,8,0/.

lez26 commented 1 year ago

But the error does not disappear. It's strange.

C:\Users\username>haxelib path lime -L C:\HaxeToolkit\haxe\lib\lime/7,8,0/ndll/ --macro lime._internal.macros.DefineMacro.run() C:\HaxeToolkit\haxe\lib\lime/7,8,0/src/ -D lime=7.8.0

joshtynjala commented 1 year ago

Which command are you using to build the project? Something like this? (it might be lime instead of openfl... either one is fine)

openfl build windows

You could try adding -clean at the end. This will ensure that anything cached in your project directory might not be causing a conflict.

openfl build windows -clean
lez26 commented 1 year ago

Sorry,I couldn’t it. the error doesn't disappear.

C:\Users\username\Documents\fridaynightfunkin\Kade-Engine-1.5.4\Kade-Engine-1.5.4>openfl build windows -clean Warning: Lime version C:\Users\username\Documents\fridaynightfunkin\lime-develop\tests\runtime\test\lime may not be compatible with OpenFL 9.0.2 (expected version 7.7.*) Use before to include a specific version Warning: Could not find template file: cpp/hxml Error: Could not process argument export/release/windows/haxe/release.hxml (file not found) Invalid character: /

lez26 commented 1 year ago

I'm using lime command.

player-03 commented 1 year ago

Ok, let's leave this project aside for a moment and try a Hello World project.

cd C:\Users\username\Documents
flixel tpl -n "HelloWorld"
cd HelloWorld
lime test neko

(Replace username with your name, of course.)

If that doesn't work, let's back up even further and try an OpenFL sample.

haxelib install openfl-samples
cd C:\Users\username\Documents
openfl create DisplayingABitmap
cd DisplayingABitmap
lime test neko
lez26 commented 1 year ago

C:\Users\username\Documents\DisplayingABitmap>lime test neko Warning: Lime version C:\Users\username\Documents\fridaynightfunkin\lime-develop\tests\runtime\test\lime may not be compatible with OpenFL 9.0.2 (expected version 7.7.*) Use before to include a specific version Warning: Could not find template file: neko/hxml Error: Could not process argument Export/neko/haxe/release.hxml (file not found) Package name must start with a lowercase letter

What should I do

lez26 commented 1 year ago

C:\Users\username\Documents\fridaynightfunkin\Kade-Engine-1.5.4\Kade-Engine-1.5.4>flixel tpl -n "HelloWorld" Copying template files... Adding project files for Visual Studio Code (can be changed with "flixel setup")...

player-03 commented 1 year ago

Yeah, something fundamental is definitely broken. Let's try to figure out what.

First, try lime --version. If that fails, we have our culprit. Otherwise, try lime display neko in the DisplayingABitmap folder.

lez26 commented 1 year ago

C:\Users\username\Documents\fridaynightfunkin\Funkin-master>lime display neko Warning: Lime version C:\Users\username\Documents\fridaynightfunkin\lime-develop\tests\runtime\test\lime may not be compatible with OpenFL 9.0.2 (expected version 7.7.*) Use before to include a specific version

-cp C:/HaxeToolkit/haxe/lib/flixel/5,2,2 -D flixel=5.2.2 --macro openfl._internal.ExtraParams.include() -cp C:/HaxeToolkit/haxe/lib/openfl/9,0,2/lib -D openfl=9.0.2 -cp C:/HaxeToolkit/haxe/lib/flixel-addons/git -D flixel-addons=3.0.2 --macro keep('IntIterator') -cp C:/HaxeToolkit/haxe/lib/hscript/2,5,0 -D hscript=2.5.0 -cp C:/HaxeToolkit/haxe/lib/flixel-ui/2,5,0 -D flixel-ui=2.5.0 -cp C:/HaxeToolkit/haxe/lib/polymod/git -D polymod=1.7.0 -D thx_semver -cp C:/HaxeToolkit/haxe/lib/thx,semver/0,2,2/src -D thx.semver=0.2.2 -cp C:/HaxeToolkit/haxe/lib/newgrounds/2,0,1/lib/Source -D newgrounds=2.0.1 -cp source -cp C:/HaxeToolkit/haxe/lib/openfl/9,0,2/packages/application/src -cp C:/HaxeToolkit/haxe/lib/openfl/9,0,2/packages/assets/src -cp C:/HaxeToolkit/haxe/lib/openfl/9,0,2/packages/bitmapdata/src -cp C:/HaxeToolkit/haxe/lib/openfl/9,0,2/packages/displayobject/src -cp C:/HaxeToolkit/haxe/lib/openfl/9,0,2/packages/errors/src -cp C:/HaxeToolkit/haxe/lib/openfl/9,0,2/packages/eventdispatcher/src -cp C:/HaxeToolkit/haxe/lib/openfl/9,0,2/packages/externalinterface/src -cp C:/HaxeToolkit/haxe/lib/openfl/9,0,2/packages/filereference/src -cp C:/HaxeToolkit/haxe/lib/openfl/9,0,2/packages/filters/src -cp C:/HaxeToolkit/haxe/lib/openfl/9,0,2/packages/geom/src -cp C:/HaxeToolkit/haxe/lib/openfl/9,0,2/packages/graphics/src -cp C:/HaxeToolkit/haxe/lib/openfl/9,0,2/packages/input/src -cp C:/HaxeToolkit/haxe/lib/openfl/9,0,2/packages/loader/src -cp C:/HaxeToolkit/haxe/lib/openfl/9,0,2/packages/movieclip/src -cp C:/HaxeToolkit/haxe/lib/openfl/9,0,2/packages/printing/src -cp C:/HaxeToolkit/haxe/lib/openfl/9,0,2/packages/renderer-cairo/src -cp C:/HaxeToolkit/haxe/lib/openfl/9,0,2/packages/renderer-canvas/src -cp C:/HaxeToolkit/haxe/lib/openfl/9,0,2/packages/renderer-core/src -cp C:/HaxeToolkit/haxe/lib/openfl/9,0,2/packages/renderer-dom/src -cp C:/HaxeToolkit/haxe/lib/openfl/9,0,2/packages/renderer-flash/src -cp C:/HaxeToolkit/haxe/lib/openfl/9,0,2/packages/renderer-stage3d/src -cp C:/HaxeToolkit/haxe/lib/openfl/9,0,2/packages/security/src -cp C:/HaxeToolkit/haxe/lib/openfl/9,0,2/packages/sensors/src -cp C:/HaxeToolkit/haxe/lib/openfl/9,0,2/packages/shader/src -cp C:/HaxeToolkit/haxe/lib/openfl/9,0,2/packages/sharedobject/src -cp C:/HaxeToolkit/haxe/lib/openfl/9,0,2/packages/socket/src -cp C:/HaxeToolkit/haxe/lib/openfl/9,0,2/packages/sound/src -cp C:/HaxeToolkit/haxe/lib/openfl/9,0,2/packages/stage/src -cp C:/HaxeToolkit/haxe/lib/openfl/9,0,2/packages/stage3d/src -cp C:/HaxeToolkit/haxe/lib/openfl/9,0,2/packages/system/src -cp C:/HaxeToolkit/haxe/lib/openfl/9,0,2/packages/telemetry/src -cp C:/HaxeToolkit/haxe/lib/openfl/9,0,2/packages/textfield/src -cp C:/HaxeToolkit/haxe/lib/openfl/9,0,2/packages/tilemap/src -cp C:/HaxeToolkit/haxe/lib/openfl/9,0,2/packages/urlloader/src -cp C:/HaxeToolkit/haxe/lib/openfl/9,0,2/packages/urlrequest/src -cp C:/HaxeToolkit/haxe/lib/openfl/9,0,2/packages/urlstream/src -cp C:/HaxeToolkit/haxe/lib/openfl/9,0,2/packages/utils/src -cp C:/HaxeToolkit/haxe/lib/openfl/9,0,2/packages/video/src -D PRELOAD_ALL -D FLX_NO_FOCUS_LOST_SCREEN -D tools=7.8.0 -D NAPE_NO_INLINE -D FLX_NO_DEBUG -D NAPE_RELEASE_BUILD -D native -D openfl-native -D CAN_OPENLINKS -D windows -D desktop --remap flash:openfl --macro flixel.system.macros.FlxDefines.run() Main -neko .n --no-output

player-03 commented 1 year ago

Hmm. There's no -D for Lime. I wonder, does echo %lime% print anything?

lez26 commented 1 year ago

C:\Users\username\Documents\fridaynightfunkin\Funkin-master>echo %lime% C:\Users\username\Documents\fridaynightfunkin\lime-develop\tests\runtime\test\lime

player-03 commented 1 year ago

That would do it. You've got an environment variable named "lime" pointing to this folder that doesn't exist. You'll need to get rid of that.

lez26 commented 1 year ago

Thank you,The error has changed! C:\Users\username\Documents\fridaynightfunkin\Kade-Engine-1.5.4\Kade-Engine-1.5.4>lime test windows source/Main.hx:80: characters 59-63 : Float should be Int source/Main.hx:80: characters 59-63 : For optional function argument 'updateFramerate' source/StoryMenuState.hx:31: characters 11-12 : Expected ]

player-03 commented 1 year ago

Does DisplayingABitmap work now? Let's confirm the basics before tackling the big projects.

lez26 commented 1 year ago

DisplayingABitmap works now! but The screen has frozen

player-03 commented 1 year ago

If you just mean DisplayingABitmap doesn't have anything moving, that's normal. It's just an unmoving image in the middle of the stage.

If your whole computer froze, restart I guess?

lez26 commented 1 year ago

It was right!

player-03 commented 1 year ago

Ok, no worries. DisplayingABitmap was just to confirm that you can compile at all. Since that's done, you can delete that folder and the HelloWorld folder.

As for the errors in Kade-Engine-1.5.4, those tell you what's wrong.

If you install the Haxe and Lime extensions for VS Code, it will underline the errors to make them easier to find.

lez26 commented 1 year ago

Build succeeded. thank you so much!!