xcode 9 new build system too aggressive?

I will be editing a single file, and usually xcode will do a quick build as i change the code. then, abruptly, i make one more edit to the file and all of a sudden xcode decides to compile tons more. (little changes in the file, not defining new methods or classes or anything).

anybody else seeing this?

This does sound like a serious bug (and may be one I just fixed https://github.com/apple/swift-llbuild/pull/196), but if its specific to an Apple product please report bugs in Xcode on http://bugreporter.apple.com

- Daniel

···

On Nov 6, 2017, at 10:11 PM, David Baraff via swift-users <swift-users@swift.org> wrote:

I will be editing a single file, and usually xcode will do a quick build as i change the code. then, abruptly, i make one more edit to the file and all of a sudden xcode decides to compile tons more. (little changes in the file, not defining new methods or classes or anything).

anybody else seeing this?

_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

Ah. i hadn’t thought about the fact that often-time my first attempt to build fails. that might well be the deciding thing.
any idea how long before this will show up in a release xcode? weeks? months? a year?

···

Begin forwarded message:

From: Daniel Dunbar <daniel_dunbar@apple.com>
Subject: Re: [swift-users] xcode 9 new build system too aggressive?
Date: November 7, 2017 at 9:55:06 AM PST
To: David Baraff <davidbaraff@gmail.com>
Cc: swift-users <swift-users@swift.org>

This does sound like a serious bug (and may be one I just fixed https://github.com/apple/swift-llbuild/pull/196), but if its specific to an Apple product please report bugs in Xcode on http://bugreporter.apple.com

- Daniel

On Nov 6, 2017, at 10:11 PM, David Baraff via swift-users <swift-users@swift.org> wrote:

I will be editing a single file, and usually xcode will do a quick build as i change the code. then, abruptly, i make one more edit to the file and all of a sudden xcode decides to compile tons more. (little changes in the file, not defining new methods or classes or anything).

anybody else seeing this?

_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

I was just reminded of this issue by another thread (thanks Daniel Dunbar for https://github.com/apple/swift-llbuild/pull/196!)

Is it possible to cancel an SPM build cleanly? If I run swift build and then press Ctrl-C halfway through I end up in a weird broken state that requires a swift package clean before anything works again. Maybe because SPM thinks it’s still building the last job?

I ask because sometimes I start a build, realise I actually wanted to make one more change and then press start again. This works in Xcode and breaks in SPM.

Thanks,
Geordie

Ah. i hadn’t thought about the fact that often-time my first attempt to build fails. that might well be the deciding thing.
any idea how long before this will show up in a release xcode? weeks? months? a year?

We can’t comment on unreleased software schedules.

- Daniel

···

On Nov 7, 2017, at 10:18 AM, David Baraff <davidbaraff@gmail.com> wrote:

Begin forwarded message:

From: Daniel Dunbar <daniel_dunbar@apple.com <mailto:daniel_dunbar@apple.com>>
Subject: Re: [swift-users] xcode 9 new build system too aggressive?
Date: November 7, 2017 at 9:55:06 AM PST
To: David Baraff <davidbaraff@gmail.com <mailto:davidbaraff@gmail.com>>
Cc: swift-users <swift-users@swift.org <mailto:swift-users@swift.org>>

This does sound like a serious bug (and may be one I just fixed https://github.com/apple/swift-llbuild/pull/196), but if its specific to an Apple product please report bugs in Xcode on http://bugreporter.apple.com <http://bugreporter.apple.com/>

- Daniel

On Nov 6, 2017, at 10:11 PM, David Baraff via swift-users <swift-users@swift.org <mailto:swift-users@swift.org>> wrote:

I will be editing a single file, and usually xcode will do a quick build as i change the code. then, abruptly, i make one more edit to the file and all of a sudden xcode decides to compile tons more. (little changes in the file, not defining new methods or classes or anything).

anybody else seeing this?

_______________________________________________
swift-users mailing list
swift-users@swift.org <mailto:swift-users@swift.org>
https://lists.swift.org/mailman/listinfo/swift-users

I was just reminded of this issue by another thread (thanks Daniel Dunbar for https://github.com/apple/swift-llbuild/pull/196!)

Is it possible to cancel an SPM build cleanly? If I run swift build and then press Ctrl-C halfway through I end up in a weird broken state that requires a swift package clean before anything works again. Maybe because SPM thinks it’s still building the last job?

This is always a bug, please file!

FWIW, I cancel builds all the time and haven’t seen this issue, so it would be good to provide as many details as possible.

- Daniel

···

On Nov 7, 2017, at 10:25 AM, Geordie J <geojay@gmail.com> wrote:

I ask because sometimes I start a build, realise I actually wanted to make one more change and then press start again. This works in Xcode and breaks in SPM.

Thanks,
Geordie

From: Daniel Dunbar <daniel_dunbar@apple.com>
Subject: Re: [swift-users] xcode 9 new build system too aggressive?
Date: November 7, 2017 at 10:48:32 AM PST
To: David Baraff <davidbaraff@gmail.com>
Cc: swift-users <swift-users@swift.org>

Ah. i hadn’t thought about the fact that often-time my first attempt to build fails. that might well be the deciding thing.
any idea how long before this will show up in a release xcode? weeks? months? a year?

Oops, i didn’t look at your email address to realize you were at apple. (i thought you were an outside person who had made a change to swift stuff, and was asking for a rough time till “Apple notices your change.”)

awesome, looking forward to seeing this fix in the not too distant future. :slight_smile:

···

Begin forwarded message:

On Nov 7, 2017, at 10:18 AM, David Baraff <davidbaraff@gmail.com <mailto:davidbaraff@gmail.com>> wrote:

We can’t comment on unreleased software schedules.

- Daniel

Begin forwarded message:

From: Daniel Dunbar <daniel_dunbar@apple.com <mailto:daniel_dunbar@apple.com>>
Subject: Re: [swift-users] xcode 9 new build system too aggressive?
Date: November 7, 2017 at 9:55:06 AM PST
To: David Baraff <davidbaraff@gmail.com <mailto:davidbaraff@gmail.com>>
Cc: swift-users <swift-users@swift.org <mailto:swift-users@swift.org>>

This does sound like a serious bug (and may be one I just fixed https://github.com/apple/swift-llbuild/pull/196), but if its specific to an Apple product please report bugs in Xcode on http://bugreporter.apple.com <http://bugreporter.apple.com/>

- Daniel

On Nov 6, 2017, at 10:11 PM, David Baraff via swift-users <swift-users@swift.org <mailto:swift-users@swift.org>> wrote:

I will be editing a single file, and usually xcode will do a quick build as i change the code. then, abruptly, i make one more edit to the file and all of a sudden xcode decides to compile tons more. (little changes in the file, not defining new methods or classes or anything).

anybody else seeing this?

_______________________________________________
swift-users mailing list
swift-users@swift.org <mailto:swift-users@swift.org>
https://lists.swift.org/mailman/listinfo/swift-users