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.