I've been using QuickFire for all of about 10 minutes and have encountered some strange problems. I've been a longtime Brackets user, so I'm quite familiar with how this software "should" work. I was most excited to use this software on my Chromebook because, although there are plenty of good editors available for ChromeOS, there aren't many decent programs that can easily handle web apps with multiple JS files. I've been writing a game that has outgrown its single-file source. I began the process, moving lines of code slowly into their new files. I moved one line: window.addEventListener(...)
, put it in init.js
, added the new code file to index.html
, and reloaded the page.
The page threw an error. I take a look at it, and it says Unexpected token }
. Okay, no problem. I thought perhaps I made an erroneous keystroke. Then I look at the line number: 1104. I happen to know for a fact that my code was just under 1100 lines of code. I looked in QuickFire. Sure enough, there is not a line 1104. Interesting.
So then I decide that perhaps I just did something stupid and start over. I follow the steps outlined above once again, and just like the first time, the page has a similar error: Unexpected token
on a line that doesn't exist. I made sure to be extra careful the second time, so this really confused me. Then I took a look at the source code (via 'View Source' in Chrome) and realized there was something weird going on.
It seems Quickfire is messing with my code on save.
Fortunately, I keep religious backups of my data. Here is a screenshot, in Chrome, of the last method of my program before opening it in QuickFire.
![screenshot 2016-02-15 at 7 52 20 pm](https://cloud.githubusercontent.com/assets/13492796/13065177/54fed2b8-d41f-11e5-9139-bec5b61a55b8.png)
Then, this is what that same method looks like after changing one line of code (no where near this part) and saving the file.
![screenshot 2016-02-15 at 7 53 16 pm](https://cloud.githubusercontent.com/assets/13492796/13065185/7ea7faea-d41f-11e5-89b3-9405ba9f7b27.png)
As you can see, starting at CARTEL.drawStats
, the last three lines are repeated once after the save. Interesting, QuickFire does not show these erroneous lines until the program is restarted and the files reopened.
I'm really hoping there is an easy solution to this program.