olliNiinivaara / GuildenStern

Modular multithreading HTTP/1.1 + WebSocket server framework
MIT License
80 stars 7 forks source link

Error: cannot open file: guildenstern/dispatcher #12

Closed ITwrx closed 1 year ago

ITwrx commented 1 year ago

i set up an atlas workspace (betterweb-guildenstern) and a project (betterweb), and then try to compile the guildenstern example (as gs_hw.nim) inside that project, but it fails. ../Guildenstern/guildenstern exists too. Not sure what is going on.

[itwrx@muhpc betterweb-guildenstern]$ ls
atlas.workspace  betterweb  GuildenStern  packages
[itwrx@muhpc betterweb-guildenstern]$ cd betterweb
[itwrx@muhpc betterweb]$ ls
betterweb.nimble  gs_hw.nim  nim.cfg
[itwrx@muhpc betterweb]$ nim r --d:release --d:threadsafe gs_hw.nim
Hint: used config file '/home/itwrx/.choosenim/toolchains/nim-2.0.0/config/nim.cfg' [Conf]
Hint: used config file '/home/itwrx/.choosenim/toolchains/nim-2.0.0/config/config.nims' [Conf]
Hint: used config file '/var/www/betterweb-guildenstern/betterweb/nim.cfg' [Conf]
..........................................................................................................................
/var/www/betterweb-guildenstern/betterweb/gs_hw.nim(3, 25) Error: cannot open file: guildenstern/dispatcher

import line from example/gs_hw.nim: import cgi, guildenstern/[dispatcher, httpserver]

thanks

olliNiinivaara commented 1 year ago

Hi!

There seems to be a spurious srcDir = "guildenstern" line left in guildenstern.nimble. The problem is fixed by changing in cfg.nim of atlas workspace the line --path:"GuildenStern/guildenstern" to line --path:"GuildenStern". I shall fix the nimble in next version, but it possible that it will not overwrite existing configuration, so 6.0.0 user must fix their path manually.

ITwrx commented 1 year ago

done. thanks!