The Wayback Machine - https://web.archive.org/web/20201212135256/https://github.com/Quick/QuickOnLinuxExample/issues/1
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

Installation yields "error: mierror: mixedSources(".../QuickOnLinuxExample/Packages/Nimble-3.1.1/Sources/Nimble") #1

Open
garrettmaring opened this issue Jul 5, 2016 · 6 comments

Comments

@garrettmaring
Copy link

@garrettmaring garrettmaring commented Jul 5, 2016

After cloning the repo and running swift build I get the following output:

Cloning https://github.com/briancroom/Quick.git
HEAD is now at 8db5de5 Merge pull request #489 from takecian/issue457
Resolved version: 0.9.2
Cloning https://github.com/briancroom/Nimble
HEAD is now at dbcb07d Move test files and make adjustments to work with "swift test"
Resolved version: 3.1.1
error: mixedSources(".../QuickOnLinuxExample/Packages/Nimble-3.1.1/Sources/Nimble")

$ swiftenv version
3.0 (set by /Users/.../.swiftenv/version)

@DavidAntliff
Copy link

@DavidAntliff DavidAntliff commented Aug 10, 2016

I think I'm getting the same problem on Ubuntu 14.04 but with slightly different output:

$ swift build
Cloning https://github.com/briancroom/Quick.git
HEAD is now at 8db5de5 Merge pull request #489 from takecian/issue457
Resolved version: 0.9.2
Cloning https://github.com/briancroom/Nimble
HEAD is now at dbcb07d Move test files and make adjustments to work with "swift test"
Resolved version: 3.1.1
error: the module at [...]Quick/QuickOnLinuxExample.git/Packages/Nimble-3.1.1/Sources/Nimble contains mixed language source files
fix: use only a single language within a module

$ swift --version
Swift version 3.0 (swift-3.0-PREVIEW-4)
Target: x86_64-unknown-linux-gnu
@modocache
Copy link
Member

@modocache modocache commented Aug 10, 2016

This might be due to changes in SwiftPM?

A great contribution here, to keep this example project working, would be to add a .travis.yml file we can use to confirm it all still works.

@pcantrell
Copy link

@pcantrell pcantrell commented Aug 16, 2016

I’m getting this same error on macOS, Xcode 8 beta 6, so it’s not just Linux.

@tonyarnold
Copy link

@tonyarnold tonyarnold commented Oct 17, 2016

I'm seeing this as well on macOS. I'll see what I can pull together for the .travis.yml - are there existing examples for SwiftPM on Linux that I can draw on?

@tonyarnold
Copy link

@tonyarnold tonyarnold commented Oct 18, 2016

You can see the full error on TravisCI, running against my fork: https://travis-ci.org/tonyarnold/QuickOnLinuxExample

@tonyarnold
Copy link

@tonyarnold tonyarnold commented Oct 18, 2016

So it seems that this particular error is not present in Quick v0.10.0 and Nimble v5.0.0. I've restructured the project a little in #2, and that seems to be working as expected (excepting the requirement of using dependencies vs the now-removed testDependencies).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants
You can’t perform that action at this time.