{"action":"opened","issue":{"url":"https://api.github.com/repos/Codewars/codewars.com/issues/717","repository_url":"https://api.github.com/repos/Codewars/codewars.com","labels_url":"https://api.github.com/repos/Codewars/codewars.com/issues/717/labels{/name}","comments_url":"https://api.github.com/repos/Codewars/codewars.com/issues/717/comments","events_url":"https://api.github.com/repos/Codewars/codewars.com/issues/717/events","html_url":"https://github.com/Codewars/codewars.com/issues/717","id":194773051,"number":717,"title":"Sudden loss of Preloaded Code when writing tests for draft PHP Kata","user":{"login":"DonaldKellett","id":7777884,"avatar_url":"https://avatars.githubusercontent.com/u/7777884?v=3","gravatar_id":"","url":"https://api.github.com/users/DonaldKellett","html_url":"https://github.com/DonaldKellett","followers_url":"https://api.github.com/users/DonaldKellett/followers","following_url":"https://api.github.com/users/DonaldKellett/following{/other_user}","gists_url":"https://api.github.com/users/DonaldKellett/gists{/gist_id}","starred_url":"https://api.github.com/users/DonaldKellett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DonaldKellett/subscriptions","organizations_url":"https://api.github.com/users/DonaldKellett/orgs","repos_url":"https://api.github.com/users/DonaldKellett/repos","events_url":"https://api.github.com/users/DonaldKellett/events{/privacy}","received_events_url":"https://api.github.com/users/DonaldKellett/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-10T15:11:21Z","updated_at":"2016-12-10T15:11:21Z","closed_at":null,"body":"When I was writing tests for a draft PHP Kata I was about to publish (probably about 15-30 minutes to completion), I clicked the \"Validate Solution\" button to check all tests were executing properly and then suddenly the following error occurred:\r\n\r\n![screen shot 2016-12-10 at 11 01 57 pm](https://cloud.githubusercontent.com/assets/7777884/21074155/af641e2c-bf2c-11e6-88b7-d5057d9ae2f8.png)\r\n\r\nI was stunned when I saw this error message as although I did not import/download the actual email-sending library called PHPMailer into my Kata (and in fact I couldn't and didn't intend to), right at the start when I started drafting this Kata, I wrote a class called `PHPMailer` which was supposed to behave like the actual PHP library PHPMailer **superficially** and everything was working fine until then.  I then checked the Preloaded section of my code - and to my horror, the fake `PHPMailer` class (and all of the Preloaded code I have previously written) has completely disappeared.\r\n\r\nNow, you might say that I might have accidentally clicked on \"Preloaded\" when I was writing the tests and pressed Backspace after highlighting all that code (accidentally) which caused all that code to be deleted but I think that that is **not** the case **because** of one thing - when I instinctively started rewriting my Preloaded \"fake\" `PHPMailer` class with the PHP keywords `final class`, there was **no** syntax highlighting at all although the \"Language Select\" was still on PHP 7.0 which suggests that a bug indeed occurred when this event happened.  Furthermore, when I logged out and rebooted my computer and then logged in to my account again and resumed to the Editing panel of this draft Kata, the initial interface did not show up properly with weird formatting; unfortunately I was not able to replicate it.\r\n\r\nPlease help me investigate this issue.  I have lost at least half an hour's worth of work because of this sudden glitch and I would not want it to happen again.\r\n\r\nThank you very much,\r\nDonaldatKellett (donaldsebleung on Codewars)"}}
{"actor":{"display_login":"DonaldKellett"}}