{"action":"created","issue":{"url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/246","labels_url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/246/labels{/name}","comments_url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/246/comments","events_url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/246/events","html_url":"https://github.com/nodemcu/nodemcu-firmware/issues/246","id":58845809,"number":246,"title":"Filesystem won't cooperate when flash is maxed out","user":{"login":"raz123","id":2940105,"avatar_url":"https://avatars.githubusercontent.com/u/2940105?v=3","gravatar_id":"","url":"https://api.github.com/users/raz123","html_url":"https://github.com/raz123","followers_url":"https://api.github.com/users/raz123/followers","following_url":"https://api.github.com/users/raz123/following{/other_user}","gists_url":"https://api.github.com/users/raz123/gists{/gist_id}","starred_url":"https://api.github.com/users/raz123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raz123/subscriptions","organizations_url":"https://api.github.com/users/raz123/orgs","repos_url":"https://api.github.com/users/raz123/repos","events_url":"https://api.github.com/users/raz123/events{/privacy}","received_events_url":"https://api.github.com/users/raz123/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-25T03:41:36Z","updated_at":"2015-02-25T12:12:36Z","closed_at":null,"body":"Looks like I'm unable to interact with the filesystem at a certain point. I'll see if I can reproduce. In the meantime, here's what's happening:\r\n\r\n```\r\nNodeMCU 0.9.5 build 20150213  powered by Lua 5.1.4\r\n> for k,v in pairs(file.list()) do l = string.format(\"%-15s\",k) print(l..\"   \"..v..\" bytes\") end\r\n\r\ncwide.lc          2526 bytes\r\ncwide.lua         5546 bytes\r\nckb5p2.lua        1389 bytes\r\ntranslate.lua     496 bytes\r\nkb.txt            79647 bytes\r\nLLbin.lua         639 bytes\r\n\r\n> file.remove(\"cwide.lc\")\r\n> for k,v in pairs(file.list()) do l = string.format(\"%-15s\",k) print(l..\"   \"..v..\" bytes\") end\r\n\r\ncwide.lc          2526 bytes\r\ncwide.lua         5546 bytes\r\nckb5p2.lua        1389 bytes\r\ntranslate.lua     496 bytes\r\nkb.txt            79647 bytes\r\nLLbin.lua         639 bytes\r\n```\r\n\r\nAs you can see, I am unable to remove files. On the other hand, I am able to rename files without a problem. I suspect that this might be because I have maxed out the flash.\r\n\r\nI also tried issuing this command, which usually resets a file to 0 bytes. It did not work.\r\n\r\n```\r\nfile.open('(filename)', 'w')\r\nfile.close()\r\n```\r\n\r\nFinally, I had to issue file.format() to get it working again."},"comment":{"url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/comments/75949941","html_url":"https://github.com/nodemcu/nodemcu-firmware/issues/246#issuecomment-75949941","issue_url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/246","id":75949941,"user":{"login":"marcoskirsch","id":8085768,"avatar_url":"https://avatars.githubusercontent.com/u/8085768?v=3","gravatar_id":"","url":"https://api.github.com/users/marcoskirsch","html_url":"https://github.com/marcoskirsch","followers_url":"https://api.github.com/users/marcoskirsch/followers","following_url":"https://api.github.com/users/marcoskirsch/following{/other_user}","gists_url":"https://api.github.com/users/marcoskirsch/gists{/gist_id}","starred_url":"https://api.github.com/users/marcoskirsch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcoskirsch/subscriptions","organizations_url":"https://api.github.com/users/marcoskirsch/orgs","repos_url":"https://api.github.com/users/marcoskirsch/repos","events_url":"https://api.github.com/users/marcoskirsch/events{/privacy}","received_events_url":"https://api.github.com/users/marcoskirsch/received_events","type":"User","site_admin":false},"created_at":"2015-02-25T12:12:36Z","updated_at":"2015-02-25T12:12:36Z","body":"I've seen this as well. I just format and start over. But I can see this being a huge problem to someone writing files in their code. "}}