superblocks-lab icon indicating copy to clipboard operation
superblocks-lab copied to clipboard

Triggering Compile action without storage space and without having the build directory in place hangs forever

Open filippsen opened this issue 6 years ago • 0 comments

Environment/Browser

Version 1.3.0

Description

When compiling under the full storage conditions (no space left) and without having the build directory in place at all, the compiler hangs forever (spinning icon). This only happens when there is no room for even creating the build file (directory). Dozens of alert messages will also pop up (possibly a recursive error ? infinite alerts? ):

Could not save dappfile.

Steps to reproduce

  1. Get to a point where the local storage is full *
  2. Make sure the build directory is not present (If needed, delete it and double check there is no more room for storing anything afterwards)
  3. Click the Compile action
  • See also: #283

Expected result

Error message or alert without any console errors.

Actual result

It appears that setItem (in saveFile) fails to execute due to lack of storage space, resulting in unhandled DOMException.

filippsen avatar Dec 17 '18 09:12 filippsen