# Adding a framework changes 1000 lines

**URL:** <https://forum.juce.com/t/adding-a-framework-changes-1000-lines/8838>\
**Category:** The Projucer\
**Created:** [June 15, 2012, 6:32am UTC](https://forum.juce.com/t/adding-a-framework-changes-1000-lines/8838 "2012-06-15T06:32:17Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheVinn](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/thevinn/32/806_2.png) [@TheVinn](https://forum.juce.com/u/TheVinn)\
**Post date:** [June 15, 2012, 6:32am UTC](https://forum.juce.com/t/adding-a-framework-changes-1000-lines/8838/1 "2012-06-15T06:32:17Z")

</div>

All I did was add a few frameworks to an OS X export target in IntroJucer, and it ended up rewriting AppConfig.h, JuceHeader.h, the Makefile, the Visual Studio project file, and the .rc file. Why?

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [June 15, 2012, 7:14am UTC](https://forum.juce.com/t/adding-a-framework-changes-1000-lines/8838/2 "2012-06-15T07:14:16Z")

</div>

> [@](#):
>
> Why?

Why not? Why does it matter how many lines were changed?

---

<div class="post-metadata">

**Author:** ![TheVinn](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/thevinn/32/806_2.png) [@TheVinn](https://forum.juce.com/u/TheVinn)\
**Post date:** [June 15, 2012, 2:15pm UTC](https://forum.juce.com/t/adding-a-framework-changes-1000-lines/8838/3 "2012-06-15T14:15:40Z")

</div>

> [@jules](#):
>
> Why not? Why does it matter how many lines were changed?

Because files unrelated to the change appear as if they were modified in the commit log. For example, I just opened up the .jucer file to add a few linker flags to the Makefile export target. Then I press “save” and now resources.rc, the .vcxproj, and the .pbxproj appear modified to git status.

Why should files unrelated to the change get modified?

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [June 15, 2012, 2:39pm UTC](https://forum.juce.com/t/adding-a-framework-changes-1000-lines/8838/4 "2012-06-15T14:39:35Z")

</div>

> [@](#):
>
> Why should files unrelated to the change get modified?

It doesn’t just change files randomly. If something got changed in a file, then presumably the code is there for a reason.

---

<div class="post-metadata">

**Author:** ![TheVinn](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/thevinn/32/806_2.png) [@TheVinn](https://forum.juce.com/u/TheVinn)\
**Post date:** [June 15, 2012, 2:48pm UTC](https://forum.juce.com/t/adding-a-framework-changes-1000-lines/8838/5 "2012-06-15T14:48:56Z")

</div>

> [@jules](#):
>
> It doesn’t just change files randomly. If something got changed in a file, then presumably the code is there for a reason.

I agree, my presumption is that there is a reason for the change. But I can’t find it. Check out this commit:

> <https://github.com/vinniefalco/DSPFiltersDemo/commit/0d516f7dd06b9c0b21aad8586397b36889adeae3>

All I did was modify the .jucer file to add some frameworks to the OS X targets. Of course the .pbxproj is different since we expect it to have the new frameworks added. But the .vcxproj changed as well, along with everything else produced by IntroJucer. Is this expected behavior?

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [June 15, 2012, 4:04pm UTC](https://forum.juce.com/t/adding-a-framework-changes-1000-lines/8838/6 "2012-06-15T16:04:49Z")

</div>

Just looks to me like your diff tool just did a crap job, making it _look_ like everything’s changed, when in fact not much really has.

---

<div class="post-metadata">

**Author:** ![TheVinn](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/thevinn/32/806_2.png) [@TheVinn](https://forum.juce.com/u/TheVinn)\
**Post date:** [June 15, 2012, 4:28pm UTC](https://forum.juce.com/t/adding-a-framework-changes-1000-lines/8838/7 "2012-06-15T16:28:38Z")

</div>

> [@jules](#):
>
> Just looks to me like your diff tool just did a crap job, making it _look_ like everything’s changed, when in fact not much really has.

Fair enough. So let’s forget about the quantity of the change and instead focus on the quality. Why should the Visual Studio projects have changed at all?

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [June 15, 2012, 4:33pm UTC](https://forum.juce.com/t/adding-a-framework-changes-1000-lines/8838/8 "2012-06-15T16:33:11Z")

</div>

> [@](#):
>
> Why should the Visual Studio projects have changed at all?

I don’t know, but surely if you look at what the differences are, that’ll answer your question? Maybe I updated the introjucer since the last time you generated those files.

---

<div class="post-metadata">

**Author:** ![TheVinn](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/thevinn/32/806_2.png) [@TheVinn](https://forum.juce.com/u/TheVinn)\
**Post date:** [June 15, 2012, 4:33pm UTC](https://forum.juce.com/t/adding-a-framework-changes-1000-lines/8838/9 "2012-06-15T16:33:46Z")

</div>

> [@jules](#):
>
> I don’t know, but surely if you look at what the differences are, that’ll answer your question? Maybe I updated the introjucer since the last time you generated those files.

I don’t see any difference. Could it be line endings?

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [June 15, 2012, 6:04pm UTC](https://forum.juce.com/t/adding-a-framework-changes-1000-lines/8838/10 "2012-06-15T18:04:57Z")

</div>

> [@](#):
>
> Could it be line endings?

Yeah, maybe.

---

<div class="post-metadata">

**Author:** ![jfitzpat](https://avatars.discourse-cdn.com/v4/letter/j/22d042/32.png) [@jfitzpat](https://forum.juce.com/u/jfitzpat)\
**Post date:** [June 16, 2012, 12:59am UTC](https://forum.juce.com/t/adding-a-framework-changes-1000-lines/8838/11 "2012-06-16T00:59:23Z")

</div>

A lot depends on how you have .gitconfig setup. I generally don’t get line endings and whitespace showing up as false commits.

-jjf

---

<div class="post-metadata">

**Author:** ![TheVinn](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/thevinn/32/806_2.png) [@TheVinn](https://forum.juce.com/u/TheVinn)\
**Post date:** [June 16, 2012, 12:59am UTC](https://forum.juce.com/t/adding-a-framework-changes-1000-lines/8838/12 "2012-06-16T00:59:56Z")

</div>

I have core.autocrlf set to true

---

<div class="post-metadata">

**Author:** ![bdejong](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/bdejong/32/288_2.png) [@bdejong](https://forum.juce.com/u/bdejong)\
**Post date:** [June 20, 2012, 3:25pm UTC](https://forum.juce.com/t/adding-a-framework-changes-1000-lines/8838/13 "2012-06-20T15:25:26Z")

</div>

Are you perhaps mixing using the Introjucer on mac and on pc? 🙂

- bram

---

<div class="post-metadata">

**Author:** ![TheVinn](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/thevinn/32/806_2.png) [@TheVinn](https://forum.juce.com/u/TheVinn)\
**Post date:** [June 20, 2012, 3:33pm UTC](https://forum.juce.com/t/adding-a-framework-changes-1000-lines/8838/14 "2012-06-20T15:33:17Z")

</div>

> [@bdejong](#):
>
> Are you perhaps mixing using the Introjucer on mac and on pc? 🙂

Yep…

---

<div class="post-metadata">

**Author:** ![bdejong](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/bdejong/32/288_2.png) [@bdejong](https://forum.juce.com/u/bdejong)\
**Post date:** [June 20, 2012, 4:05pm UTC](https://forum.juce.com/t/adding-a-framework-changes-1000-lines/8838/15 "2012-06-20T16:05:18Z")

</div>

there you go…  
osx and windows version of the introjucer generate different endlines!  
I flagged this before, …

- bram

---

<div class="post-metadata">

**Author:** ![bdejong](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/bdejong/32/288_2.png) [@bdejong](https://forum.juce.com/u/bdejong)\
**Post date:** [June 20, 2012, 4:08pm UTC](https://forum.juce.com/t/adding-a-framework-changes-1000-lines/8838/16 "2012-06-20T16:08:16Z")

</div>

actually… I didn’t:  
[http://rawmaterialsoftware.com/viewtopic.php?f=7&t=9220](http://rawmaterialsoftware.com/viewtopic.php?f=7&t=9220)  
I was actually complaining that the line-endings were the same 😃  
so, um, … never mind me!

- bram

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [June 20, 2012, 4:49pm UTC](https://forum.juce.com/t/adding-a-framework-changes-1000-lines/8838/17 "2012-06-20T16:49:26Z")

</div>

> [@](#):
>
> osx and windows version of the introjucer generate different endlines!

Nope. The end-lines that the introjucer generates are the same on all platforms. Most likely is that some other editor that Vinnie is using has converted the endings.

Like I’ve mentioned elsewhere, I use a little app that scans for and replaces any rogue end-lines before I check anything into GIT, to catch anything like this that editors may have secretly changed.
