Cannot open project

Hello

I have a project I cannot open anymore.

The Defold logs contain this stacktrace:

2025-10-21 08:58:12.172 7794 [JavaFX Application Thread] ERROR editor.error-reporting - {:line 115, :ex-data {:node-type #internal.node.NodeTypeRef{:k :editor.code.script/ScriptNode}, :proj-path “/.devbox/nix/profile/default-2-link/etc/luarocks/config-5.2.lua”}}
clojure.lang.ExceptionInfo: Error when reading resource ‘/.devbox/nix/profile/default-2-link/etc/luarocks/config-5.2.lua’
at editor.defold_project$read_node_load_info$fn__41389.invoke(defold_project.clj:155)
at editor.defold_project$read_node_load_info.invokeStatic(defold_project.clj:143)
at editor.defold_project$read_node_load_infos$fn__41448.invokePrim(defold_project.clj:337)
at editor.defold_project$read_node_load_infos$fn__41448.invoke(defold_project.clj)
at clojure.core$map_indexed$fn__8676$fn__8677.invoke(core.clj:7490)
at clojure.lang.PersistentVector.reduce(PersistentVector.java:418)
at clojure.core$transduce.invokeStatic(core.clj:7025)
at clojure.core$into.invokeStatic(core.clj:7042)
at editor.defold_project$read_node_load_infos.invokeStatic(defold_project.clj:326)
at editor.defold_project$read_nodes.invokeStatic(defold_project.clj:597)
at editor.defold_project$load_project_BANG_.invokeStatic(defold_project.clj:956)
at editor.defold_project$load_project_BANG_.invoke(defold_project.clj:926)
at editor.defold_project$load_project_BANG_.invokeStatic(defold_project.clj:930)
at editor.defold_project$open_project_BANG_.invokeStatic(defold_project.clj:1864)
at editor.boot_open_project$open_project_BANG_.invokeStatic(boot_open_project.clj:387)
at editor.boot_open_project$open_project_BANG_.invoke(boot_open_project.clj:385)
at clojure.lang.AFn.applyToHelper(AFn.java:178)
at clojure.lang.AFn.applyTo(AFn.java:144)
at clojure.core$apply.invokeStatic(core.clj:667)
at editor.boot$open_project_with_progress_dialog$fn__116511.invoke(boot.clj:76)
at editor.dialogs$make_load_project_dialog$fn__32226$fn__32229.invoke(dialogs.clj:447)
at clojure.core$binding_conveyor_fn$fn__5842.invoke(core.clj:2047)
at clojure.lang.AFn.call(AFn.java:18)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: java.lang.AssertionError: Assert failed: (and (not= :folder (resource/source-type resource)) (resource/exists? resource))
at editor.defold_project$read_node_load_info$fn__41389.invoke(defold_project.clj:146)
… 26 common frames omitted

However I don’t find any reference to “/.devbox/nix/profile/default-2-link/etc/luarocks/config-5.2.lua” in the project.

What could I do?

I’m able to open it after cloning the project in another directory. However I’d like to understand what lead to this, because it’s the second project I have with this kind of issue.

I suspect .devbox might be a hidden directory inside your project folder, possibly created by this utility: Devbox: Portable, Isolated Dev Environments

The contents of the project directory is continuously scanned by the editor, so if you put stuff in there unknown to the editor you could run into issues. You should add a .defignore pattern for the .devbox directory to avoid issues:

2 Likes

I used devbox indeed. I didn’t know the .defignore file, I’ll use that.

Thanks for your help!