When compiling supplied code for Plutus Pioneer Program, the haskell extension for VSCode IDE reports a compilation error. This prevents a lot of useful IDE functions from working, because the IDE doesn't analyze an uncompilable file. The code compiles correctly in ghci (cabal repl) and using command line "cabal build"
The error is related to the template Haskell code that is required to write Plutus validators. Error states that a name is not INLINABLE, but it is. I have verified that ghc and haskell-language-server are both using same Haskell compiler (188.8.131.5210212). Does anyone know how to eliminate the error while using VSCode?
related (unanswered) Stack Exchange question: related issue