Difference between revisions of "Emacs-Flycheck"
From Coder Merlin
(Created page with "== View Flycheck Configuration Options == * M-x customize-group RET flycheck-options") |
|||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== View Flycheck Configuration Options == | == Show Errors == | ||
* {{SpecialKey|ALT|x}} flycheck-list-errors | |||
== Go to Next Error == | |||
* {{SpecialKey|ALT|x}} flycheck-next-error | |||
* {{SpecialKey|CONTROL|C}} {{Key|!}} {{Key|n}} | |||
== Go to Previous Error == | |||
* {{SpecialKey|ALT|x}} flycheck-previous-error | |||
* {{SpecialKey|CONTROL|C}} {{Key|!}} {{Key|p}} | |||
== Verify Flycheck Results == | |||
* {{SpecialKey|ALT|x}} flycheck-compile | |||
== Configuration == | |||
=== View Flycheck Configuration Options === | |||
* M-x customize-group RET flycheck-options | * M-x customize-group RET flycheck-options | ||
=== Customize Options === | |||
* M-x customize RET | |||
* Enter 'flycheck-options' | |||
* Edit variables in buffer | |||
** Flycheck Swift3 Import Search Paths | |||
*** Include Igis path | |||
== References == | |||
* 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 == | |||
* 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 |
Latest revision as of 22:39, 31 December 2019
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