mikra01 / nimodpi

Oracle ODPI-C wrapper for Nim
MIT License
21 stars 0 forks source link

nimble demo not running #6

Closed walter-weinmann closed 2 years ago

walter-weinmann commented 2 years ago

Nim version 1.6.0:

D:\SoftDevelopment\Projects\nimodpi>nimble demo
   Warning: Package 'nimodpi' has an incorrect structure. The top level of the package source directory should contain at most one module, named 'nimodpi.nim', but a file named 'db_oracle.nim' was found. This will be an error in the futu
re.
      Hint: If this is the primary source file in the package, rename it to 'nimodpi.nim'. If it's a source file required by the main module, or if it is one of several modules exposed by 'nimodpi', then move it into a 'nimodpi\' subdire
ctory. If it's a test file or otherwise not required to build the the package 'nimodpi.nim', prevent its installation by adding `skipFiles = @["db_oracle.nim"]` to the .nimble file. See https://github.com/nim-lang/nimble#libraries for mo
re info.
  Executing task demo in D:\SoftDevelopment\Projects\nimodpi\nimodpi.nimble
Hint: used config file 'C:\Software\nim-1.6.0\config\nim.cfg' [Conf]
Hint: used config file 'C:\Software\nim-1.6.0\config\config.nims' [Conf]
Hint: used config file 'D:\SoftDevelopment\Projects\nimodpi\config.nims' [Conf]
.........................................................
D:\SoftDevelopment\Projects\nimodpi\demo\demo.nim(1, 8) Error: cannot open file: ../nimodpi
stack trace: (most recent call last)
C:\Users\walte\AppData\Local\Temp\nimblecache-0\nimscriptapi_1162033381.nim(187, 16)
D:\SoftDevelopment\Projects\nimodpi\nimodpi.nimble(15, 8) demoTask
C:\Software\nim-1.6.0\lib\system\nimscript.nim(273, 7) exec
C:\Software\nim-1.6.0\lib\system\nimscript.nim(273, 7) Error: unhandled exception: FAILED: nim odpic_demo [OSError]
     Error: Exception raised during nimble script execution

D:\SoftDevelopment\Projects\nimodpi>
mikra01 commented 2 years ago

thanks. which nimble version is involved? at the moment I only "support" latest devel. I will investigate with nimble version: nimble --version nimble v0.13.1 compiled at 2021-11-24 19:00:34 git hash: d13f3b8ce288b4dc8c34c219a4e050aaeaf43fc9

walter-weinmann commented 2 years ago

C:\Users\walte>nimble -v nimble v0.13.1 compiled at 2021-10-19 01:27:57 git hash: couldn't determine git hash

mikra01 commented 2 years ago

as stated it was a file-ref issue. don't forget to adjust democredentials.nim to your needs before running