Giter VIP home page Giter VIP logo

Comments (7)

robm92 avatar robm92 commented on May 17, 2024

I just ran the same thing this morning and all is working as it should.
I'm afraid I don't know why but perhaps there were some teething issues with Swift 3.1 that were resolved?

from bluesslservice.

leanne63 avatar leanne63 commented on May 17, 2024

I'm having this same problem intermittently. This was happening last week, and I thought it was something about my setup. Then, it started working, and has been working just fine until about an hour ago. Now, it won't fetch. I've been able to fetch all the other packages for my project, but it just gets stuck on this one, acting as though it's in an infinite loop.

I can't imagine what's happening. It's just retrieving files, yeah? Maybe this package is on a server that's going bad or suddenly becoming very busy?

My Package.swift file looks like:

import PackageDescription
let package = Package(
	name: "KituraAPI",
	targets: [],
	dependencies: [
		.Package(url: "https://github.com/IBM-Swift/Kitura.git", majorVersion: 1, minor: 7),
		.Package(url: "https://github.com/IBM-Swift/HeliumLogger.git", majorVersion: 1, minor: 7),
		.Package(url: "https://github.com/IBM-Swift/Swift-SMTP", Version(1,1,2)),
	]
)

from bluesslservice.

leanne63 avatar leanne63 commented on May 17, 2024

Here's where it sits, cursor blinking, Terminal title bar flashing:

$ swift build
Fetching https://github.com/IBM-Swift/Kitura.git
Fetching https://github.com/IBM-Swift/HeliumLogger.git
Fetching https://github.com/IBM-Swift/Swift-SMTP.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

I ctrl-c to exit eventually, wait awhile, then try again, but still not working

from bluesslservice.

leanne63 avatar leanne63 commented on May 17, 2024

For anyone who comes here later: my particular issue was caused by an invalid tag in Swift-SMTP.

To troubleshoot, I used swift build -v, which gives a (very) verbose listing of what's happening in the build process.

It was indeed looping, trying to fulfill the version dependency but blocked by the invalid tag.

from bluesslservice.

crspybits avatar crspybits commented on May 17, 2024

@leanne63 It sounds like you were seeing ongoing output, indicating looping. I'm seeing build hang at a fetch, but with the -v option, I see no ongoing output. In my case the build hangs at a different library (Fetching https://github.com/IBM-Swift/HeliumLogger.git).

from bluesslservice.

crspybits avatar crspybits commented on May 17, 2024

Well. It seems I spoke too soon. It just took a long time after the last Fetch. Maybe 10-20 minutes?

from bluesslservice.

leanne63 avatar leanne63 commented on May 17, 2024

This hang is the Swift Package Manager's way of indicating dependency hell. The trick is finding the one causing the problem. Use the -v option to get some ideas. Also, you might manually walk through your dependencies and their sub-dependencies. One of them is invalid or can't be resolved due to a conflict of some sort. In my case it was a bad tag; however, it's more likely to be two versions that can't get along.

from bluesslservice.

Related Issues (20)

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.