Tool
Hardware Simulator
Interface
Website (https://nand2tetris.github.io/web-ide)
To Reproduce
- visit /chip route
- click Settings > Select a Projects Folder
- allow "Edit File" permissions when prompted by browser
- observe that local files can be opened and edited successfully
- close tab/window
- revisit /chip route
- click OK on alert: "Please grant permissions to use your local projects folder"
- observe console error:
Uncaught (in promise) NotAllowedError: The request is not allowed by the user agent or the platform in the current context.
- observe that selecting any HDL from the dropdown does not load the file
- observe console error:
Uncaught (in promise) NotAllowedError: Failed to execute 'getDirectoryHandle' on 'FileSystemDirectoryHandle': The request is not allowed by the user agent or the platform in the current context.
- observe that even selecting from 'Builtin' files does not load the file
- observe that disabling Chromium extensions does not fix the issue
- observe that granting browser Full Disk Access (macOS Privacy & Security settings) does not fix the issue
Additional Observations
- sometimes when having this issue...
- Settings > Select Projects Folder...
- is disabled
- is active, but does not show the file picker when clicked
Workaround
Start over, entirely (this works only once per visit to /chip route):
- in Arc (Chromium) dev tools, press CMD+SHIFT+P (control pallete) > Clear Site Data (including third-party cookies)
- close tab/window
- revisit /chip route
- click Settings > Select a Projects Folder
- allow "Edit File" permissions when prompted by browser
- observe that local files can be opened and edited successfully
System
macOS Ventura 13.7.2
Arc Browser 1.108.0 (66882) / Chromium Engine Version 139.0.7258.128
Tool
Hardware Simulator
Interface
Website (https://nand2tetris.github.io/web-ide)
To Reproduce
Uncaught (in promise) NotAllowedError: The request is not allowed by the user agent or the platform in the current context.Uncaught (in promise) NotAllowedError: Failed to execute 'getDirectoryHandle' on 'FileSystemDirectoryHandle': The request is not allowed by the user agent or the platform in the current context.Additional Observations
on click --> console error:
Workaround
Start over, entirely (this works only once per visit to /chip route):
System
macOS Ventura 13.7.2
Arc Browser 1.108.0 (66882) / Chromium Engine Version 139.0.7258.128