defold icon indicating copy to clipboard operation
defold copied to clipboard

Can't rename any files in projects

Open Zephyre3777 opened this issue 1 year ago • 5 comments

Expected behaviour

Rename file from previous to literally anything

Actual behaviour

error java.lang.AssertionError: Assert failed: (rename? resources)

Steps to reproduce

Current file i'm working in can't rename new file I created can't rename other project I have can't rename So reproduce by making blank file and trying to rename anything such as folder or any other file


Build time2024-03-27T13:02:44.527672
Defold channeleditor-alpha
Defold editor shad0338d13ad7c5ccd2be3208788805ef5010bf00b
Defold engine shabf4dc66ab5fbbafd4294d32c2797c08b630c0be5
Defold version1.7.0
Errorb3f17e9c19b14d88b5aecd59c58ee004
GPUMesa Intel(R) UHD Graphics 600 (GLK 2)
GPU Driver4.6 (Compatibility Profile) Mesa 23.2.1-1ubuntu3.1~22.04.2
Java version17.0.5+8
OS archamd64
OS nameLinux
OS version5.15.0-101-generic

Zephyre3777 avatar Apr 05 '24 03:04 Zephyre3777

Can you show a screen recording of how are you trying to rename a file?

vlaaad avatar Apr 05 '24 06:04 vlaaad

https://github.com/defold/defold/assets/113444425/9ce453b0-19c0-47ee-a6b1-96294a391a65

Zephyre3777 avatar Apr 05 '24 12:04 Zephyre3777

same issue here

Build time2024-04-18T09:42:58.626289
Defold channelbeta
Defold editor sha76c4e52a5b468726004445354f97d060d015b873
Defold engine sha76c4e52a5b468726004445354f97d060d015b873
Defold version1.8.0
Errorea768838de65404e90aa309854b4ab62
GPUMesa Intel(R) HD Graphics 620 (KBL GT2)
GPU Driver4.6 (Compatibility Profile) Mesa 23.3.5-1
Java version17.0.5+8
OS archamd64
OS nameLinux
OS version6.6.15-amd64

Screencast from 2024-04-18 23-45-13.webm


2024-04-18 23:45:18.376 ERROR default    editor.error-reporting - {:line 116}
java.lang.AssertionError: Assert failed: (rename? resources)
        at editor.asset_browser$rename.invokeStatic(asset_browser.clj:376)
        at editor.asset_browser$fn__107533$fnk107530_positional__107534.invoke(asset_browser.clj:427)
        at editor.asset_browser$fn__107533$fnk107530__107550$fn__107551.invoke(asset_browser.clj:416)
        at editor.asset_browser$fn__107533$fnk107530__107550.invoke(asset_browser.clj:416)
        at clojure.lang.AFn.applyToHelper(AFn.java:154)
        at clojure.lang.AFn.applyTo(AFn.java:144)
        at clojure.lang.AFunction$1.doInvoke(AFunction.java:31)
        at clojure.lang.RestFn.invoke(RestFn.java:408)
        at editor.handler$invoke_fnk.invokeStatic(handler.clj:256)
        at editor.handler$run.invokeStatic(handler.clj:289)
        at editor.ui$execute_handler_ctx.invokeStatic(ui.clj:1192)
        at editor.ui$execute_command.invokeStatic(ui.clj:1200)
        at editor.ui$invoke_handler.invokeStatic(ui.clj:1231)
        at editor.ui$make_menu_command$reify__14827.handle(ui.clj:1312)
        at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
        at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:232)
        at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:189)
        at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
        at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
        at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
        at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:49)
        at javafx.event.Event.fireEvent(Event.java:198)
        at javafx.scene.control.MenuItem.fire(MenuItem.java:459)
        at com.sun.javafx.scene.control.ContextMenuContent$MenuItemContainer.doSelect(ContextMenuContent.java:1415)
        at com.sun.javafx.scene.control.ContextMenuContent$MenuItemContainer.lambda$createChildren$12(ContextMenuContent.java:1368)
        at com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(CompositeEventHandler.java:247)
        at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:80)
        at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:232)
        at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:189)
        at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
        at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
        at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
        at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
        at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
        at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
        at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
        at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
        at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
        at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
        at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
        at javafx.event.Event.fireEvent(Event.java:198)
        at javafx.scene.Scene$MouseHandler.process(Scene.java:3987)
        at javafx.scene.Scene.processMouseEvent(Scene.java:1893)
        at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2711)
        at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:411)
        at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:301)
        at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
        at com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$2(GlassViewEventHandler.java:450)
        at com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:430)
        at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:449)
        at com.sun.glass.ui.View.handleMouseEvent(View.java:551)
        at com.sun.glass.ui.View.notifyMouse(View.java:937)
        at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
        at com.sun.glass.ui.gtk.GtkApplication.lambda$runLoop$10(GtkApplication.java:264)
        at java.base/java.lang.Thread.run(Thread.java:833)



ig-gh avatar Apr 18 '24 21:04 ig-gh

@vlaaad I believe I've found where the issue is: in version 1.6.4 everything works fine, but in 1.7.0 and later versions, it doesn't. I think the problem occurred at #8709

ig-gh avatar May 14 '24 16:05 ig-gh

Hmm yes, I'll try reproducing and debugging it on Linux, thanks!

vlaaad avatar May 14 '24 16:05 vlaaad

duplicate https://github.com/defold/defold/issues/9173

AGulev avatar Jul 18 '24 21:07 AGulev

duplicate https://github.com/defold/defold/issues/9134

AGulev avatar Jul 18 '24 21:07 AGulev

Hi, please check the editor for update, the issue is most probably resolved. Feel free to reopen if the issue returns :)

vlaaad avatar Aug 12 '24 13:08 vlaaad

Yup it's working on my end, thank you.

Zephyre3777 avatar Aug 13 '24 20:08 Zephyre3777