{"action":"created","issue":{"url":"https://api.github.com/repos/hebaishi/linter-gcc/issues/4","labels_url":"https://api.github.com/repos/hebaishi/linter-gcc/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/hebaishi/linter-gcc/issues/4/comments","events_url":"https://api.github.com/repos/hebaishi/linter-gcc/issues/4/events","html_url":"https://github.com/hebaishi/linter-gcc/issues/4","id":102544753,"number":4,"title":"\"file\" is read-only","user":{"login":"guysherman","id":387100,"avatar_url":"https://avatars.githubusercontent.com/u/387100?v=3","gravatar_id":"","url":"https://api.github.com/users/guysherman","html_url":"https://github.com/guysherman","followers_url":"https://api.github.com/users/guysherman/followers","following_url":"https://api.github.com/users/guysherman/following{/other_user}","gists_url":"https://api.github.com/users/guysherman/gists{/gist_id}","starred_url":"https://api.github.com/users/guysherman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guysherman/subscriptions","organizations_url":"https://api.github.com/users/guysherman/orgs","repos_url":"https://api.github.com/users/guysherman/repos","events_url":"https://api.github.com/users/guysherman/events{/privacy}","received_events_url":"https://api.github.com/users/guysherman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-22T15:28:34Z","updated_at":"2015-08-22T18:59:01Z","closed_at":null,"body":"SyntaxError: /home/guy/.atom/packages/linter-gcc/lib/main.js: Line 78: \"file\" is read-only\r\n  76 |             editor = atom.workspace.getActivePaneItem();\r\n  77 |             if (editor) {\r\n> 78 |                 file = editor.buffer.file;\r\n     |                 ^\r\n  79 |                 if (file) {\r\n  80 |                     cwd = file.getParent().getPath();\r\n  81 |                 }\r\n    at File.errorWithNode (/opt/atom/resources/app.asar/node_modules/babel-core/lib/babel/transformation/file/index.js:451:13)\r\n    at checkPath (/opt/atom/resources/app.asar/node_modules/babel-core/lib/babel/transformation/transformers/es6/constants.js:33:16)\r\n    at NodePath.AssignmentExpression (/opt/atom/resources/app.asar/node_modules/babel-core/lib/babel/transformation/transformers/es6/constants.js:38:3)\r\n    at NodePath.call (/opt/atom/resources/app.asar/node_modules/babel-core/lib/babel/traversal/path/context.js:130:26)\r\n    at NodePath.visit (/opt/atom/resources/app.asar/node_modules/babel-core/lib/babel/traversal/path/context.js:154:8)\r\n    at TraversalContext.visitSingle (/opt/atom/resources/app.asar/node_modules/babel-core/lib/babel/traversal/context.js:92:12)\r\n    at TraversalContext.visit (/opt/atom/resources/app.asar/node_modules/babel-core/lib/babel/traversal/context.js:104:19)\r\n    at Function.traverse.node (/opt/atom/resources/app.asar/node_modules/babel-core/lib/babel/traversal/index.js:67:17)\r\n    at NodePath.visit (/opt/atom/resources/app.asar/node_modules/babel-core/lib/babel/traversal/path/context.js:171:26)\r\n    at TraversalContext.visitMultiple (/opt/atom/resources/app.asar/node_modules/babel-core/lib/babel/traversal/context.js:72:16)"},"comment":{"url":"https://api.github.com/repos/hebaishi/linter-gcc/issues/comments/133740164","html_url":"https://github.com/hebaishi/linter-gcc/issues/4#issuecomment-133740164","issue_url":"https://api.github.com/repos/hebaishi/linter-gcc/issues/4","id":133740164,"user":{"login":"guysherman","id":387100,"avatar_url":"https://avatars.githubusercontent.com/u/387100?v=3","gravatar_id":"","url":"https://api.github.com/users/guysherman","html_url":"https://github.com/guysherman","followers_url":"https://api.github.com/users/guysherman/followers","following_url":"https://api.github.com/users/guysherman/following{/other_user}","gists_url":"https://api.github.com/users/guysherman/gists{/gist_id}","starred_url":"https://api.github.com/users/guysherman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guysherman/subscriptions","organizations_url":"https://api.github.com/users/guysherman/orgs","repos_url":"https://api.github.com/users/guysherman/repos","events_url":"https://api.github.com/users/guysherman/events{/privacy}","received_events_url":"https://api.github.com/users/guysherman/received_events","type":"User","site_admin":false},"created_at":"2015-08-22T18:59:01Z","updated_at":"2015-08-22T18:59:01Z","body":"Hi here's the listing for the file that is the active pane\r\n\r\nguy@guy-linux:~/Code/panda/panda$ atom .\r\nguy@guy-linux:~/Code/panda/panda$ ls -la src/panda-host/web_server.cxx \r\n-rw-rw-r-- 1 guy guy 7953 Aug 22 19:22 src/panda-host/web_server.cxx\r\n\r\nAnd here are listings for the rest of the files:\r\n\r\nguy@guy-linux:~/Code/panda/panda$ ls -la .\r\ntotal 220\r\ndrwxrwxr-x 6 guy guy  4096 Aug 17 11:15 .\r\ndrwxrwxr-x 4 guy guy  4096 Aug 17 11:13 ..\r\n-rw-rw-r-- 1 guy guy    56 Aug 16 22:03 .atom-build.json\r\ndrwxrwxr-x 4 guy guy  4096 Aug 22 19:22 build\r\ndrwxrwxr-x 8 guy guy  4096 Aug 22 00:09 .git\r\n-rw-rw-r-- 1 guy guy   275 Aug 22 00:04 .gitignore\r\n-rw-rw-r-- 1 guy guy 18047 Aug 17 11:13 LICENSE\r\n-rw-rw-r-- 1 guy guy  4780 Aug 22 18:42 .lock-waf_linux2_build\r\n-rw-rw-r-- 1 guy guy   212 Aug 21 21:44 README.md\r\ndrwxrwxr-x 4 guy guy  4096 Aug 21 21:48 src\r\n-rwxr-xr-x 1 guy guy 97567 Jul  5 19:48 waf\r\ndrwxrwxr-x 3 guy guy  4096 Aug 17 11:15 .waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7\r\n-rw-rw-r-- 1 guy guy  1542 Aug 22 18:42 wscript\r\n\r\nguy@guy-linux:~/Code/panda/panda$ ls -la src/panda-host/\r\ntotal 48\r\ndrwxrwxr-x 2 guy guy 4096 Aug 21 22:12 .\r\ndrwxrwxr-x 4 guy guy 4096 Aug 21 21:48 ..\r\n-rw-rw-r-- 1 guy guy 1780 Aug 22 18:23 main.cxx\r\n-rw-rw-r-- 1 guy guy 7953 Aug 22 19:22 web_server.cxx\r\n-rw-rw-r-- 1 guy guy 2486 Aug 22 18:49 web_server.hxx\r\n\r\nguy@guy-linux:~/Code/panda/panda$ ls -la src/util\r\ntotal 32\r\ndrwxrwxr-x 2 guy guy 4096 Aug 21 21:48 .\r\ndrwxrwxr-x 4 guy guy 4096 Aug 21 21:48 ..\r\n-rw-rw-r-- 1 guy guy 3292 Aug 20 19:22 liblo-example.cxx\r\n-rw-rw-r-- 1 guy guy 2154 Aug 16 19:50 panda-sim.cxx\r\n\r\nAs you can see there's nothing out of the ordinary with the file permissions: owner and group have rw, and others have r.\r\n\r\nNote that this happens when I open atom.\r\n\r\nCheers,\r\n\r\nGuy.\r\n"}}