{"action":"created","issue":{"url":"https://api.github.com/repos/atom/atom/issues/5608","labels_url":"https://api.github.com/repos/atom/atom/issues/5608/labels{/name}","comments_url":"https://api.github.com/repos/atom/atom/issues/5608/comments","events_url":"https://api.github.com/repos/atom/atom/issues/5608/events","html_url":"https://github.com/atom/atom/issues/5608","id":58047319,"number":5608,"title":"package names versus folder names","user":{"login":"mark-hahn","id":811455,"avatar_url":"https://avatars.githubusercontent.com/u/811455?v=3","gravatar_id":"","url":"https://api.github.com/users/mark-hahn","html_url":"https://github.com/mark-hahn","followers_url":"https://api.github.com/users/mark-hahn/followers","following_url":"https://api.github.com/users/mark-hahn/following{/other_user}","gists_url":"https://api.github.com/users/mark-hahn/gists{/gist_id}","starred_url":"https://api.github.com/users/mark-hahn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mark-hahn/subscriptions","organizations_url":"https://api.github.com/users/mark-hahn/orgs","repos_url":"https://api.github.com/users/mark-hahn/repos","events_url":"https://api.github.com/users/mark-hahn/events{/privacy}","received_events_url":"https://api.github.com/users/mark-hahn/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/atom/atom/labels/documentation","name":"documentation","color":"c7def8"},{"url":"https://api.github.com/repos/atom/atom/labels/enhancement","name":"enhancement","color":"bfd4f2"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2015-02-18T09:55:58Z","updated_at":"2015-02-20T17:36:21Z","closed_at":null,"body":"I get quite confused when packages use names in their repo like `atom-my-package` when the Atom package name is actually `my-package`.  I end up renaming folders several times to clone a repo, work on it, and do a PR.\r\n\r\nEnough bitching and on to the problem.  When I had  the `atom-my-package` folder in `~/.atom/packages` then the package listed in settings was`atom-my-package`.  But the settings were saved under  `my-package` which is what was in `package.json`.  So settings didn't work until I renamed the folder `my-package`.\r\n\r\nAll code in atom should use the package name in `package.json` or they should all use the folder name containing package.json.  Right now they are not consistent.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/atom/atom/issues/comments/75284073","html_url":"https://github.com/atom/atom/issues/5608#issuecomment-75284073","issue_url":"https://api.github.com/repos/atom/atom/issues/5608","id":75284073,"user":{"login":"mark-hahn","id":811455,"avatar_url":"https://avatars.githubusercontent.com/u/811455?v=3","gravatar_id":"","url":"https://api.github.com/users/mark-hahn","html_url":"https://github.com/mark-hahn","followers_url":"https://api.github.com/users/mark-hahn/followers","following_url":"https://api.github.com/users/mark-hahn/following{/other_user}","gists_url":"https://api.github.com/users/mark-hahn/gists{/gist_id}","starred_url":"https://api.github.com/users/mark-hahn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mark-hahn/subscriptions","organizations_url":"https://api.github.com/users/mark-hahn/orgs","repos_url":"https://api.github.com/users/mark-hahn/repos","events_url":"https://api.github.com/users/mark-hahn/events{/privacy}","received_events_url":"https://api.github.com/users/mark-hahn/received_events","type":"User","site_admin":false},"created_at":"2015-02-20T17:36:21Z","updated_at":"2015-02-20T17:36:21Z","body":"I originally tried apm install and got the error below so I switch to npm install.\r\n\r\n```\r\nC:\\Users\\Administrator\\.atom\\packages\\atom-pdf-view>apm install\r\nInstalling modules failed\r\nnpm ERR! Failed resolving git HEAD (https://github.com/mozilla/pdf.js.git) fatal: ambiguous argument 'v1.0.907': unknown revi\r\nsion or path not in the working tree.\r\nnpm ERR! Failed resolving git HEAD (https://github.com/mozilla/pdf.js.git) Use '--' to separate paths from revisions, like th\r\nis:\r\nnpm ERR! Failed resolving git HEAD (https://github.com/mozilla/pdf.js.git) 'git <command> [<revision>...] -- [<file>...]'\r\nnpm ERR! Failed resolving git HEAD (https://github.com/mozilla/pdf.js.git)\r\nnpm ERR! Windows_NT 6.2.9200\r\nnpm ERR! argv \"C:\\\\Users\\\\Administrator\\\\AppData\\\\Local\\\\atom\\\\app-0.181.0\\\\resources\\\\app\\\\apm\\\\bin\\\\\\\\node.exe\" \"C:\\\\Users\\\r\n\\Administrator\\\\AppData\\\\Local\\\\atom\\\\app-0.181.0\\\\resources\\\\app\\\\apm\\\\node_modules\\\\npm\\\\bin\\\\npm-cli.js\" \"--globalconfig\"\r\n\"C:\\\\Users\\\\Administrator\\\\.atom\\\\.apm\\\\.apmrc\" \"--userconfig\" \"C:\\\\Users\\\\Administrator\\\\.atom\\\\.apmrc\" \"install\" \"--target=\r\n0.21.0\" \"--arch=ia32\" \"--msvs_version=2013\"\r\nnpm ERR! node v0.10.35\r\nnpm ERR! npm  v2.5.1\r\nnpm ERR! code 128\r\n\r\nnpm ERR! Command failed: fatal: ambiguous argument 'v1.0.907': unknown revision or path not in the working tree.\r\nnpm ERR! Use '--' to separate paths from revisions, like this:\r\nnpm ERR! 'git <command> [<revision>...] -- [<file>...]'\r\nnpm ERR!\r\nnpm ERR!\r\nnpm ERR! If you need help, you may report this error at:\r\nnpm ERR!     <http://github.com/npm/npm/issues>\r\n```\r\n\r\n"}}