Cannot read property 'name' of undefined Hide Stack Trace TypeError: Cannot read property 'name' of undefined at HTMLElement.debug (/Users/me/.atom/packages/atom-beautify/src/beautify.coffee:363:53) at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:384:49) at CommandRegistry.dispatch (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:273:23) at AtomEnvironment.dispatchApplicationMenuCommand (/Applications/Atom.app/Contents/Resources/app/src/atom-environment.js:1347:25) at EventEmitter.outerCallback (/Applications/Atom.app/Contents/Resources/app/src/application-delegate.js:339:53) at emitThree (events.js:116:13) at EventEmitter.emit (events.js:197:7)
The Swift Package Manager does not yet provide a mechanism for handling resources. The following is a workable approach for using test resources TestResources/
within a package; and, also provides for a consistent TestScratch/
directory for creating test files if needed.
Setup | File Locations | Resources
Setup: ▴
- Add test resources directory
TestResources/
in thePackageName/
directory.