[elm-discuss] Re: Strange compiler error - cannot find a field that is obviously there.

2017-09-08 Thread 'Rupert Smith' via Elm Discuss
On Friday, September 8, 2017 at 10:47:04 AM UTC+1, Rupert Smith wrote:
>
> I fixed the code so that the Account model has the uuid field, and the 
> module which depends on that also now has the uuid field. A clean compiler 
> run with elm-stuff deleted says that the dependant module has an extra 
> 'uuid' field in it, not in the model, and a subsequent compiler run gives 
> the original error message. The field is there and my code looks correct, 
> yet the compiler won't run it.
>

I wonder if it could be to do with my module being called 'Model', but 
there is also a Model type defined in the same scope. I have seen some 
strange compiler errors caused by a module/type name clash before. So I 
will try renaming the module or importing it under a different name. 

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[elm-discuss] Re: Strange compiler error - cannot find a field that is obviously there.

2017-09-08 Thread 'Rupert Smith' via Elm Discuss
On Friday, September 8, 2017 at 9:37:16 AM UTC+1, Rupert Smith wrote:
>
> On Friday, September 8, 2017 at 9:35:14 AM UTC+1, Rupert Smith wrote:
>>
>> Has anyone seen an error like this before? I don't see it in the github 
>> elm-compiler issues, so I though I might try and put together an SSCCE for 
>> it. Which I may manage to do, if my hypothese
>>
>
> Which I may manage to do, if my hypothesis is correct. 
>

Bugger. 

I fixed the code so that the Account model has the uuid field, and the 
module which depends on that also now has the uuid field. A clean compiler 
run with elm-stuff deleted says that the dependant module has an extra 
'uuid' field in it, not in the model, and a subsequent compiler run gives 
the original error message. The field is there and my code looks correct, 
yet the compiler won't run it.

If I try to pull out just an isolated example to make an SSCCE out of... 
the problem goes away.

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[elm-discuss] Re: Strange compiler error - cannot find a field that is obviously there.

2017-09-08 Thread 'Rupert Smith' via Elm Discuss
On Friday, September 8, 2017 at 9:35:14 AM UTC+1, Rupert Smith wrote:
>
> Has anyone seen an error like this before? I don't see it in the github 
> elm-compiler issues, so I though I might try and put together an SSCCE for 
> it. Which I may manage to do, if my hypothese
>

Which I may manage to do, if my hypothesis is correct. 

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.