purescript-language-server icon indicating copy to clipboard operation
purescript-language-server copied to clipboard

Some errors don't show up on rebuild

Open nwolverson opened this issue 5 years ago • 3 comments

Assume this may be something to do with not having source span - seem module related

nwolverson avatar Jul 24 '20 07:07 nwolverson

An example which surely can't be the one I ran across in the wild, because I am not a monster:

module Prim.Module2 where

z :: Int
z = 42

Build on save, no errors. Full build, a CannotDefinePrimModules error. This error comes with reasonable looking source position:

"filename":"src/Module1.purs","position":{"startLine":1,"startColumn":1,"endLine":1,"endColumn":26}

nwolverson avatar Sep 07 '20 22:09 nwolverson

I have a feeling this check happens somewhere outside the rebuildModule machinery the ide server uses. Probably somewhere in figuring out the dependency graph.

kritzcreek avatar Sep 08 '20 06:09 kritzcreek

Now this one I legitimately did hit on rebuild: https://github.com/purescript/purescript/issues/3949

nwolverson avatar Oct 21 '20 15:10 nwolverson