aktos-io / aecad

Open Source Circuit Board Design Software that runs on the browser and desktop
https://aktos.io/aecad
54 stars 10 forks source link

dynamic.ls Runtime errors are swallowed #76

Open ceremcem opened 3 years ago

ceremcem commented 3 years ago

Reproduction

  1. Remove # depends: SOIC14 from script foo
  2. Switch to lib-SOIC script and run it

Since SOIC14 dependency can not be resolved, application only throws an unhelpful error message:

Cannot read property 'prototype' of undefined

image

Proposal

Use stacktracejs to parse the stack trace in https://github.com/aktos-io/aecad/blob/6027920ca6544fc4418f1cd070d22b3c64e9bab9/webapps/main/pcb/gui/scripting/index.ls#L180