Hi Ed! When you see this Server starting... message, check the connection by opening a browser window and loading localhost:8080/hello. There isnât anything at just localhost:8080.
Hi. I am getting the following errors when I try to run this. I am running macOS Sonoma 14.2.1, Xcode 15.2, and Swift 5.9.2:
âŠ/
video-mcon-materials/CourseServer/.build/checkouts/vapor/Sources/Vapor/HTTP/Server/HTTPServer.swift:380:54: error: reference to captured var âapplicationâ in concurrently-executing code
application: application!,
^
âŠ/video-mcon-materials/CourseServer/.build/checkouts/vapor/Sources/Vapor/HTTP/Server/HTTPServer.swift:388:46: error: reference to captured var âapplicationâ in concurrently-executing code
application: application!,
I get this message whether I do âswift runâ from the command line, or use âopen Package.swiftâ and then try to run from within Xcode.
hi Kevin, yes the vapor version is usually the culprit! this course is based on our Modern Concurrency book, where this issue was raised and fixed recently. Iâll (soon) update this courseâs repo to match, but itâll be quicker for you to download the bookâs updated materials.