I keep getting
Forward reference extends over definition of value a
error while trying to compile my application (inside SBT).
You Should check your imports. It must be importing variable name from the import, The variable name must be used in some library which is imported to your code. Remove the import.