Subject of the issue
If you have a space before the "#pragma version 3" at the top of the TEAL source, it will cause a ton of errors and everything to not compile. Ideally it should be trimming the white space from both sides of the line before interpreting which version it is. For example " #pragma version 3" (with the space) will not compile.
Your environment
8590262278
2.5.6.stable [rel/stable] (commit #219b78d9)
go-algorand is licensed with AGPLv3.0
Steps to reproduce
Add ' #pragma version 3' to the top of any teal source. Make sure the space is the first character.
goal node compile [filename]
Expected behaviour
The code should still compile successfully with no issues.
Actual behaviour
Dozens of errors are printed out due to the compiler not understanding which TEAL version it is