guzba / mummy

An HTTP and WebSocket server for Nim that returns to the ancient ways of threads.
MIT License
281 stars 11 forks source link

ambiguous identifier: 'QueryParams' #117

Closed enthus1ast closed 8 months ago

enthus1ast commented 8 months ago

when i just do:

import mummy

i get the error:

Hint: used config file '/home/david/.choosenim/toolchains/nim-2.0.2/config/nim.cfg' [Conf]                                                                                                                                                    
Hint: used config file '/home/david/.choosenim/toolchains/nim-2.0.2/config/config.nims' [Conf]                                                                                                                                                
.................................................................................................................................................................................                                                             
/home/david/.nimble/pkgs2/mummy-0.4.1-4b42e2d861877701288ea069a743dc74b6786e02/mummy.nim(43, 19) Error: ambiguous identifier: 'QueryParams' -- use one of the following:                                                                      
  queryparams.QueryParams: QueryParams                                                                                                                                                                                                        
  queryparams.QueryParams: QueryParams                                                                                                                                                                                                        

shell returned 1  

did i messed up my nimble installation?

guzba commented 8 months ago

This is something nimble related or the Github Actions tests would not pass.

Nim 2.0 unfortunately pretty much broke nimble so I would imagine it could be pkgs/ vs pkgs2/ and installed with Nim 1.x vs 2.x conflicts. A clean reset of the nimble installed stuff would be the real test which is what the Github Actions attempt to ensure works.

Re-runniing now: https://github.com/guzba/mummy/actions/runs/7824996753

enthus1ast commented 8 months ago

Ok it was indeed some nimble stuff (i think it was the nimble cache), i did:

cd ~/.nimble/pkgs
rm -r zippy*
rm -r webby*
rm -r crunchy*
rm -r nimsimd*

cd ~/.nimble/pkgs2
rm -r mummy*
rm -r zippy*
rm -r webby*
rm -r crunchy*
rm -r nimsimd*
rm -r mummy*

cd ~/.cache/nim    # <--- this might have fixed it
rm -r * 

nimble install mummy

should have done this before, so sorry for the noise.