Skip to content

Instantly share code, notes, and snippets.

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)

@marc-medley
marc-medley / 004.4'2_SW Dev SPM_WithResources__QREF.md
Last active February 22, 2018 18:00
Use Swift Package Manager (SPM) with test resources and, if needed, a read/write scratch directory.

004.4'2 SW Dev Swift Package Manager (SPM) With Resources Qref

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 the PackageName/ directory.