gf-core icon indicating copy to clipboard operation
gf-core copied to clipboard

unhelpful error message about conflicting information

Open odanoburu opened this issue 7 years ago • 0 comments

today I came across the following error message:

_gf_preproc.tmp:768:1:
   conflicting information in module ParadigmsEng             
    oper mkV2A = overload {mkV2A : V -> V2A; mkV2A : V -> Prep -> V2A;
                           mkV2A : V -> Prep -> Prep -> V2A} ;      
and                                                                 
    oper mkV2A = overload {                                             
                   mkV2A : V -> V2A = \v -> lin V2A (dirdirV3 v) ;
                   mkV2A : V -> Prep -> V2A
                         = \v,p -> lin V2A (dirV3 v p) ;
                   mkV2A : V -> Prep -> Prep -> V2A
                         = \v,p1,p2 -> lin V2A (prepPrepV3 v p1 p2) ;
                 } ;

the problem was in the first judgement where I put a = where a colon should be, but that's not what the message tells me. of course, when I comment the second judgement I get the real error:

src/english/ParadigmsEng.gf:324-328:
  Happened in the renaming of mkV2A
   constant not found: overload
   given Predef, Predef, CatEng, ResEng, MorphoEng, Prelude,
         ParadigmsEng

which is still not that direct now that I think of it, but oh well.

I understand that this is not high priority and that it's probably not an easy fix because these errors are found in different steps of the processing, but I felt it it deserved the reporting anyway!

odanoburu avatar Oct 22 '18 16:10 odanoburu