squattingmonk / nasher

A build tool for Neverwinter Nights projects
MIT License
43 stars 16 forks source link

[Win11pro] can't read package When using nimble to install nasher #121

Closed mhekel closed 4 months ago

mhekel commented 4 months ago

so on my Win11Pro git-bash and cmd, after successfully installing nim/nimble, I inputted nimble install nasher --verbose from inside my ~/tools/ and on both instances, i got this output:

cmd

C:\Users\mheke\Tools>nimble install nasher --verbose
    Info:  Nimble data file "C:\Users\mheke\.nimble\nimbledata2.json" has been loaded.
    Reading official package list
 Downloading https://github.com/squattingmonk/nasher.nim using git
    Cloning latest tagged version: 1.1.0
packageparser.nim(395)   readPackageInfo

    Error:  Could not read package info file in C:\Users\mheke\AppData\Local\Temp\nimble_2268\githubcom_squattingmonknashernim\nasher.nimble;
        ...   Reading as ini file failed with:
        ...     Invalid section: .
        ...   Evaluating as NimScript file failed with:
        ...     Unexpected token ':'
        ... printPkgInfo() failed.
     Info:  Nimble data file "C:\Users\mheke\.nimble\nimbledata2.json" has been saved.

git-bash


mheke@mr-server MINGW64 ~/tools
$ nimble install nasher --verbose
     Info:  Nimble data file "C:\Users\mheke\.nimble\nimbledata2.json" has been loaded.
    Reading official package list
Downloading https://github.com/squattingmonk/nasher.nim using git
    Cloning latest tagged version: 1.1.0
packageparser.nim(395)   readPackageInfo

    Error:  Could not read package info file in C:\Users\mheke\AppData\Local\Temp\nimble_19864\githubcom_squattingmonknashernim\nasher.nimble;
        ...   Reading as ini file failed with:
        ...     Invalid section: .
        ...   Evaluating as NimScript file failed with:
        ...     Unexpected token ':'
        ... printPkgInfo() failed.
     Info:  Nimble data file "C:\Users\mheke\.nimble\nimbledata2.json" has been saved.

in the packages_json this is the section for nasher

    "name": "nasher",
    "url": "https://github.com/squattingmonk/nasher.nim",
    "method": "git",
    "tags": [
      "nwn",
      "neverwinternights",
      "neverwinter",
      "game",
      "bioware",
      "build"
    ],
    "description": "A build tool for Neverwinter Nights projects",
    "license": "MIT",
    "web": "https://github.com/squattingmonk/nasher.nim"
  },

and on .nimble/nimbledata2.json all thats there is:

{
  "version": 1,
  "reverseDeps": {}
}

and finally, I followed the trail for package it was trying to read - and just to verify it was the right path,. I deleted what was there in nimblecache-0 and reran the command.. and the files in this pic are what showed up (I tried it a few times from cmd and git-bash

Screenshot 2024-05-30 030208

so then I did a git clone this repo here, and did fine. so I cd nasher nimble install and got this output

$ nimble install --verbose
     Info:  Nimble data file "C:\Users\mheke\.nimble\nimbledata2.json" has been loaded.
packageparser.nim(395)   readPackageInfo

    Error:  Could not read package info file in C:\Users\mheke\tools\nasher\nasher.nimble;
        ...   Reading as ini file failed with:
        ...     Invalid section: .
        ...   Evaluating as NimScript file failed with:
        ...     Unexpected token ':'
        ... printPkgInfo() failed.
     Info:  Nimble data file "C:\Users\mheke\.nimble\nimbledata2.json" has been saved.

aside from reinstalling everything because I think at this point its my end maybe?

mhekel commented 4 months ago

I would like to mention, on the flip side in wsl2/ubuntu24.04 i had no problems installing. :-)

squattingmonk commented 4 months ago

This is not an issue with nasher, so this is not the appropriate place for this. However, I will do what I can to help.

  1. How did you install nim and nimble?
  2. What version of nim and nimble are you using?
mhekel commented 4 months ago

I was installing Nasher with Nimble.. so I wasn't sure where the issue goes, sorry. However I was using git-bash on win 11.. and i ended Windows version from their site which is v2.04. It would be nice to just have one uniformed location, but I ended up being successful doing it all on wsl2/Ubuntu 24.04 and I'm setting it up where windows and linux share env/path's . Now I just need to learn how to use Nasher..