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

Crash when using --config and --path with a Swift file #1694

Closed
marcelofabri opened this Issue Jul 19, 2017 · 4 comments

Comments

Projects
None yet
4 participants
@marcelofabri
Collaborator

marcelofabri commented Jul 19, 2017

Probably introduced on #1644. Reported by @valeriomazzeo on https://github.com/ashfurrow/danger-swiftlint/issues/49.

$ swiftlint lint --path foo.swift --config .swiftlint.yml
fatal error: Could not read configuration file at path '/Users/marcelofabri/dev/foo.swift/.swiftlint.yml': file /tmp/swiftlint-20170703-13452-ik99jk/Source/SwiftLintFramework/Models/Configuration.swift, line 167
/Users/marcelofabri/dev/foo.swift/.swiftlint.yml:File not found.
[1]    51731 illegal hardware instruction  swiftlint lint --path foo.swift --config .swiftlint.yml
@marcelofabri

This comment has been minimized.

Show comment
Hide comment
@marcelofabri

marcelofabri Jul 19, 2017

Collaborator

A current workaround is to provide an absolute path for --config.

Collaborator

marcelofabri commented Jul 19, 2017

A current workaround is to provide an absolute path for --config.

marcelofabri added a commit that referenced this issue Jul 19, 2017

marcelofabri added a commit that referenced this issue Jul 19, 2017

marcelofabri added a commit that referenced this issue Jul 19, 2017

marcelofabri added a commit that referenced this issue Jul 19, 2017

@Sega-Zero

This comment has been minimized.

Show comment
Hide comment
@Sega-Zero

Sega-Zero Sep 24, 2017

Contributor

Still having that issue on 0.22.0.

$ swiftlint lint --quiet --path ./App/ --config ./App/.swiftlint.yml
/Users/sega-zero/projects/App/App/.swiftlint.yml:File not found.
fatal error: Could not read configuration file at path '/Users/sega-zero/projects/App/App/.swiftlint.yml': file /Users/marcelofabri/projetos/SwiftLint/Source/SwiftLintFramework/Models/Configuration.swift, line 156
Illegal instruction: 4

@marcelofabri, danger-swiftlint still doesn't work because of it

Contributor

Sega-Zero commented Sep 24, 2017

Still having that issue on 0.22.0.

$ swiftlint lint --quiet --path ./App/ --config ./App/.swiftlint.yml
/Users/sega-zero/projects/App/App/.swiftlint.yml:File not found.
fatal error: Could not read configuration file at path '/Users/sega-zero/projects/App/App/.swiftlint.yml': file /Users/marcelofabri/projetos/SwiftLint/Source/SwiftLintFramework/Models/Configuration.swift, line 156
Illegal instruction: 4

@marcelofabri, danger-swiftlint still doesn't work because of it

@valeriomazzeo

This comment has been minimized.

Show comment
Hide comment
@valeriomazzeo

valeriomazzeo Mar 20, 2018

Still not working

valeriomazzeo commented Mar 20, 2018

Still not working

@jpsim

This comment has been minimized.

Show comment
Hide comment
@jpsim

jpsim Apr 22, 2018

Collaborator

File new issues with steps to reproduce please.

Collaborator

jpsim commented Apr 22, 2018

File new issues with steps to reproduce please.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment