Re: [swift-dev] [Swift CI] Build Failure: OSS - Swift Package - Ubuntu 16.04 (swift 3.1) #148

2017-01-17 Thread Slava Pestov via swift-dev
Looks like this PR needs to go into 3.1 branch:

https://github.com/apple/swift-corelibs-foundation/pull/772/files

Philippe, do you cherry picking it over?

Slava

> On Jan 17, 2017, at 5:20 PM, Joe Groff  wrote:
> 
> Sorry, I may have cc'ed you on the wrong build failure. This one:
> 
> https://ci.swift.org/job/oss-swift-3.1-incremental-RA-linux-ubuntu-16_04/220/consoleFull#-2017091709ee1a197b-acac-4b17-83cf-a53b95139a76
> 
> fails with:
> 
> Foundation/Data.swift:1115:20: error: var '_backing' is internal and cannot 
> be referenced from an '@inline(__always)' function
> 
>return _backing.length
>   ^
> Foundation/Data.swift:914:18: note: var '_backing' is not '@_versioned' or 
> public
>internal var _backing : _DataStorage
> ^
> 
> -Joe
___
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev


Re: [swift-dev] Support for per-project code styles in SourceKit

2017-01-17 Thread Robert Widmann via swift-dev
My tweet was inflammatory, so excuse me (I was actually mad at Travis and 
vented about this instead).

However, I think deeper integration with SourceKit formatting and Xcode would 
be beneficial, though I don’t know how much useful discussion about this can 
take place on the lists given that it’s really up to the IDE team to implement 
this feature.

~Robert Widmann


> On Jan 17, 2017, at 12:25 PM, Daniel Martín via swift-dev 
>  wrote:
> 
> Hi, all:
> 
> I've been planning the implementation of per-project code style support for 
> Swift. Hopefully, if implemented correctly, this tweet would not be true 
> anymore: https://twitter.com/CodaFi_/status/821142027077238784
> 
> As I understand it, right now we have two possible kind of clients for 
> formatting Swift code (both are exercising code inside the swiftIDE library):
> 
> - Xcode: IDELanguageSupportUI, which is a plugin installed by default with 
> Xcode, is responsible for sending a message to SourceKit with the 
> "format.usetabs", "format.indentwidth", "format.tabwidth" parameters, among 
> others. SwiftIDE simply formats the region and updates the buffer. I suppose 
> other third party editors also use this mechanism.
> 
> - Swift-format: This little internal tool only uses a single function from 
> Formatting.cpp, passing the desired format options as a parameter.
> 
> In order to support different code styles per project, we need to make, at 
> least, the following changes:
> 
> - Create some factory methods for the CodeFormatOptions struct, one for each 
> supported style (initially, only "Default", or "Apple", ie. no tabs, 4 
> spaces, no case label indentation in switch statements).
> 
> - Add support for reading an optional .swift-format file inside the current 
> directory. This file would be a simple YAML file with key-value pairs like 
> this:
> 
>  .swift-format 
> 
> Style: Apple
> 
> IndentWidth: 2
> 
> Does it make sense? I'll try to maintain the same SourceKit interface so that 
> Xcode and other editors don't break and at the same time it's easy for them 
> to opt-in this feature.
> 
> Opinions?
> 
> Thanks,
> 
> Daniel Martín
> 
> ___
> swift-dev mailing list
> swift-dev@swift.org
> https://lists.swift.org/mailman/listinfo/swift-dev

___
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev


[swift-dev] [Swift CI] Build Still Failing: 0. OSS - Swift Incremental RA - Ubuntu 16.04 (swift 3.1) #221

2017-01-17 Thread no-reply--- via swift-dev
New issue found!Title: Report


  
  
 
 

 [FAILURE] oss-swift-3.1-incremental-RA-linux-ubuntu-16_04 [#221] 


  Build URL:https://ci.swift.org/job/oss-swift-3.1-incremental-RA-linux-ubuntu-16_04/221/
  Project:oss-swift-3.1-incremental-RA-linux-ubuntu-16_04
  Date of build:Tue, 17 Jan 2017 14:37:14 -0800
  Build duration:12 min


Identified problems:Compile Error: This build failed because of a compile error. Below is a list of all errors in the build log:Indication 1




  





  Changes
  

  Commit 9e50f93ce764b0113b2a609ec2e17b7bc6dbc90a by hughbellars: Add necessary definitions for Windows SDK


  edit: CMakeLists.txt


  
 

  Commit 6ec5d23fcb2c7384009effa4e76cf0e3ace4a003 by hughbellars: Fix build warning compiling llbuild


  edit: lib/Commands/NinjaBuildCommand.cpp


  
 

  Commit 5ddbfc056e85f247cc806500b9497e78bcdab24c by daniel_dunbar: [llbuildui] Start on a simple database viewer.


  add: products/ui/setup.py

  add: products/ui/llbuildui/app.py

  add: products/ui/README.md

  add: products/ui/llbuildui/__init__.py


  
 

  Commit dd6745b7e30d39a2b22b64fa0017a92b24b03663 by daniel_dunbar: [ui] Add a database model for the current schema.


  add: products/ui/llbuildui/model.py


  
 

  Commit 6c256172837e1f02f0938d9a72fc81a16fc78115 by daniel_dunbar: [ui] Add database sessions to app.


  edit: products/ui/README.md

  add: products/ui/llbuildui/database.py

  edit: products/ui/llbuildui/app.py

  add: products/ui/llbuildui/views.py


  
 

  Commit 7b58ad1a443ab393d9ac63613ea58947704627af by daniel_dunbar: [ui] Add support for walking build graph.


  edit: products/ui/llbuildui/views.py

  edit: products/ui/llbuildui/model.py


  
 

  Commit 488d62859b5da6bdee8ffeebc170a28350c6f363 by hughbellars: Use change directory instead of chdir on Windows


  edit: lib/Commands/NinjaCommand.cpp

  add: include/llbuild/Basic/PlatformUtility.h

  add: lib/Basic/PlatformUtility.cpp

  edit: lib/Commands/NinjaBuildCommand.cpp

  edit: lib/Basic/CMakeLists.txt

  edit: lib/BuildSystem/BuildSystemFrontend.cpp

  add: lib/Basic/LeanWindows.h


  
 

  Commit ef12ea120ad66cd77afa9b7f16179332b451d374 by garibovic: [BuildSystem] Disambiguate SkippedCommand into FailedDependencyCommand


  edit: lib/BuildSystem/BuildValue.cpp

  edit: include/llbuild/BuildSystem/ExternalCommand.h

  edit: lib/BuildSystem/BuildSystem.cpp

  edit: lib/BuildSystem/ExternalCommand.cpp

  edit: include/llbuild/BuildSystem/BuildValue.h


  
 

  Commit 7d307f2615083075c82c7e04f6f346057390a490 by garibovic: [BuildSystem] Support command skipping with shouldCommandStart.


  edit: include/llbuild/BuildSystem/BuildValue.h

  edit: llbuild.xcodeproj/project.pbxproj

  edit: lib/BuildSystem/BuildSystemFrontend.cpp

  edit: lib/BuildSystem/ExternalCommand.cpp

  add: unittests/BuildSystem/BuildSystemFrontendTest.cpp

  edit: lib/BuildSystem/BuildValue.cpp

  edit: lib/BuildSystem/BuildSystem.cpp

  edit: products/libllbuild/BuildSystem-C-API.cpp

  edit: products/libllbuild/public-api/llbuild/buildsystem.h

  edit: include/llbuild/BuildSystem/BuildSystem.h

  edit: unittests/BuildSystem/CMakeLists.txt

  edit: include/llbuild/BuildSystem/BuildSystemFrontend.h


  
 

  Commit 419838073bba67756cbd3523e59df2ad80c5c01e by bbuegling: Disable analyzer for `raw_ostream.cpp`


  edit: llbuild.xcodeproj/project.pbxproj


  
 

  Commit 8da2c6c5dc4e750f2231922b30f784c8f40706db by bbuegling: Fix races in `LaneBasedExecutionQueueTest`


  edit: unittests/BuildSystem/BuildSystemFrontendTest.cpp

  edit: unittests/BuildSystem/LaneBasedExecutionQueueTest.cpp

  edit: unittests/BuildSystem/CMakeLists.txt

  add: unittests/BuildSystem/TempDir.cpp

  edit: lib/BuildSystem/LaneBasedExecutionQueue.cpp

  edit: llbuild.xcodeproj/project.pbxproj

  add: unittests/BuildSystem/TempDir.hpp


  
 

  Commit e11300443abfeb6a1b8afa9532cfaac499f72225 by bbuegling: Improve error handling in `SQLiteBuildDB`


  edit: lib/Core/BuildEngine.cpp

  edit: products/libllbuild/Core-C-API.cpp

  edit: lib/BuildSystem/BuildSystem.cpp

  edit: lib/Commands/NinjaBuildCommand.cpp

  edit: unittests/Core/DepsBuildEngineTest.cpp

  edit: llbuild.xcodeproj/project.pbxproj

  add: unittests/Core/SQLiteBuildDBTest.cpp

  edit: 

Re: [swift-dev] [Swift CI] Build Failure: OSS - Swift Package - Ubuntu 16.10 (master) #272

2017-01-17 Thread mishal_shah via swift-dev
We might need to cherry-pick this fix in swift-3.1-branch, because I merged 
master into swift-3.1-branch today. 

Thanks, 
Mishal Shah
> On Jan 17, 2017, at 2:41 PM, Doug Coleman  wrote:
> 
> This has been fixed by merging https://github.com/apple/swift/pull/4788 
> .
> 
> Next build should be clean.
>> On Jan 17, 2017, at 2:39 PM, no-re...@swift.org  
>> wrote:
>> 
>> [FAILURE] oss-swift-package-linux-ubuntu-16_10 [#272]
>> 
>> Build URL:   
>> https://ci.swift.org/job/oss-swift-package-linux-ubuntu-16_10/272/ 
>> 
>> Project: oss-swift-package-linux-ubuntu-16_10
>> Date of build:   Tue, 17 Jan 2017 13:47:40 -0800
>> Build duration:  52 min
>> Identified problems:
>> 
>> Compile Error: This build failed because of a compile error. Below is a list 
>> of all errors in the build log:
>> Indication 1 
>> 
>> Changes
>> 
>> Commit 764fc0aa133d24945f6c0a774cbb992c04a15d64 by moiseev:
>> Replacing M_PI with .pi
>> 
>> edit: test/stdlib/TestAffineTransform.swift
>> edit: stdlib/public/SDK/Foundation/AffineTransform.swift
>> 
>> Commit b8a722ee99556e004da55efc538d16d84a5bf86f by moiseev:
>> Fixing the AffineTransform test
>> 
>> edit: test/stdlib/TestAffineTransform.swift
>> 
>> Commit a8dec7fa438c980d5bb25156e9c06c1dbf700ce6 by tinysun.net 
>> :
>> [stdlib] Fixed for Cygwin
>> 
>> edit: 
>> validation-test/StdlibUnittest/ChildProcessShutdown/FailIfChildCrashesDuringShutdown.swift
>> edit: 
>> validation-test/StdlibUnittest/ChildProcessShutdown/FailIfChildExitsDuringShutdown.swift
>> edit: stdlib/public/core/FloatingPoint.swift.gyb
>> edit: stdlib/private/StdlibUnittest/StdlibCoreExtras.swift
>> edit: stdlib/private/SwiftPrivatePthreadExtras/CMakeLists.txt
>> edit: stdlib/public/core/CTypes.swift
>> edit: stdlib/public/core/FloatingPointTypes.swift.gyb
>> edit: stdlib/private/SwiftPrivateLibcExtras/SwiftPrivateLibcExtras.swift
>> edit: stdlib/private/SwiftPrivatePthreadExtras/PthreadBarriers.swift
>> edit: validation-test/StdlibUnittest/Stdin.swift
>> edit: stdlib/public/Platform/tgmath.swift.gyb
>> edit: 
>> stdlib/private/SwiftPrivatePthreadExtras/SwiftPrivatePthreadExtras.swift
>> edit: stdlib/private/SwiftPrivateLibcExtras/Subprocess.swift
>> edit: stdlib/private/StdlibUnittest/CMakeLists.txt
>> edit: 
>> validation-test/StdlibUnittest/ChildProcessShutdown/PassIfChildCrashedDuringTestExecution.swift
>> edit: stdlib/public/core/Policy.swift
>> edit: stdlib/private/StdlibUnittest/StdlibUnittest.swift.gyb
>> edit: stdlib/public/runtime/MutexWin32.cpp
>> edit: cmake/modules/AddSwift.cmake
>> add: validation-test/StdlibUnittest/Cygwin.swift
>> edit: stdlib/private/StdlibUnittest/RaceTest.swift
>> edit: stdlib/public/core/FloatingPointParsing.swift.gyb
>> edit: stdlib/public/Platform/Platform.swift
>> edit: stdlib/private/SwiftPrivateLibcExtras/CMakeLists.txt
>> edit: stdlib/public/core/Runtime.swift.gyb
>> 
>> Commit 3dfd0f74f081648fad3b8bc55b373c498fc7e724 by ben_cohen:
>> refactor sequence append growth logic
>> 
>> edit: stdlib/public/core/Arrays.swift.gyb
>> 
>> Commit 2f1a3e16172c71c1a0538609655e8da2b2e55bb7 by fs.output:
>> [AST] Remove unused property 'TrailingSemiLoc' from Stmt and Expr
>> 
>> edit: lib/Parse/ParseStmt.cpp
>> edit: include/swift/AST/Stmt.h
>> edit: include/swift/AST/Expr.h
>> 
>> Commit 055ee489081f72bec7477f9f4b0319aeabf201a4 by fs.output:
>> [Parse] Split Decl list parsing from parseList()
>> 
>> edit: test/Parse/ConditionalCompilation/decl_parse_errors.swift
>> edit: include/swift/AST/Decl.h
>> edit: include/swift/Parse/Parser.h
>> edit: test/Parse/trailing-semi.swift
>> edit: lib/Parse/ParseDecl.cpp
>> edit: lib/Parse/ParseStmt.cpp
>> 
>> Commit c92dbe5319f16834ac4253fadc90340e499c6294 by fs.output:
>> [Parse] Remove declaration list specific logic from parseList()
>> 
>> edit: lib/Parse/ParseExpr.cpp
>> edit: lib/Parse/Parser.cpp
>> edit: include/swift/Parse/Parser.h
>> edit: lib/Parse/ParseType.cpp
>> edit: lib/Parse/ParsePattern.cpp
>> edit: lib/Parse/ParseSIL.cpp
>> 
>> Commit 35b0ffeff8713ee93abe9a093ed8e0edbd11cf97 by xedin:
>> [Diagnostics] Fix diagnoseImplicitSelfErrors to accept only valid
>> 
>> delete: validation-test/compiler_crashers/28603-argumentlabels-size-1.swift
>> edit: lib/Sema/CSDiag.cpp
>> add: 
>> validation-test/compiler_crashers_fixed/28603-argumentlabels-size-1.swift
>> 
>> Commit 1c5a26129de69decb40905a3f71a7dd3623760c7 by github:
>> Fixed typo
>> 
>> edit: docs/proposals/Concurrency.rst
>> 
>> Commit a2c64103dd0bc3d0a322133b4d7fabc04c8954b9 by aschwaighofer:
>> Fix a iteration invalidation bug
>> 
>> edit: lib/SILOptimizer/Transforms/Devirtualizer.cpp
>> 
>> Commit b2efca54d6d872d7b7008ecc47d6c6d0a1910c53 by moiseev:
>> Removing unnecessary 

Re: [swift-dev] [Swift CI] Build Failure: OSS - Swift Package - Ubuntu 16.10 (master) #272

2017-01-17 Thread Doug Coleman via swift-dev
This has been fixed by merging https://github.com/apple/swift/pull/4788 
.

Next build should be clean.
> On Jan 17, 2017, at 2:39 PM, no-re...@swift.org wrote:
> 
> [FAILURE] oss-swift-package-linux-ubuntu-16_10 [#272]
> 
> Build URL:
> https://ci.swift.org/job/oss-swift-package-linux-ubuntu-16_10/272/ 
> 
> Project:  oss-swift-package-linux-ubuntu-16_10
> Date of build:Tue, 17 Jan 2017 13:47:40 -0800
> Build duration:   52 min
> Identified problems:
> 
> Compile Error: This build failed because of a compile error. Below is a list 
> of all errors in the build log:
> Indication 1 
> 
> Changes
> 
> Commit 764fc0aa133d24945f6c0a774cbb992c04a15d64 by moiseev:
> Replacing M_PI with .pi
> 
> edit: test/stdlib/TestAffineTransform.swift
> edit: stdlib/public/SDK/Foundation/AffineTransform.swift
> 
> Commit b8a722ee99556e004da55efc538d16d84a5bf86f by moiseev:
> Fixing the AffineTransform test
> 
> edit: test/stdlib/TestAffineTransform.swift
> 
> Commit a8dec7fa438c980d5bb25156e9c06c1dbf700ce6 by tinysun.net 
> :
> [stdlib] Fixed for Cygwin
> 
> edit: 
> validation-test/StdlibUnittest/ChildProcessShutdown/FailIfChildCrashesDuringShutdown.swift
> edit: 
> validation-test/StdlibUnittest/ChildProcessShutdown/FailIfChildExitsDuringShutdown.swift
> edit: stdlib/public/core/FloatingPoint.swift.gyb
> edit: stdlib/private/StdlibUnittest/StdlibCoreExtras.swift
> edit: stdlib/private/SwiftPrivatePthreadExtras/CMakeLists.txt
> edit: stdlib/public/core/CTypes.swift
> edit: stdlib/public/core/FloatingPointTypes.swift.gyb
> edit: stdlib/private/SwiftPrivateLibcExtras/SwiftPrivateLibcExtras.swift
> edit: stdlib/private/SwiftPrivatePthreadExtras/PthreadBarriers.swift
> edit: validation-test/StdlibUnittest/Stdin.swift
> edit: stdlib/public/Platform/tgmath.swift.gyb
> edit: stdlib/private/SwiftPrivatePthreadExtras/SwiftPrivatePthreadExtras.swift
> edit: stdlib/private/SwiftPrivateLibcExtras/Subprocess.swift
> edit: stdlib/private/StdlibUnittest/CMakeLists.txt
> edit: 
> validation-test/StdlibUnittest/ChildProcessShutdown/PassIfChildCrashedDuringTestExecution.swift
> edit: stdlib/public/core/Policy.swift
> edit: stdlib/private/StdlibUnittest/StdlibUnittest.swift.gyb
> edit: stdlib/public/runtime/MutexWin32.cpp
> edit: cmake/modules/AddSwift.cmake
> add: validation-test/StdlibUnittest/Cygwin.swift
> edit: stdlib/private/StdlibUnittest/RaceTest.swift
> edit: stdlib/public/core/FloatingPointParsing.swift.gyb
> edit: stdlib/public/Platform/Platform.swift
> edit: stdlib/private/SwiftPrivateLibcExtras/CMakeLists.txt
> edit: stdlib/public/core/Runtime.swift.gyb
> 
> Commit 3dfd0f74f081648fad3b8bc55b373c498fc7e724 by ben_cohen:
> refactor sequence append growth logic
> 
> edit: stdlib/public/core/Arrays.swift.gyb
> 
> Commit 2f1a3e16172c71c1a0538609655e8da2b2e55bb7 by fs.output:
> [AST] Remove unused property 'TrailingSemiLoc' from Stmt and Expr
> 
> edit: lib/Parse/ParseStmt.cpp
> edit: include/swift/AST/Stmt.h
> edit: include/swift/AST/Expr.h
> 
> Commit 055ee489081f72bec7477f9f4b0319aeabf201a4 by fs.output:
> [Parse] Split Decl list parsing from parseList()
> 
> edit: test/Parse/ConditionalCompilation/decl_parse_errors.swift
> edit: include/swift/AST/Decl.h
> edit: include/swift/Parse/Parser.h
> edit: test/Parse/trailing-semi.swift
> edit: lib/Parse/ParseDecl.cpp
> edit: lib/Parse/ParseStmt.cpp
> 
> Commit c92dbe5319f16834ac4253fadc90340e499c6294 by fs.output:
> [Parse] Remove declaration list specific logic from parseList()
> 
> edit: lib/Parse/ParseExpr.cpp
> edit: lib/Parse/Parser.cpp
> edit: include/swift/Parse/Parser.h
> edit: lib/Parse/ParseType.cpp
> edit: lib/Parse/ParsePattern.cpp
> edit: lib/Parse/ParseSIL.cpp
> 
> Commit 35b0ffeff8713ee93abe9a093ed8e0edbd11cf97 by xedin:
> [Diagnostics] Fix diagnoseImplicitSelfErrors to accept only valid
> 
> delete: validation-test/compiler_crashers/28603-argumentlabels-size-1.swift
> edit: lib/Sema/CSDiag.cpp
> add: validation-test/compiler_crashers_fixed/28603-argumentlabels-size-1.swift
> 
> Commit 1c5a26129de69decb40905a3f71a7dd3623760c7 by github:
> Fixed typo
> 
> edit: docs/proposals/Concurrency.rst
> 
> Commit a2c64103dd0bc3d0a322133b4d7fabc04c8954b9 by aschwaighofer:
> Fix a iteration invalidation bug
> 
> edit: lib/SILOptimizer/Transforms/Devirtualizer.cpp
> 
> Commit b2efca54d6d872d7b7008ecc47d6c6d0a1910c53 by moiseev:
> Removing unnecessary CGFloat->Double->CGFloat conversions
> 
> edit: stdlib/public/SDK/Foundation/AffineTransform.swift
> edit: test/stdlib/TestAffineTransform.swift
> 
> Commit 5a83bef7b3775369ce3bb240cba54e5cf2fa060f by github:
> tweak outer loop comment
> 
> edit: stdlib/public/core/Arrays.swift.gyb
> 
> Commit 4ec9dd6331abdd3b5d102c9225dea9702d282450 by bruno.cardoso:
> [Modules] Fix 

Re: [swift-lldb-dev] [swift-build-dev] Final merge from master to swift-3.1-branch

2017-01-17 Thread mishal_shah via swift-lldb-dev
I just merged master into swift-3.1-branch for following projects. 

https://github.com/apple/swift 
https://github.com/apple/swift-lldb 
https://github.com/apple/swift-corelibs-foundation 

https://github.com/apple/swift-corelibs-libdispatch 

https://github.com/apple/swift-corelibs-xctest 

https://github.com/apple/swift-integration-tests 

https://github.com/apple/swift-xcode-playground-support 

https://github.com/apple/swift-package-manager 

https://github.com/apple/swift-llbuild 

Thanks, 
Mishal Shah
> On Jan 13, 2017, at 6:49 AM, Nicole Jacque via swift-build-dev 
>  wrote:
> 
> Hello Swift Developers-
> 
> As outlined in Ted’s Swift 3.1 Release Process blog post, for the past month, 
> we’ve been periodically merging master to the swift-3.1-branch branch.  We 
> will be doing one final merge of master to the swift-3.1-branch on January 17 
> at noon (Pacific). Note that we’ve pushed this back a day due to the MLK Jr. 
> Day holiday.   Any changes landed after that time will require approval via a 
> pull request against the swift-3.1-branch branch in order to include them in 
> the Swift 3.1 release.  After this final merge, development on master will be 
> targeted for Swift 4.
> 
> Snapshots of the swift-3.1-branch will be made available on the downloads 
> page (https://swift.org/download/ ).  Snapshots 
> will be made available daily, if all package generation CI tests are passing.
> ___
> swift-build-dev mailing list
> swift-build-...@swift.org
> https://lists.swift.org/mailman/listinfo/swift-build-dev

___
swift-lldb-dev mailing list
swift-lldb-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-lldb-dev


Re: [swift-dev] [swift-build-dev] Final merge from master to swift-3.1-branch

2017-01-17 Thread mishal_shah via swift-dev
I just merged master into swift-3.1-branch for following projects. 

https://github.com/apple/swift 
https://github.com/apple/swift-lldb 
https://github.com/apple/swift-corelibs-foundation 

https://github.com/apple/swift-corelibs-libdispatch 

https://github.com/apple/swift-corelibs-xctest 

https://github.com/apple/swift-integration-tests 

https://github.com/apple/swift-xcode-playground-support 

https://github.com/apple/swift-package-manager 

https://github.com/apple/swift-llbuild 

Thanks, 
Mishal Shah
> On Jan 13, 2017, at 6:49 AM, Nicole Jacque via swift-build-dev 
>  wrote:
> 
> Hello Swift Developers-
> 
> As outlined in Ted’s Swift 3.1 Release Process blog post, for the past month, 
> we’ve been periodically merging master to the swift-3.1-branch branch.  We 
> will be doing one final merge of master to the swift-3.1-branch on January 17 
> at noon (Pacific). Note that we’ve pushed this back a day due to the MLK Jr. 
> Day holiday.   Any changes landed after that time will require approval via a 
> pull request against the swift-3.1-branch branch in order to include them in 
> the Swift 3.1 release.  After this final merge, development on master will be 
> targeted for Swift 4.
> 
> Snapshots of the swift-3.1-branch will be made available on the downloads 
> page (https://swift.org/download/ ).  Snapshots 
> will be made available daily, if all package generation CI tests are passing.
> ___
> swift-build-dev mailing list
> swift-build-...@swift.org
> https://lists.swift.org/mailman/listinfo/swift-build-dev

___
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev


[swift-dev] updating Clang/LLVM stable branches

2017-01-17 Thread Bob Wilson via swift-dev
As I mentioned yesterday, once the last swift-3.1 merge is done, we are 
planning to update the stable branches for Clang/LLVM to use the new swift-4.0 
branches that are aligned with LLVM 4.0. I was expecting we would do that 
today, but we’re going to wait until tomorrow (Wednesday) morning instead. That 
will give us time to get all the master-next bots passing and should also be 
less disruptive than making the switch in the middle of the day.
___
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev


Re: [swift-dev] [Swift CI] Build Failure: 0. OSS - Swift Incremental RA - Ubuntu 16.10 (master) #1428

2017-01-17 Thread Joe Groff via swift-dev
Philippe notes that this is because swift #4788, which this depends on, needs 
to go in too:

https://github.com/apple/swift-corelibs-foundation/pull/638#issuecomment-273302035
 


-Joe

> On Jan 17, 2017, at 1:12 PM, no-re...@swift.org wrote:
> 
> [FAILURE] oss-swift-incremental-RA-linux-ubuntu-16_10 [#1428]
> 
> Build URL:
> https://ci.swift.org/job/oss-swift-incremental-RA-linux-ubuntu-16_10/1428/ 
> 
> Project:  oss-swift-incremental-RA-linux-ubuntu-16_10
> Date of build:Tue, 17 Jan 2017 13:08:57 -0800
> Build duration:   3 min 29 sec
> Identified problems:
> 
> Compile Error: This build failed because of a compile error. Below is a list 
> of all errors in the build log:
> Indication 1 
> 
> Tests:
> 
> Name: Swift(linux-x86_64)
> Failed: 0 test(s), Passed: 8826 test(s), Total: 8826 test(s)
> Name: Swift-Unit
> Failed: 0 test(s), Passed: 239 test(s), Total: 239 test(s)
> 
> Changes
> 
> Commit 1c5a26129de69decb40905a3f71a7dd3623760c7 by github:
> Fixed typo
> 
> edit: docs/proposals/Concurrency.rst
> 
> Commit dca3023cb5278f48e40648fcb812fa6c1a636a58 by phausler:
> Implemented _resolveCurrent (#638)
> 
> edit: Foundation/NSHost.swift

___
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev


Re: [swift-dev] [swift-build-dev] Build triggers for 14.04 as well as 16.04?

2017-01-17 Thread Ankit Aggarwal via swift-dev
+swift-dev

swift-dev is right place for this. swift-build-dev is for SwiftPM and llbuild 
related discussions.

> On 17-Jan-2017, at 11:36 PM, Alex Blewitt via swift-build-dev 
>  wrote:
> 
> Recently I've had a change cause problems on Ubuntu 14.04 where the problem 
> wasn't visible on Ubuntu 16.04. Because they passed the smoke tests, they 
> were committed, yet immediately broke the 14.04 build and were reverted.
> 
> Is there a way we can get the @swift-ci please test handler to kick off an 
> equivalent 14.04 build, or provide another mechanism to allow a pull request 
> to be explicitly tested for Ubuntu 14.04 compatibility? That way we can avoid 
> such breakages in the future.
> 
> Thanks,
> 
> Alex
> ___
> swift-build-dev mailing list
> swift-build-...@swift.org
> https://lists.swift.org/mailman/listinfo/swift-build-dev

___
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev


[swift-dev] Support for per-project code styles in SourceKit

2017-01-17 Thread Daniel Martín via swift-dev

Hi, all:

I've been planning the implementation of per-project code style support 
for Swift. Hopefully, if implemented correctly, this tweet would not be 
true anymore: https://twitter.com/CodaFi_/status/821142027077238784


As I understand it, right now we have two possible kind of clients for 
formatting Swift code (both are exercising code inside the swiftIDE 
library):


- Xcode: IDELanguageSupportUI, which is a plugin installed by default 
with Xcode, is responsible for sending a message to SourceKit with the 
"format.usetabs", "format.indentwidth", "format.tabwidth" parameters, 
among others. SwiftIDE simply formats the region and updates the buffer. 
I suppose other third party editors also use this mechanism.


- Swift-format: This little internal tool only uses a single function 
from Formatting.cpp, passing the desired format options as a parameter.


In order to support different code styles per project, we need to make, 
at least, the following changes:


- Create some factory methods for the CodeFormatOptions struct, one for 
each supported style (initially, only "Default", or "Apple", ie. no 
tabs, 4 spaces, no case label indentation in switch statements).


- Add support for reading an optional .swift-format file inside the 
current directory. This file would be a simple YAML file with key-value 
pairs like this:


 .swift-format 

Style: Apple

IndentWidth: 2

Does it make sense? I'll try to maintain the same SourceKit interface so 
that Xcode and other editors don't break and at the same time it's easy 
for them to opt-in this feature.


Opinions?

Thanks,

Daniel Martín

___
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev


Re: [swift-dev] [Swift CI] Build Failure: 0. OSS - Swift Incremental RA - Ubuntu 16.10 (master) #1417

2017-01-17 Thread Arnold Schwaighofer via swift-dev
I think this one needs a clean workspace. I kicked off a run of 
clean-workspace-linux-4.


https://ci.swift.org/job/oss-swift-incremental-RA-linux-ubuntu-16_10/


> On Jan 17, 2017, at 7:22 AM, no-re...@swift.org wrote:
> 
> [FAILURE] oss-swift-incremental-RA-linux-ubuntu-16_10 [#1417]
> 
> Build URL:
> https://ci.swift.org/job/oss-swift-incremental-RA-linux-ubuntu-16_10/1417/ 
> 
> Project:  oss-swift-incremental-RA-linux-ubuntu-16_10
> Date of build:Tue, 17 Jan 2017 07:22:26 -0800
> Build duration:   28 sec
> Identified problems:
> 
> Compile Error: This build failed because of a compile error. Below is a list 
> of all errors in the build log:
> Indication 1 
> 
> Tests:
> 
> Name: Swift(linux-x86_64)
> Failed: 0 test(s), Passed: 8825 test(s), Total: 8825 test(s)
> Name: Swift-Unit
> Failed: 0 test(s), Passed: 239 test(s), Total: 239 test(s)
> 
> Changes
> 
> Commit 25fc295e4a4e6e035edb0ad388f5b9d2aa53b338 by alblue:
> Revert "Merge pull request #6807 from alblue/SR-1676"
> 
> edit: tools/SourceKit/CMakeLists.txt
> edit: CMakeLists.txt

___
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev


Re: [swift-dev] [Swift CI] Build Failure: 0. OSS - Swift Incremental RA - Ubuntu 14.04 - Long Test (master) #599

2017-01-17 Thread Arnold Schwaighofer via swift-dev
I have reverted  f7836ae0c86726723bb11c7cb7f7ab04a57294c9 using PR 
https://github.com/apple/swift/pull/6852 


> On Jan 17, 2017, at 12:12 AM, no-re...@swift.org wrote:
> 
> [FAILURE] oss-swift-incremental-RA-linux-ubuntu-14_04-long-test [#599]
> 
> Build URL:
> https://ci.swift.org/job/oss-swift-incremental-RA-linux-ubuntu-14_04-long-test/599/
>  
> 
> Project:  oss-swift-incremental-RA-linux-ubuntu-14_04-long-test
> Date of build:Mon, 16 Jan 2017 23:52:30 -0800
> Build duration:   20 min
> Identified problems:
> 
> Compile Error: This build failed because of a compile error. Below is a list 
> of all errors in the build log:
> Indication 1 
> 
> Changes
> 
> Commit f7836ae0c86726723bb11c7cb7f7ab04a57294c9 by alblue:
> Enable sourcekitd to be built by default on Linux
> 
> edit: CMakeLists.txt
> edit: tools/SourceKit/CMakeLists.txt
> 
> Commit aa0cfa33af7363d559b472a005f6748e8c0648e1 by kevin:
> Better default domain for CustomNSError
> 
> edit: stdlib/public/SDK/Foundation/NSError.swift
> edit: test/stdlib/ErrorBridged.swift

___
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev


Re: [swift-dev] [Swift CI] Build Failure: OSS - Swift Package - Ubuntu 14.04 (master) #114

2017-01-17 Thread Arnold Schwaighofer via swift-dev
I have reverted  f7836ae0c86726723bb11c7cb7f7ab04a57294c9 using PR 
https://github.com/apple/swift/pull/6852 


> On Jan 17, 2017, at 3:22 AM, no-re...@swift.org wrote:
> 
> [FAILURE] oss-swift-package-linux-ubuntu-14_04 [#114]
> 
> Build URL:
> https://ci.swift.org/job/oss-swift-package-linux-ubuntu-14_04/114/ 
> 
> Project:  oss-swift-package-linux-ubuntu-14_04
> Date of build:Tue, 17 Jan 2017 03:04:13 -0800
> Build duration:   17 min
> Identified problems:
> 
> Compile Error: This build failed because of a compile error. Below is a list 
> of all errors in the build log:
> Indication 1 
> 
> Changes
> 
> Commit f7836ae0c86726723bb11c7cb7f7ab04a57294c9 by alblue:
> Enable sourcekitd to be built by default on Linux
> 
> edit: CMakeLists.txt
> edit: tools/SourceKit/CMakeLists.txt
> 
> Commit aa0cfa33af7363d559b472a005f6748e8c0648e1 by kevin:
> Better default domain for CustomNSError
> 
> edit: test/stdlib/ErrorBridged.swift
> edit: stdlib/public/SDK/Foundation/NSError.swift

___
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev


Re: [swift-dev] [Swift CI] Build Failure: 0. OSS - Swift Incremental RA - Ubuntu 14.04 (master) #613

2017-01-17 Thread Arnold Schwaighofer via swift-dev
I have reverted  f7836ae0c86726723bb11c7cb7f7ab04a57294c9 using PR 
https://github.com/apple/swift/pull/6852


> On Jan 17, 2017, at 12:12 AM, no-re...@swift.org wrote:
> 
> [FAILURE] oss-swift-incremental-RA-linux-ubuntu-14_04 [#613]
> 
> Build URL:
> https://ci.swift.org/job/oss-swift-incremental-RA-linux-ubuntu-14_04/613/
> Project:  oss-swift-incremental-RA-linux-ubuntu-14_04
> Date of build:Mon, 16 Jan 2017 23:52:23 -0800
> Build duration:   20 min
> Identified problems:
> 
>   • Compile Error: This build failed because of a compile error. Below is 
> a list of all errors in the build log:
>   • Indication 1
> 
> Changes
> 
>   • Commit f7836ae0c86726723bb11c7cb7f7ab04a57294c9 by alblue:
> Enable sourcekitd to be built by default on Linux
> 
>   • edit: tools/SourceKit/CMakeLists.txt
>   • edit: CMakeLists.txt
> 
>   • Commit aa0cfa33af7363d559b472a005f6748e8c0648e1 by kevin:
> Better default domain for CustomNSError
> 
>   • edit: test/stdlib/ErrorBridged.swift
>   • edit: stdlib/public/SDK/Foundation/NSError.swift

___
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev


Re: [swift-dev] [swift-build-dev] Reverting c85cbe

2017-01-17 Thread Alex Blewitt via swift-dev
Have created https://github.com/apple/swift/pull/6852 
 if that's easier to merge.

Alex

> On 17 Jan 2017, at 09:42, Ankit Aggarwal  wrote:
> 
> + swift-dev
> 
> 
>> On 17-Jan-2017, at 2:58 PM, Alex Blewitt via swift-build-dev 
>> > wrote:
>> 
>> Can someone revert my change 
>> https://github.com/apple/swift/commit/c85cbe5c785cd729b28e802bcfa69a549fa78df7
>>  
>> 
>>  (current tip of master)? It caused a build failure on the 14.04 bot again:
>> 
>> https://ci.swift.org/job/oss-swift-incremental-RA-linux-ubuntu-14_04/613/ 
>> 
>> 
>> In file included from allocator.c:21:
>> In file included from ./internal.h:616:
>>  <>./shims.h:252:2: error: unsupported compiler
>> #error unsupported compiler
>>  ^
>> 1 error generated.
>> 
>> It seems to be detecting/using /usr/bin/clang, which should be the right 
>> version to use, but somehow the setting isn't being passed down to the 
>> nested project.
>> 
>> Apologies again,
>> 
>> Alex
>> ___
>> swift-build-dev mailing list
>> swift-build-...@swift.org 
>> https://lists.swift.org/mailman/listinfo/swift-build-dev
> 

___
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev


Re: [swift-dev] [swift-build-dev] Reverting c85cbe

2017-01-17 Thread Ankit Aggarwal via swift-dev
+ swift-dev


> On 17-Jan-2017, at 2:58 PM, Alex Blewitt via swift-build-dev 
>  wrote:
> 
> Can someone revert my change 
> https://github.com/apple/swift/commit/c85cbe5c785cd729b28e802bcfa69a549fa78df7
>  
> 
>  (current tip of master)? It caused a build failure on the 14.04 bot again:
> 
> https://ci.swift.org/job/oss-swift-incremental-RA-linux-ubuntu-14_04/613/ 
> 
> 
> In file included from allocator.c:21:
> In file included from ./internal.h:616:
>  <>./shims.h:252:2: error: unsupported compiler
> #error unsupported compiler
>  ^
> 1 error generated.
> 
> It seems to be detecting/using /usr/bin/clang, which should be the right 
> version to use, but somehow the setting isn't being passed down to the nested 
> project.
> 
> Apologies again,
> 
> Alex
> ___
> swift-build-dev mailing list
> swift-build-...@swift.org
> https://lists.swift.org/mailman/listinfo/swift-build-dev

___
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev