Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-668] Mistyping swift when compiling yields incomprehensible error message #5429

Open
swift-ci opened this issue Feb 3, 2016 · 6 comments
Assignees
Labels

Comments

@swift-ci
Copy link
Contributor

swift-ci commented Feb 3, 2016

Previous ID SR-668
Radar rdar://problem/40205896
Original Reporter yenrab (JIRA User)
Type Bug
Environment

OS X 10.11, Swift 2.2

Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels Bug, Driver
Assignee @ddunbar
Priority Medium

md5: ff874a88459fe51b83bda74b49cfc915

Issue Description:

If a typo is made and Swift is used instead of swift when compiling a package the message reported is

<unknown>:0: error: invalid value 'Swift' in '--driver-mode='

Something much more understandable should be displayed.

@belkadan
Copy link

belkadan commented Feb 3, 2016

cc @ddunbar. I stuck this under Package Manager because the multitool support is all in service of swiftpm right now.

@ddunbar
Copy link
Member

ddunbar commented Feb 4, 2016

Sounds good.

@mxcl
Copy link
Contributor

mxcl commented Feb 17, 2016

I tried to figure out where this occurs, but could not. driver.cpp?

@abertelrud
Copy link
Contributor

I don't know if this has been specifically fixed since the issue was filed or if something else has changed to make the problem go away, but I am not able to reproduce this in the most recent Swift builds. I can type `Swift build`, or `swift Build` and it all seems to work. If I mistype the subcommand, I get:

error: unable to invoke subcommand: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-swift (No such file or directory)

but this seems expected.

@abertelrud
Copy link
Contributor

Lee, do you remember the exact way in which you mistyped "swift"? From the original error message, I'm guessing you accidentally capitalized the leading "S"? Would you mind checking whether this is still a problem? As mentioned above, I tried a variety of ways to reproduce it but could not.

@ankitspd
Copy link
Member

@swift-ci create

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants