Code Monkey home page Code Monkey logo

generator-swiftserver's Introduction

WARNING: This repository is no longer maintained ⚠️

The generated content is now available in our Swift static application.

This repository will not be updated. The repository will be kept available in read-only mode.

generator-swiftserver

Build Status codecov Version DownloadsMonthly DownloadsTotal License Greenkeeper badge

This module is a Yeoman generator for creating REST webservices based on the Kitura web framework with the Swift language.

This generator and the Yeoman library runs on Node.js and generates a Swift 5.0 application.

Contents

  1. Prerequisites
  2. Installation
  3. Usage
  4. Generated Artifacts
  5. Development
  6. Testing
  7. Contributing

Prerequisites

To use this module, you will need Node.js and Swift 5.0 installed on your Linux or macOS system. You can get Node.js from https://nodejs.org and Swift 5.0 from https://swift.org/download.

You will also need the Yeoman command line utility yo installed in your global Node.js module directory.

To install yo, run:

npm install -g yo

Installation

To install generator-swiftserver, run:

npm install -g generator-swiftserver

Usage

To create a Swift Server Generator project with no models defined, run:

yo swiftserver

To add a data model to your generated project, cd to the new project directory and run:

yo swiftserver:<model>

For more information on data models, check out this guide on Kitura.io.

Options

You can also change how generator-swiftserver is invoked by choosing options:

yo swiftserver [options]
Option Type Description
--init n/a Generate basic default scaffold without prompting user for input.
--skip-build n/a Skip building the generated application
--single-shot n/a Creates application without including generator metadata files
--bluemix Json Invoke generator-swiftserver using a bluemix json object
--name String Project name
--type String Give a specific type of application to generate. (web, bff, scaffold, crud)
--metrics Boolean Generate embedded metrics dashboard for project
--docker Boolean Generate Dockerfile for project
--healthcheck Boolean Add health checking to project
--openapi Boolean Add Kitura-OpenAPI to project
--spec Json Invoke generator-swiftserver using a spec json object

Run

To run the generated server, use: <project-dir>/.build/debug/<app-name>

Generated Artifacts

File Purpose
Dockerfile Configuration file for the run container
Dockerfile-tools Configuration file for the tools container
LICENSE License for generated project
Package.resolved Results of dependency resolution from Swift Package Manager
Package.swift Swift file containing dependencies and targets for project
README.md Instructions for building, running, and deploying the project
Sources/* Folder containing project source files
Tests/* Folder containing project test files
chart/* Folder containing Kubernetes Helm Chart files for project
cli-config.yml Yaml file containing mappings for various commands, files, and settings, utilized by the cli commands
manifest.yml Yaml file containing various information for deployment to IBM Cloud
spec.json JSON file containing information about the project, used to generate the project
myProjectName.xcodeproj Generated xcodeproj for project

Development

To get started with development, simply clone this repository and link it via npm:

git clone https://github.com/IBM-Swift/generator-swiftserver
cd generator-swiftserver
npm link

Testing

To run the unit tests, run:

npm test

Contributing

To contribute, you will need to fork the repository or branch off the develop branch.

Make sure to follow the conventional commit specification when contributing.

Once you are finished with your changes, run npm test to make sure all tests pass. Then, create a pull request against develop, and a team member will review and merge your pull request.

Once the pull request is merged, an auto generated pull request will be created against master to update the changelog and increase the versioning. After the auto-generated pull request has been merged to master, the version will be bumped and published to npm.

generator-swiftserver's People

Contributors

alembe avatar andrew-lees11 avatar dingwilson avatar djones6 avatar enriquel8 avatar gee4vee avatar greenkeeper[bot] avatar helenmasters avatar hhellyer avatar ianpartridge avatar jmeis avatar kweinmeister avatar kyemaloy97 avatar lroseblade avatar nfstein avatar rob-deans avatar rolivieri avatar sandmman avatar seabaylea avatar swiftdevops avatar tfrank64 avatar triceam avatar tunniclm avatar youming-lin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

generator-swiftserver's Issues

Application 500 error then crash

generator-swiftserver version 0.2.0

Application definition:

config.js:

{
  "appName": "test2",
  "store": "memory",
  "logger": "helium",
  "port": 8090
}

models/todo.json:

{
  "name": "todo",
  "plural": "todos",
  "classname": "Todo",
  "properties": {
    "id": {
      "type": "number",
      "id": true
    },
    "title": {
      "type": "string",
      "required": true
    },
    "completed": {
      "type": "boolean",
      "default": false
    },
    "order": {
      "type": "number"
    }
  }
}

Steps to reproduce:

$ curl -XPOST -H 'Content-Type: application/json' -d '{"title":"hi"}' http://localhost:8090/api/todos
{
  "title": "hi",
  "id": 1,
  "completed": false
}
$ curl -i -XPUT -H 'Content-Type: application/json' -d '{"completed": true}' http://localhost:8090/api/todo/1
HTTP/1.1 500 Server Error
Date: Tue, 29 Nov 2016 18:28:00 GMT
Content-Length: 0
Connection: Keep-Alive
Keep-Alive: timeout=60, max=99
$ curl http://localhost:8090/api/todo/1
curl: (52) Empty reply from server

Server crashed:

assertion failed: file /home/vagrant/reltest/repos/test2/Packages/GeneratedSwiftServer-0.2.0/Sources/Model.swift, line 178
Current stack trace:
0    libswiftCore.so                    0x00007f217c19c300 swift_reportError + 117
1    libswiftCore.so                    0x00007f217c1ad630 _swift_stdlib_reportFatalErrorInFile + 103
2    libswiftCore.so                    0x00007f217c1539f3 <unavailable> + 0
3    libswiftCore.so                    0x00007f217bfbd1c3 <unavailable> + 0
4    libswiftCore.so                    0x00007f217c153960 <unavailable> + 0
5    libswiftCore.so                    0x00007f217bfbd5ec <unavailable> + 0
6    libswiftCore.so                    0x00007f217c0ffae9 <unavailable> + 0
7    libswiftCore.so                    0x00007f217bfbd1c3 <unavailable> + 0
8    libswiftCore.so                    0x00007f217bfbce40 _assertionFailed(StaticString, String, StaticString, UInt, flags : UInt32) -> Never + 144
9    test2                              0x0000000000539810 <unavailable> + 0
...

An in-range update of standard is breaking the build 🚨

Version 10.0.3 of standard just got published.

Branch Build failing 🚨
Dependency standard
Current Version 10.0.2
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

As standard is “only” a devDependency of this project it might not break production or downstream projects, but “only” your build or test tools – preventing new deploys or publishes.

I recommend you give this issue a high priority. I’m sure you can resolve this 💪

Status Details
  • continuous-integration/travis-ci/push The Travis CI build failed Details

Release Notes v10.0.3
  • Internal changes (incremented dependency versions)
Commits

The new version differs by 99 commits.

  • 91e80a1 10.0.3
  • 82a0d5c changelog
  • d22676e Merge pull request #963 from daper/patch-1
  • cfb84fe Remove tilde to lock down eslint-config-standard-jsx version
  • 4a6e0d0 Update dependecy of eslint-config-standard-jsx
  • ac9e09e Merge pull request #961 from igorsantos07/patch-1
  • 873bc9b Adding valid example for no-unsafe-negation
  • f00b169 more feross/standard -> standard/standard
  • 9770303 Merge pull request #954 from standard/security
  • 8cc2285 Add a security policy
  • 2fa8b0f change more feross/standard -> standard/standard
  • e79a692 Merge branch 'devjin0617-translation-kr'
  • 34490f7 Merge branch 'translation-kr' of https://github.com/devjin0617/standard into devjin0617-translation-kr
  • 6d59566 Merge pull request #953 from standard/translations
  • 3895bc6 move english readme/rules to docs/ folder

There are 99 commits in total.

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

An in-range update of swagger-parser is breaking the build 🚨

Version 3.4.2 of swagger-parser just got published.

Branch Build failing 🚨
Dependency swagger-parser
Current Version 3.4.1
Type dependency

This version is covered by your current version range and after updating it in your project the build failed.

swagger-parser is a direct dependency of this project this is very likely breaking your project right now. If other packages depend on you it’s very likely also breaking them.
I recommend you give this issue a very high priority. I’m sure you can resolve this 💪

Status Details
  • continuous-integration/travis-ci/push The Travis CI build could not complete due to an error Details

Commits

The new version differs by 26 commits.

  • 49c74ae release v3.4.2
  • 3968e67 removed unnecessary steps from the Travis CI build
  • 50bce4d changed the default values of Karma environment variables in Travis CI
  • 12ac2b4 removed version number from the readme
  • bde8e8a ESLint auto-fixes
  • 263937e cleaned up the bower.json file
  • 48ecbdf cleaned-up the .gitignore file
  • 14b8b63 Switched to ESLint-Config-Modular
  • 02c22c1 Removed old tooling that is no longer needed (JSCS, CodeClimate, Yeoman)
  • a6485e5 Removed Node 0.x from the Travis CI script and added Node 5, 6, 7, and 8
  • 8f12a18 Merge branch 'master' of https://github.com/BigstickCarpet/swagger-parser
  • 1e837cb Merge pull request #71 from shankiesan/master
  • 0877ede added a notice about upcoming OpenAPI v3 support
  • 7cbbce4 Updated the "real world" tests to include over 500 APIs from the APIs.guru directory
  • cd411fd updated dependencies

There are 26 commits in total.

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

Add a system for selecting a Store and injecting it into the Model system

Currently the Model.store is hard-coded in Application.init() but it should be configurable.

The application manages the dependencies for available Store implementations, so it is the appropriate place to instantiate the store. Use the config.json to configure which store to use and extra parameters (eg connection information).

Since we are trying to keep main.swift relatively small and free of business logic (since it cannot be imported by tests), the logic for creating the store needs to be in a separate module.

In the future we would like to make the different Store implementations optional dependencies, which means either using reflection or code generation (until #canImport becomes a reality) to avoid having static imports of all recognised store implementations. Experiments with using reflection have proven awkward and code generation seems like the most viable option at the moment. With that in mind, it makes sense for the generator to create the store instantiation code in the Generated module, even if it only contains static imports for now.

Related: IBM-Swift/GeneratedSwiftServer#6

XCode build fails with linker error

When compiling generated projects (for example a Scaffold Web project) and generating an XCode project, it fails to compile with:

! Apple Mach-O Linker (ld) Error
  ! "__TZFE10FoundationPs5Errorg20localizedDescriptionSS", referenced from:
  ! Linker command failed with exit code 1 (use -v to see invocation)

Only print out valid options for generator

When you run yo swiftserver --help we are given multiple options, but a few of them don't work properly. We need to either fix them or remove them. For example, the -h option does not do anything, it just starts the generator.

Review:

  • -h
  • --skip-cache
  • --skip-install

Related to #41

Improve error message when starting server

Because there is no models directory created by the app generator, the runtime code produces an error saying it is missing, instead of saying there are no model to load.

We should exit when 'swift build' command fails

We print out swift build command is complete followed by Next steps and Done running kitura generator even when the swift compilation has failed. We shouldn't do this as the later information which we're printing out is useless if the swift build has failed.

Support 2 update operations using HTTP PUT and PATCH

It would make more sense to define HTTP PUT to replace the data model with the data supplied and for HTTP PATCH to apply partial updates to the data model with the data supplied.

For example, consider an existing model:

{ "id": 1, "title": "Best practice", "author": "Jon" }

Then, PUT { "id": 1, "title": "Worst practice" }
would result in: { "id": 1, "title": "Worst practice" }

And, UPDATE { "id": 1, "title": "Worst practice" }
would result in: { "id": 1, "title": "Worst practice", "author": "Jon" }

An in-range update of mocha is breaking the build 🚨

Version 4.0.1 of mocha was just published.

Branch Build failing 🚨
Dependency mocha
Current Version 4.0.0
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

mocha is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push The Travis CI build failed Details

Release Notes v4.0.1

4.0.1 / 2017-10-05

🐛 Fixes

Commits

The new version differs by 6 commits.

  • eb8bf8d Release v4.0.1
  • 3b485ea update CHANGELOG.md for v4.0.1 [ci skip]
  • 96e5c1a upgrade eslint to v4.8.0
  • d7cff37 Update growl to 1.10.3
  • 0cdd921 remove preversion script; test on publish; closes #2999
  • f49c0ce Fix changelog issues/pr URLs (#3047)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of bluebird is breaking the build 🚨

Version 3.5.1 of bluebird just got published.

Branch Build failing 🚨
Dependency bluebird
Current Version 3.5.0
Type dependency

This version is covered by your current version range and after updating it in your project the build failed.

bluebird is a direct dependency of this project this is very likely breaking your project right now. If other packages depend on you it’s very likely also breaking them.
I recommend you give this issue a very high priority. I’m sure you can resolve this 💪

Status Details
  • continuous-integration/travis-ci/push The Travis CI build could not complete due to an error Details

Release Notes v3.5.1

Bugfixes:

  • Fix false positive unhandled rejection when using async await (#1404)
  • Fix false positive when reporting error as non-error (#990)
Commits

The new version differs by 26 commits.

  • dcfa52b Release v3.5.1
  • 48c8591 Fixes #1404
  • 3c93a91 Revert "Update default.html"
  • 5155a7b Merge pull request #1463 from gabegorelick/isError
  • 3f7ccf4 Better error check
  • f8f4a01 Merge pull request #1462 from themez/patch-1
  • 18891c9 Fix title style
  • b2b14c2 Update default.html
  • a61aa1c tiny grammar change (#1457)
  • 2c9f7a4 Update tap.md (#1438)
  • 3a7fcbb fixes markdow headers (#1437)
  • e889c0d Correct a tiny tiny typo (#1431)
  • e03f12c improve .all() docs (#1436)
  • 4f90934 Updated links (#1420)
  • 3d2e57f Add Node.js 7+8 to Travis build matrix (#1412)

There are 26 commits in total.

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

Support Swift 3.1.1

Update our generated Package.swift and generated Swift code to work with Swift 3.1.1.

We will skip Swift 3.1 as it has a crash bug that affects Kitura-WebSocket (which is used by SwiftMetrics and others).

An in-range update of nock is breaking the build 🚨

Version 9.0.17 of nock just got published.

Branch Build failing 🚨
Dependency nock
Current Version 9.0.16
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

As nock is “only” a devDependency of this project it might not break production or downstream projects, but “only” your build or test tools – preventing new deploys or publishes.

I recommend you give this issue a high priority. I’m sure you can resolve this 💪

Status Details
  • continuous-integration/travis-ci/push The Travis CI build could not complete due to an error Details

Commits

The new version differs by 11 commits.

  • 4772c15 9.0.17
  • 0bf9eb4 835 support regex for both host and port with allowUnmocked
  • 1c3f3e1 835-added-fail-test-case
  • e911688 docs(README) - fix info about mocking (#971)
  • 978a3f0 Document replyWithFile using Content-Type header
  • 1c6ae5b fix readme typo
  • fe440ec fix grammar
  • 93341d3 Improve Match Logging
  • 1612e36 Update README.md
  • 97d1ea1 fix: printing recorded requests with output_objects resulted in output of [Object Object]
  • 664ee63 chore(CHANGELOG): 9.0.16

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

fyi - xcode 8.32 / sierra 10.12.4 (16E195) - failing

cd yo
➜ yo yo swiftserver
? ==========================================================================
We're constantly looking for ways to make yo better!
May we anonymously report usage statistics to improve the tool over time?
More info: https://github.com/yeoman/insight & http://yeoman.io
========================================================================== Yes
? What's the name of your application? twit
? Enter the name of the directory to contain the project: twit
? Select type of project: Scaffold a starter
? Select capability presets for application pattern: Basic
? Select capabilities: Static web file serving, Embedded metrics dashboard, Docker files,
Bluemix cloud deployment
? Generate boilerplate for Bluemix services: Auto-scaling
create .swiftservergenerator-project
create .gitignore
create config.json
create spec.json
create .swift-version
create LICENSE
create Sources/Application/Application.swift
create public/.keep
create README.md
create Sources/Application/Routes/.keep
create Sources/twit/main.swift
create .dockerignore
create Dockerfile-tools
create Dockerfile
create cli-config.yml
create .cfignore
create manifest.yml
create .bluemix/pipeline.yml
create .bluemix/toolchain.yml
create .bluemix/deploy.json
create Package.swift
Apple Swift version 3.1 (swiftlang-802.0.53 clang-802.0.42)
Target: x86_64-apple-macosx10.9
Fetching https://github.com/IBM-Swift/Kitura.git
Fetching https://github.com/IBM-Swift/HeliumLogger.git
Fetching https://github.com/IBM-Swift/CloudConfiguration.git
Fetching https://github.com/RuntimeTools/SwiftMetrics.git
Fetching https://github.com/IBM-Swift/Kitura-net.git
Fetching https://github.com/IBM-Swift/SwiftyJSON.git
Fetching https://github.com/IBM-Swift/Kitura-TemplateEngine.git
Fetching https://github.com/IBM-Swift/LoggerAPI.git
Fetching https://github.com/IBM-Swift/BlueSocket.git
Fetching https://github.com/IBM-Swift/CCurl.git
Fetching https://github.com/IBM-Swift/BlueSSLService.git
Fetching https://github.com/IBM-Swift/Swift-cfenv.git
Fetching https://github.com/IBM-Swift/Configuration.git
Fetching https://github.com/RuntimeTools/omr-agentcore.git
Fetching https://github.com/IBM-Swift/Kitura-WebSocket.git
Fetching https://github.com/IBM-Swift/Kitura-Request.git
error: fatal error: Error raised at top level: Error Domain=NSCocoaErrorDomain Code=4 "“org.eclipse.paho.mqtt.c” couldn’t be moved to “src” because either the former doesn't exist, or the folder containing the latter doesn't exist." UserInfo={NSSourceFilePathErrorKey=/Users/jpope/Documents/gitWorkspace/yo/twit/org.eclipse.paho.mqtt.c, NSUserStringVariant=(
Move
), NSDestinationFilePath=/Users/jpope/Documents/gitWorkspace/yo/twit/src/paho, NSFilePath=/Users/jpope/Documents/gitWorkspace/yo/twit/org.eclipse.paho.mqtt.c, NSUnderlyingError=0x7fd3d9dda430 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}: file /Library/Caches/com.apple.xbs/Sources/swiftlang/swiftlang-802.0.53/src/swift/stdlib/public/core/ErrorType.swift, line 188
Current stack trace:
0 libswiftCore.dylib 0x000000010d34f130 swift_reportError + 129
1 libswiftCore.dylib 0x000000010d36ba40 _swift_stdlib_reportFatalErrorInFile + 100
2 libswiftCore.dylib 0x000000010d15cba0 (_assertionFailure(StaticString, String, file : StaticString, line : UInt, flags : UInt32) -> Never).(closure #1).(closure #1).(closure #1) + 124
3 libswiftCore.dylib 0x000000010d313360 partial apply for (_assertionFailure(StaticString, String, file : StaticString, line : UInt, flags : UInt32) -> Never).(closure #1).(closure #1).(closure #1) + 93
4 libswiftCore.dylib 0x000000010d15c250 specialized specialized StaticString.withUTF8Buffer ((UnsafeBufferPointer) -> A) -> A + 342
5 libswiftCore.dylib 0x000000010d315880 partial apply for (_assertionFailure(StaticString, String, file : StaticString, line : UInt, flags : UInt32) -> Never).(closure #1).(closure #1) + 144
6 libswiftCore.dylib 0x000000010d15c760 specialized specialized String._withUnsafeBufferPointerToUTF8 ((UnsafeBufferPointer) throws -> A) throws -> A + 784
7 libswiftCore.dylib 0x000000010d2d6f40 partial apply for (_assertionFailure(StaticString, String, file : StaticString, line : UInt, flags : UInt32) -> Never).(closure #1) + 185
8 libswiftCore.dylib 0x000000010d15c250 specialized specialized StaticString.withUTF8Buffer ((UnsafeBufferPointer) -> A) -> A + 342
9 libswiftCore.dylib 0x000000010d28d130 specialized _assertionFailure(StaticString, String, file : StaticString, line : UInt, flags : UInt32) -> Never + 144
10 libswiftCore.dylib 0x000000010d185130 swift_unexpectedError_merged + 289
12 swift 0x0000000104adcb40 llvm::MCJIT::runFunction(llvm::Function*, llvm::ArrayRefllvm::GenericValue) + 655
13 swift 0x0000000104ae2700 llvm::ExecutionEngine::runFunctionAsMain(llvm::Function*, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > > > const&, char const* const*) + 707
14 swift 0x0000000103fdef30 swift::RunImmediately(swift::CompilerInstance&, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > > > const&, swift::IRGenOptions&, swift::SILOptions const&) + 3385
15 swift 0x0000000103fa7ff0 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 50738
16 swift 0x0000000103f5fa10 main + 9052
17 libdyld.dylib 0x00007fffe6a1e234 start + 1
0 swift 0x00000001071944f7 PrintStackTraceSignalHandler(void*) + 39
1 swift 0x00000001071939a6 SignalHandler(int) + 646
2 libsystem_platform.dylib 0x00007fffe6c2db3a _sigtramp + 26
3 libsystem_platform.dylib 000000000000000000 _sigtramp + 423437536
4 libswiftCore.dylib 0x000000010d185251 swift_unexpectedError_merged + 289
5 libswiftCore.dylib 0x000000010a0a59ee swift_unexpectedError_merged + 4243720382
6 swift 0x0000000104adcdcf llvm::MCJIT::runFunction(llvm::Function*, llvm::ArrayRefllvm::GenericValue) + 655
7 swift 0x0000000104ae29c3 llvm::ExecutionEngine::runFunctionAsMain(llvm::Function*, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > > > const&, char const* const*) + 707
8 swift 0x0000000103fdfc69 swift::RunImmediately(swift::CompilerInstance&, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > > > const&, swift::IRGenOptions&, swift::SILOptions const&) + 3385
9 swift 0x0000000103fb4622 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 50738
10 swift 0x0000000103f61d6c main + 9052
11 libdyld.dylib 0x00007fffe6a1e235 start + 1
12 libdyld.dylib 0x0000000000000011 start + 425598429
Stack dump:
0. Program arguments: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -interpret /var/folders/_g/9f_q1hw907s4pdbctf_lj9n19x5s_w/T/TemporaryFile.0JoxQF.swift -target x86_64-apple-macosx10.10 -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -I /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/pm -module-name main -lPackageDescription -- -fileno 6
Child process exited with signal
Error swiftserver

swift build command completed with errors

.build-docker not in .cfignore or .gitignore file

Since the docker image has changes to use .build-docker directory for the Swift project build within the docker image (so that it won't clash with .build for the host build), we need to add .build-docker to the following ignore files:

  • .cfignore
  • .gitignore

An in-range update of mocha is breaking the build 🚨

Version 3.5.0 of mocha just got published.

Branch Build failing 🚨
Dependency mocha
Current Version 3.4.2
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

As mocha is “only” a devDependency of this project it might not break production or downstream projects, but “only” your build or test tools – preventing new deploys or publishes.

I recommend you give this issue a high priority. I’m sure you can resolve this 💪

Status Details
  • continuous-integration/travis-ci/push The Travis CI build could not complete due to an error Details

Release Notes free-as-in-freezing

3.5.0 / 2017-07-31

📰 News

  • Mocha now has a code of conduct (thanks @kungapal!).
  • Old issues and PRs are now being marked "stale" by Probot's "Stale" plugin. If an issue is marked as such, and you would like to see it remain open, simply add a new comment to the ticket or PR.
  • WARNING: Support for non-ES5-compliant environments will be dropped starting with version 4.0.0 of Mocha!

🔒 Security Fixes

🎉 Enhancements

  • #2696: Add --forbid-only and --forbid-pending flags. Use these in CI or hooks to ensure tests aren't accidentally being skipped! (@charlierudolph)
  • #2813: Support Node.js 8's --napi-modules flag (@jupp0r)

🔩 Other

Commits

The new version differs by 34 commits.

  • 82d879f Release v3.5.0
  • bf687ce update mocha.js for v3.5.0
  • ec73c9a update date for release of v3.5.0 in CHANGELOG [ci skip]
  • 1ba2cfc update CHANGELOG.md for v3.5.0 [ci skip]
  • 065e14e remove custom install script from travis (no longer needed)
  • 4e87046 update karma-sauce-launcher URL for npm@5
  • 6886ccc increase timeout for slow-grepping test
  • 2408d90 Make dependencies use older version of readable-stream to work around incompatibilities introduced by 2.3.0 on June 19th
  • 68a1466 Try not clearing the env for debug in the integration test and see if that fixes Node 0.10 on AppVeyor; if need be, some other fix/workaround can be applied to handle whatever was up with debug without causing this issue
  • 958fbb4 Update new tests to work in browser per test hierarchy reorganization
  • 1df7c94 Merge pull request #2704 from seppevs/increase_test_coverage_of_mocha_js
  • 1f270cd Stop timing out (#2889)
  • 27c7496 upgrade to [email protected]; closes #2859 (#2860)
  • 50fc47d fix CI; closes #2867 (#2868)
  • 1b1377c Add test for ignoreLeaks and fix descriptions

There are 34 commits in total.

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

Improve error message in the build generator when swift is not on the path

This is what the error message looks like now:

? What's the name of your application? testapp
? Enter the name of the directory to contain the project: testapp
identical config.json
identical Package.swift
identical Sources/testapp/main.swift
identical .swiftservergenerator-project
identical definitions/testapp.yaml
events.js:141
      throw er; // Unhandled 'error' event
      ^

Error: spawn swift ENOENT
    at exports._errnoException (util.js:870:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32)
    at onErrorNT (internal/child_process.js:344:16)
    at nextTickCallbackWith2Args (node.js:441:9)
    at process._tickCallback (node.js:355:17)

An in-range update of chalk is breaking the build 🚨

Version 2.2.0 of chalk was just published.

Branch Build failing 🚨
Dependency chalk
Current Version 2.1.0
Type dependency

This version is covered by your current version range and after updating it in your project the build failed.

chalk is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • continuous-integration/travis-ci/push The Travis CI build failed Details

Release Notes v2.2.0

Chalk now comes with TypeScript type definitions built-in. f653b06
Note: It's incompatible with @types/chalk if you're currently using that: #215

v2.1.0...v2.2.0

Commits

The new version differs by 7 commits.

  • d86db88 2.2.0
  • f0533f6 Bump dev dependencies
  • f653b06 Add TypeScript definitions (#207)
  • 5e6d5fd Add strip-ansi-stream to related modules
  • 7898eda Update chalk-pipe description
  • 37db75e Add related package in the readme
  • a9f0c77 Use a Map and some minor regex tweaks

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of request is breaking the build 🚨

Version 2.82.0 of request just got published.

Branch Build failing 🚨
Dependency request
Current Version 2.81.0
Type dependency

This version is covered by your current version range and after updating it in your project the build failed.

request is a direct dependency of this project this is very likely breaking your project right now. If other packages depend on you it’s very likely also breaking them.
I recommend you give this issue a very high priority. I’m sure you can resolve this 💪

Status Details
  • continuous-integration/travis-ci/push The Travis CI build failed Details

Commits

The new version differs by 27 commits.

  • 0ab5c36 2.82.0
  • ffdf0d3 Updating deps.
  • 4386836 Merge branch 'master' of github.com:request/request
  • 1527407 Merge pull request #2703 from ryysud/add-nodejs-v8-to-travis
  • 3afcbf8 Merge branch 'master' of github.com:request/request
  • 479143d Update of hawk and qs to latest version (#2751)
  • 169be11 Add Node.js v8 to Travis CI
  • 643c43a Fixed some text in README.md (#2658)
  • e8fca51 chore(package): update aws-sign2 to version 0.7.0 (#2635)
  • e999203 Update README to simplify & update convenience methods (#2641)
  • 6f286c8 lint fix, PR from pre-standard was merged with passing tests
  • a765593 Add convenience method for HTTP OPTIONS (#2541)
  • 52d6945 Add promise support section to README (#2605)
  • b12a624 refactor(lint): replace eslint with standard (#2579)
  • 29a0b17 Merge pull request #2598 from request/greenkeeper-codecov-2.0.2

There are 27 commits in total.

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

Update the tests for the decoupled generators

The new generators don't generate anything in the app, model and property generators so all those currently fail.
The refresh generator now generates all the files which is currently not being tested.

An in-range update of nyc is breaking the build 🚨

Version 11.2.1 of nyc just got published.

Branch Build failing 🚨
Dependency nyc
Current Version 11.2.0
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

As nyc is “only” a devDependency of this project it might not break production or downstream projects, but “only” your build or test tools – preventing new deploys or publishes.

I recommend you give this issue a high priority. I’m sure you can resolve this 💪

Status Details
  • continuous-integration/travis-ci/push The Travis CI build could not complete due to an error Details

Commits

The new version differs by 3 commits.

  • 87281f9 chore(release): 11.2.1
  • 3bd1527 fix: create temp directory when --no-clean flag is set #663 (#664)
  • a10d478 fix: apply exclude logic before remapping coverage (#667)

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

Yeoman flags changes to the Swagger as conflicts

At the moment, the Swagger file is a purely generated file (we do expect to change this in the near future). While this is so, we want to accept all changes without marking them as conflicts during a generator to keep the user experience clean.

An in-range update of rimraf is breaking the build 🚨

Version 2.6.2 of rimraf just got published.

Branch Build failing 🚨
Dependency rimraf
Current Version 2.6.1
Type dependency

This version is covered by your current version range and after updating it in your project the build failed.

rimraf is a direct dependency of this project this is very likely breaking your project right now. If other packages depend on you it’s very likely also breaking them.
I recommend you give this issue a very high priority. I’m sure you can resolve this 💪

Status Details
  • continuous-integration/travis-ci/push The Travis CI build could not complete due to an error Details

Commits

The new version differs by 2 commits.

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

Error when the project is generated

I have macOS Sierra, Xcode 8.3.2 and Swift 3.1.
I used yo swiftserver to generate a new project and most of the packages were fetched.
But after this i got this error:

Fetching https://github.com/IBM-Swift/HeliumLogger.git
Fetching https://github.com/IBM-Swift/CloudConfiguration.git
Fetching https://github.com/RuntimeTools/SwiftMetrics.git
Fetching https://github.com/IBM-Swift/Kitura-net.git
Fetching https://github.com/IBM-Swift/SwiftyJSON.git
Fetching https://github.com/IBM-Swift/Kitura-TemplateEngine.git
Fetching https://github.com/IBM-Swift/LoggerAPI.git
Fetching https://github.com/IBM-Swift/BlueSocket.git
Fetching https://github.com/IBM-Swift/CCurl.git
Fetching https://github.com/IBM-Swift/BlueSSLService.git
Fetching https://github.com/IBM-Swift/Swift-cfenv.git
Fetching https://github.com/IBM-Swift/Configuration.git
Fetching https://github.com/RuntimeTools/omr-agentcore.git
Fetching https://github.com/IBM-Swift/Kitura-WebSocket.git
Fetching https://github.com/IBM-Swift/Kitura-Request.git
error: fatal error: Error raised at top level: Error Domain=NSCocoaErrorDomain Code=4 "“org.eclipse.paho.mqtt.c” couldn’t be moved to “src” because either the former doesn't exist, or the folder containing the latter doesn't exist." UserInfo={NSSourceFilePathErrorKey=/Users/lucianboboc/Desktop/kituraApp/org.eclipse.paho.mqtt.c, NSUserStringVariant=(
    Move
), NSDestinationFilePath=/Users/lucianboboc/Desktop/kituraApp/src/paho, NSFilePath=/Users/lucianboboc/Desktop/kituraApp/org.eclipse.paho.mqtt.c, NSUnderlyingError=0x7f853b4252c0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}: file /Library/Caches/com.apple.xbs/Sources/swiftlang/swiftlang-802.0.53/src/swift/stdlib/public/core/ErrorType.swift, line 188
Current stack trace:
0    libswiftCore.dylib                 0x00000001133da130 swift_reportError + 129
1    libswiftCore.dylib                 0x00000001133f6a40 _swift_stdlib_reportFatalErrorInFile + 100
2    libswiftCore.dylib                 0x00000001131e7ba0 (_assertionFailure(StaticString, String, file : StaticString, line : UInt, flags : UInt32) -> Never).(closure #1).(closure #1).(closure #1) + 124
3    libswiftCore.dylib                 0x000000011339e360 partial apply for (_assertionFailure(StaticString, String, file : StaticString, line : UInt, flags : UInt32) -> Never).(closure #1).(closure #1).(closure #1) + 93
4    libswiftCore.dylib                 0x00000001131e7250 specialized specialized StaticString.withUTF8Buffer<A> ((UnsafeBufferPointer<UInt8>) -> A) -> A + 342
5    libswiftCore.dylib                 0x00000001133a0880 partial apply for (_assertionFailure(StaticString, String, file : StaticString, line : UInt, flags : UInt32) -> Never).(closure #1).(closure #1) + 144
6    libswiftCore.dylib                 0x00000001131e7760 specialized specialized String._withUnsafeBufferPointerToUTF8<A> ((UnsafeBufferPointer<UInt8>) throws -> A) throws -> A + 784
7    libswiftCore.dylib                 0x0000000113361f40 partial apply for (_assertionFailure(StaticString, String, file : StaticString, line : UInt, flags : UInt32) -> Never).(closure #1) + 185
8    libswiftCore.dylib                 0x00000001131e7250 specialized specialized StaticString.withUTF8Buffer<A> ((UnsafeBufferPointer<UInt8>) -> A) -> A + 342
9    libswiftCore.dylib                 0x0000000113318130 specialized _assertionFailure(StaticString, String, file : StaticString, line : UInt, flags : UInt32) -> Never + 144
10   libswiftCore.dylib                 0x0000000113210130 swift_unexpectedError_merged + 289
12   swift                              0x000000010bfb9b40 llvm::MCJIT::runFunction(llvm::Function*, llvm::ArrayRef<llvm::GenericValue>) + 655
13   swift                              0x000000010bfbf700 llvm::ExecutionEngine::runFunctionAsMain(llvm::Function*, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&, char const* const*) + 707
14   swift                              0x000000010b4bbf30 swift::RunImmediately(swift::CompilerInstance&, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&, swift::IRGenOptions&, swift::SILOptions const&) + 3385
15   swift                              0x000000010b484ff0 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 50738
16   swift                              0x000000010b43ca10 main + 9052
17   libdyld.dylib                      0x00007fffc82e8234 start + 1
0  swift                    0x000000010e6714f7 PrintStackTraceSignalHandler(void*) + 39
1  swift                    0x000000010e6709a6 SignalHandler(int) + 646
2  libsystem_platform.dylib 0x00007fffc84f7b3a _sigtramp + 26
3  libsystem_platform.dylib 000000000000000000 _sigtramp + 934315232
4  libswiftCore.dylib       0x0000000113210251 swift_unexpectedError_merged + 289
5  libswiftCore.dylib       0x0000000111554a81 swift_unexpectedError_merged + 4264839505
6  swift                    0x000000010bfb9dcf llvm::MCJIT::runFunction(llvm::Function*, llvm::ArrayRef<llvm::GenericValue>) + 655
7  swift                    0x000000010bfbf9c3 llvm::ExecutionEngine::runFunctionAsMain(llvm::Function*, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&, char const* const*) + 707
8  swift                    0x000000010b4bcc69 swift::RunImmediately(swift::CompilerInstance&, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&, swift::IRGenOptions&, swift::SILOptions const&) + 3385
9  swift                    0x000000010b491622 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 50738
10 swift                    0x000000010b43ed6c main + 9052
11 libdyld.dylib            0x00007fffc82e8235 start + 1
12 libdyld.dylib            0x0000000000000011 start + 936476125
Stack dump:
0.	Program arguments: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -interpret /var/folders/ds/tl29rv6n75n1x9lf__8yxtt40000gn/T/TemporaryFile.oHP2YK.swift -target x86_64-apple-macosx10.10 -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -I /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/pm -module-name main -lPackageDescription -- -fileno 6
Child process exited with signal
Error swiftserver```

An in-range update of js-yaml is breaking the build 🚨

Version 3.9.1 of js-yaml just got published.

Branch Build failing 🚨
Dependency js-yaml
Current Version 3.9.0
Type dependency

This version is covered by your current version range and after updating it in your project the build failed.

js-yaml is a direct dependency of this project this is very likely breaking your project right now. If other packages depend on you it’s very likely also breaking them.
I recommend you give this issue a very high priority. I’m sure you can resolve this 💪

Status Details
  • continuous-integration/travis-ci/push The Travis CI build could not complete due to an error Details

Commits

The new version differs by 3 commits.

  • 82945a7 3.9.1 released
  • c7111db Browser files rebuild
  • 698f65b Ensure stack is present for custom errors (fixes #351) (#360)

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

An in-range update of codecov is breaking the build 🚨

Version 2.3.0 of codecov just got published.

Branch Build failing 🚨
Dependency codecov
Current Version 2.2.0
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

As codecov is “only” a devDependency of this project it might not break production or downstream projects, but “only” your build or test tools – preventing new deploys or publishes.

I recommend you give this issue a high priority. I’m sure you can resolve this 💪

Status Details
  • continuous-integration/travis-ci/push The Travis CI build could not complete due to an error Details

Commits

The new version differs by 6 commits.

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.