Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New folder bug #306

Closed
Curculigo opened this issue Aug 3, 2024 · 3 comments
Closed

New folder bug #306

Curculigo opened this issue Aug 3, 2024 · 3 comments
Assignees
Labels
bug Something isn't working freebsd ready for release

Comments

@Curculigo
Copy link

I created a new folder on the Open Folder dialog. The new folder is created and I can select it. But after the dialog is closed, there is still a dialog asking for the new folder's name (with the folder name I have previously created) even though everything is already done on the Open Folder dialog. If I click OK then ecode crashes. On the terminal, it printed Bus error.

p/s: FreeBSD, using your build.

@Curculigo
Copy link
Author

Curculigo commented Aug 3, 2024

A new and strange folder is created on the ecode directory (where ecode.bin is).

The name of the folder starts with a space character: hover.

@Curculigo
Copy link
Author

It turned out that what it opened is the parent folder, not the new folder I created. Recent folders confirmed this.

@SpartanJ SpartanJ self-assigned this Aug 4, 2024
@SpartanJ SpartanJ added bug Something isn't working freebsd labels Aug 4, 2024
@SpartanJ
Copy link
Owner

SpartanJ commented Aug 4, 2024

I created a new folder on the Open Folder dialog. The new folder is created and I can select it. But after the dialog is closed, there is still a dialog asking for the new folder's name (with the folder name I have previously created) even though everything is already done on the Open Folder dialog.

I can reproduce this by pressing enter to confirm the name (instead of the button). This will NOT close the window and keep the window open but create the folder.

If I click OK then ecode crashes. On the terminal, it printed Bus error.

Yes, it will crash if you close the File Dialog because it will lose the parent. Closing the window after press enter will fix the issue.

A new and strange folder is created on the ecode directory (where ecode.bin is).

This i'm not sure, my guess is that you confirmed the folder creation twice and it was created with corrupted memory since the instance of the parent was already destroyed, so created the folder and then crashed.

It turned out that what it opened is the parent folder, not the new folder I created. Recent folders confirmed this.

I think this is because after creating a folder it does not select it, so if you open without selection it will open the current folder. I'll auto-select the created folder to avoid any confusion.

SpartanJ added a commit to SpartanJ/eepp that referenced this issue Aug 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working freebsd ready for release
Projects
None yet
Development

No branches or pull requests

2 participants