CodeKit icon indicating copy to clipboard operation
CodeKit copied to clipboard

Extra lines added to JS files

Open jeremyephron opened this issue 8 years ago • 4 comments
trafficstars

When processing JS files (not minifying, but just syntax checking) two new lines are added to the bottom of the JS file. This occurs when using ESLint, JSHint, and JSLint syntax checkers.

I'm aware that this was supposedly fixed in Version 3.0.1, but it's still occurring for me. I recently purchased CodeKit after the trial had ended, and this was not a problem I had encountered during the trial duration. I updated to Version 3.1 on the day that I purchased CodeKit so the problem may be caused by this new version.

I was able to reproduce this with every JS file, 100% of the time.

jeremyephron avatar May 03 '17 21:05 jeremyephron

Is this a chain of JS files linked together, or just a single file?

bdkjones avatar May 04 '17 07:05 bdkjones

Does the issue occur when you hit the check syntax button in the UI, or only when you hit process and have the file NOT set to minify?

bdkjones avatar May 04 '17 07:05 bdkjones

I just tested it, and: It occurs with other scripts both appended and prepended to the file (the new lines are added to the end of the file regardless of whether a script is appended or prepended).

The new lines are not added when hitting the check syntax button. It occurs when saving the file (which processes it) and when hitting the process button, and the file is not set to minify.

I should also add that I am not using a build folder. The file location is set to the same path that it exists in before processing.

jeremyephron avatar May 04 '17 07:05 jeremyephron

For some reason I was too lazy to test this before posting, but the new lines are still added when using a build folder as well.

jeremyephron avatar May 04 '17 07:05 jeremyephron