Emacs-Flycheck
From Coder Merlin
Within these castle walls be forged Mavens of Computer Science ...
— Merlin, The Coder
Show Errors[edit]
- ALT-x flycheck-list-errors
Go to Next Error[edit]
- ALT-x flycheck-next-error
- CONTROL-C ! n
Go to Previous Error[edit]
- ALT-x flycheck-previous-error
- CONTROL-C ! p
Verify Flycheck Results[edit]
- ALT-x flycheck-compile
Configuration[edit]
View Flycheck Configuration Options[edit]
- M-x customize-group RET flycheck-options
Customize Options[edit]
- M-x customize RET
- Enter 'flycheck-options'
- Edit variables in buffer
- Flycheck Swift3 Import Search Paths
- Include Igis path
- Flycheck Swift3 Import Search Paths
References[edit]
- https://github.com/apple/swift/blob/master/docs/Driver.md
- https://medium.com/xcblog/a-brief-overview-of-swift-compiler-7af0bd684718
- https://owensd.io/2015/01/14/compiling-individual-files/
- https://modocache.io/reading-and-understanding-the-swift-driver-source-code
- https://www.flycheck.org/en/latest/user/syntax-checks.html
- https://stackoverflow.com/questions/48051120/display-flycheck-buffer-automatically-when-there-are-errors
Notes[edit]
- Example command lines - What's happening during a regular build
- swiftc -c -### main.swift help.swift -module-name main
- /opt/swift-5.0.1-RELEASE-ubuntu18.04/usr/bin/swift -frontend -c -primary-file main.swift help.swift -target x86_64-unknown-linux-gnu -disable-objc-interop -color-diagnostics -module-name main -o main.o
- /opt/swift-5.0.1-RELEASE-ubuntu18.04/usr/bin/swift -frontend -c main.swift -primary-file help.swift -target x86_64-unknown-linux-gnu -disable-objc-interop -color-diagnostics -module-name main -o help.o
- Example command line - sufficient for FlyCheck
- swift -frontend -typecheck -c -primary-file main.swift help.swift