{"action":"created","issue":{"url":"https://api.github.com/repos/atom/tree-view/issues/863","repository_url":"https://api.github.com/repos/atom/tree-view","labels_url":"https://api.github.com/repos/atom/tree-view/issues/863/labels{/name}","comments_url":"https://api.github.com/repos/atom/tree-view/issues/863/comments","events_url":"https://api.github.com/repos/atom/tree-view/issues/863/events","html_url":"https://github.com/atom/tree-view/issues/863","id":158865273,"number":863,"title":"Path must be a string. Received undefined","user":{"login":"Lartza","id":305616,"avatar_url":"https://avatars.githubusercontent.com/u/305616?v=3","gravatar_id":"","url":"https://api.github.com/users/Lartza","html_url":"https://github.com/Lartza","followers_url":"https://api.github.com/users/Lartza/followers","following_url":"https://api.github.com/users/Lartza/following{/other_user}","gists_url":"https://api.github.com/users/Lartza/gists{/gist_id}","starred_url":"https://api.github.com/users/Lartza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lartza/subscriptions","organizations_url":"https://api.github.com/users/Lartza/orgs","repos_url":"https://api.github.com/users/Lartza/repos","events_url":"https://api.github.com/users/Lartza/events{/privacy}","received_events_url":"https://api.github.com/users/Lartza/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-07T08:20:29Z","updated_at":"2016-06-07T08:44:36Z","closed_at":null,"body":"Just opening Atom, since some time ago (at least in 1.7.4, probably before too) has resulted in the tree-view package failing to activate.\r\nSomeone mentioned this happening for them on Arch too here #675 and I am using the prebuilt tensor5 packages with electron version 1.2.1\r\n\r\n**Atom Version**: 1.8.0\r\n**System**: \"Arch Linux\"\r\n**Thrown From**: [tree-view](https://github.com/atom/tree-view) package, v0.205.0\r\n\r\n\r\n### Stack Trace\r\n\r\nFailed to activate the tree-view package\r\n\r\n```\r\nAt Path must be a string. Received undefined\r\n\r\nTypeError: Path must be a string. Received undefined\r\n    at assertPath (path.js:7:11)\r\n    at Object.basename (path.js:1355:5)\r\n    at Object.shouldAttach (/usr/lib/atom/node_modules/tree-view/lib/main.js:114:23)\r\n    at Object.activate (/usr/lib/atom/node_modules/tree-view/lib/main.js:16:16)\r\n    at Package.module.exports.Package.activateNow (/usr/lib/atom/src/package.js:183:20)\r\n    at /usr/lib/atom/src/package.js:156:32\r\n    at Package.module.exports.Package.measure (/usr/lib/atom/src/package.js:92:15)\r\n    at /usr/lib/atom/src/package.js:149:26\r\n    at Package.module.exports.Package.activate (/usr/lib/atom/src/package.js:146:34)\r\n    at PackageManager.module.exports.PackageManager.activatePackage (/usr/lib/atom/src/package-manager.js:530:21)\r\n    at /usr/lib/atom/src/package-manager.js:511:29\r\n    at Config.module.exports.Config.transactAsync (/usr/lib/atom/src/config.js:337:18)\r\n    at PackageManager.module.exports.PackageManager.activatePackages (/usr/lib/atom/src/package-manager.js:506:19)\r\n    at PackageManager.module.exports.PackageManager.activate (/usr/lib/atom/src/package-manager.js:489:46)\r\n    at /usr/lib/atom/src/atom-environment.js:754:28\r\n```\r\n\r\n### Commands\r\n\r\n```\r\n```\r\n\r\n### Config\r\n\r\n```json\r\n{\r\n  \"core\": {\r\n    \"allowPendingPaneItems\": false,\r\n    \"automaticallyUpdate\": false,\r\n    \"openEmptyEditorOnStart\": false\r\n  }\r\n}\r\n```\r\n\r\n### Installed Packages\r\n\r\n```coffee\r\n# User\r\nfile-icons, v1.7.13\r\nminimap, v4.24.3\r\nminimap-autohide, v0.10.1\r\n\r\n# Dev\r\nNo dev packages\r\n```"},"comment":{"url":"https://api.github.com/repos/atom/tree-view/issues/comments/224217556","html_url":"https://github.com/atom/tree-view/issues/863#issuecomment-224217556","issue_url":"https://api.github.com/repos/atom/tree-view/issues/863","id":224217556,"user":{"login":"tensor5","id":1545895,"avatar_url":"https://avatars.githubusercontent.com/u/1545895?v=3","gravatar_id":"","url":"https://api.github.com/users/tensor5","html_url":"https://github.com/tensor5","followers_url":"https://api.github.com/users/tensor5/followers","following_url":"https://api.github.com/users/tensor5/following{/other_user}","gists_url":"https://api.github.com/users/tensor5/gists{/gist_id}","starred_url":"https://api.github.com/users/tensor5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tensor5/subscriptions","organizations_url":"https://api.github.com/users/tensor5/orgs","repos_url":"https://api.github.com/users/tensor5/repos","events_url":"https://api.github.com/users/tensor5/events{/privacy}","received_events_url":"https://api.github.com/users/tensor5/received_events","type":"User","site_admin":false},"created_at":"2016-06-07T08:44:36Z","updated_at":"2016-06-07T08:44:36Z","body":"This problem happens when using Atom with the Electron 1.2, which is based on Node 6. After [this commit](https://github.com/nodejs/node/commit/08085c49b6e49ecfffd638c6cd46f4de639ae4f4), `path.basename()` only accept strings as input.\r\n\r\nSteps to reproduce:\r\n\r\n```\r\n$ rm ~/.atom/storage/application.json\r\n$ atom\r\n```\r\n\r\nSolution:\r\n\r\nhttps://github.com/atom/tree-view/blob/e93c939bec8aad681df77f308479cb57a314aa0c/lib/main.coffee#L54 should not allowed to be `undefined`. When `undefined` it should be `'.'` instead. I can open a pull request if needed."}}
{"actor":{"display_login":"tensor5"}}