So I added defsave and I get this error:
If I remove it, I don’t get this error. Any suggestions?
So I added defsave and I get this error:
If I remove it, I don’t get this error. Any suggestions?
Well I “fixed” it by rolling back to an older version of defsave. Maybe it’s a defsave issue.
Can you reproduce it by trying the newest version again?
I just tried it again. Same issue.
Does it say anything in the editor logs?
I attached my logs from today and yesterday. Not sure what it’s telling me though.
editor2.2024-09-19.zip (9.9 KB)
@schlista is it enough to have the dependency added to the project or are you also using it by calling any of the functions or requiring a module?
There is an exception in the log which is probably related:
java.nio.file.AccessDeniedException: D:\DefoldProjects\Rogue Craps\build\x86_64-win32
at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:89)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
at java.base/sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:275)
at java.base/sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:105)
at java.base/java.nio.file.Files.delete(Files.java:1152)
at editor.fs$fn__23334$fn__23335$fn__23336.invoke(fs.clj:188)
at editor.fs$fn__23334$fn__23335.invoke(fs.clj:188)
at editor.fs.proxy$java.nio.file.SimpleFileVisitor$ff19274a.postVisitDirectory(Unknown Source)
at java.base/java.nio.file.Files.walkFileTree(Files.java:2828)
at java.base/java.nio.file.Files.walkFileTree(Files.java:2882)
at editor.fs$do_delete_directory_BANG_.invokeStatic(fs.clj:196)
at editor.fs$delete_directory_BANG_.invokeStatic(fs.clj:209)
at editor.engine$install_engine_BANG_.invokeStatic(engine.clj:258)
at editor.app_view$launch_engine_BANG_.invokeStatic(app_view.clj:751)
at editor.app_view$launch_built_project_BANG_$launch_new_engine_BANG___64571.invoke(app_view.clj:815)
at editor.app_view$launch_built_project_BANG_.invokeStatic(app_view.clj:830)
at editor.app_view$run_with_debugger_BANG_$fn__64848.invoke(app_view.clj:1265)
at editor.app_view$async_build_BANG_$finish_with_result_BANG___64621.invoke(app_view.clj:1046)
at editor.app_view$async_build_BANG_$phase_6_await_lint_BANG___64623$process_lint_results_on_ui_thread_BANG___64626.invoke(app_view.clj:1086)
at editor.app_view$async_build_BANG_$run_on_background_thread_BANG___64615$fn__64616$fn__64617.invoke(app_view.clj:1028)
at clojure.lang.AFn.run(AFn.java:22)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:456)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:455)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:184)
at java.base/java.lang.Thread.run(Thread.java:833)
What if you don’t use the latest version and instead try this one:
I’d look more into the file access problem. Do you have anti virus that oerhaps is messing up your project folder?
I did turn off av for trading. Whenever I upgrade defold it checks it before allowing it to run. That’s probably what that error is. But once up and running no issues.
Yes I rolled back to an older version and it works fine.
Not sure if I had code in there before I got the error or if just the dependency added causes it. I’ll have to test that later if I need to upgrade to the latest version. But the older version works for me it appears. So I’ll take that as a win.