Difference between revisions of "Emacs-Flycheck"

From Coder Merlin
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Show Errors ==
== Show Errors ==
* M-x flycheck-list-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 ==
== Verify Flycheck Results ==
* M-x flycheck-compile
* {{SpecialKey|ALT|x}} flycheck-compile


== Configuration ==
== Configuration ==
Line 21: Line 27:
* https://owensd.io/2015/01/14/compiling-individual-files/
* https://owensd.io/2015/01/14/compiling-individual-files/
* https://modocache.io/reading-and-understanding-the-swift-driver-source-code
* 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

References[edit]

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