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

[feature]: Allow opening empty folders on Jack Compiler page #533

Open
2 tasks done
dorianignee opened this issue Dec 11, 2024 · 2 comments
Open
2 tasks done

[feature]: Allow opening empty folders on Jack Compiler page #533

dorianignee opened this issue Dec 11, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@dorianignee
Copy link
Contributor

Tool

Jack Compiler

Interface

Website (https://nand2tetris.github.io/web-ide)

Contact Details

No response

What feature are you proposing?

This feature was removed with commit 8484832, but I liked the possibility to fiddle around with the Jack language by just creating an empty folder in the file chooser dialog, and then creating .jack files on the compiler page.

Since I can't create an empty .jack file in the file chooser dialog, I have to open vscode with that folder, create an empty Main.jack file and then use the compiler page to write code. That's an annoying roundabout.

Is there any particular reason to disallow empty folders on the compiler page, except for telling the user "Oops, you probably selected the wrong folder"?

On all the other pages, disallowing empty folders is reasonable, because they don't interact with the local file system directly. If you're ok with that, I'd like to remove the check for empty folders in a new PR.

Additional Comments

No response

Do you want to try to add this feature?

  • I want to try to add this feature!

Code of Conduct

  • I agree to follow this project's Code of Conduct
@DavidSouther
Copy link
Collaborator

I think this was an oversight more than an intentional reduction in behavior? Happy to review a PR that adds this back.

@DavidSouther DavidSouther added the enhancement New feature or request label Dec 19, 2024
@dorianignee
Copy link
Contributor Author

I removed the check for empty folders in my local clone, but that didn't solve the issue. The issue was introduced with the "Release: FileSystem + UI" (8484832). I've tested the project with the commit right before the release and it turns out, that it showed the same error message, but would still load the empty folder.

I guess, the problem is caused by the same bug, that also causes issue #524, but the commit is too large to figure out, what is causing the issue. Maybe I'll take another look at it after the christmas holidays.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants