Thanks Araq.

$home isn't oddly isn't defined my zsh shell:
    
    
    echo "*${home}*"
    **
    
    
    Run

I tried try creating a nim.cfg in my home (/Users/DM) directory with
    
    
    nimblepath="/Users/DM/.nimble/pkgs2/"
    
    
    Run

( _BTW there wasn 't already one_)

and it made no difference.

I also did likewise in the repository directory (/Users/DM/work/trunk/nim)

I also interated on on both **/pkgs** and **/pkgs2** for **nimblepath** with no 
change :-(

\---

Just to clarify, I supplied a little more detail hoping it might shed some 
light on this particular anomaly.

## Working repository tree:
    
    
    pwd
    /Users/DM/work/trunk/nim
    
    
    Run

There are no overriding _nim.cfg_., nimble* or nimbledep*
    
    
    ls -la nim*.cfg
    zsh: no matches found: *.cfg
    ls -ls nimble*.*
    zsh: no matches found: nimble*.*
    
    
    Run

## Nimble Tree:
    
    
    tree --charset ascii -L 1 ~/.nimble
    
    /Users/DM/.nimble
    \|-- bin
    \|-- nimbledata2.json
    \|-- pkgs
    \\`-- pkgs2
    
    
    Run

Current contents of pkgs: (historically installed by Nim 1.6.x and earlier 
versions nimble);
    
    
    /Users/DM/.nimble/pkgs
    \|-- ansiparse-0.2.0
    \|-- argparse-3.0.0
    \|-- at-0.1.0
    \|-- balls-3.3.7
    \|-- base-3.5.1
    \|-- bearssl-0.1.5
    \|-- benchy-0.0.1
    \.\.\.
    \|-- with-0.4.0
    \|-- ws-0.5.0
    \|-- yaml-1.1.0
    \|-- zippy-0.10.10
    \`-- zstd-0.6.0
    
    
    Run

The above **pkgs2** subdirectory is **empty**
    
    
    ls .nimble/pkgs2
    << No files/directories listed>>
    
    
    Run

## Findings:

The previously installed modules are accessible via Nim's import.
    
    
    inim
    INim 0.6.1
    Nim Compiler Version 2.0.0 [MacOSX: amd64] at /usr/local/bin/nim
    nim> import argparse
    nim> import benchy
    nim> exit
    
    
    Run

So far... so good.... **but Nimble itself doesn 't seem to know about the 
previously installed packages!!!**
    
    
    nimble list -i
    << doesn't list anything>>
    nimble path argparse
    nimble.nim(912)          listPaths
        
        Error:  At least one of the specified packages was not found
    
    nimble path benchy
    nimble.nim(912)          listPaths
        
        Error:  At least one of the specified packages was not found
    
    
    Run

If I use nimble to install a new module:
    
    
    cd ~
    
    nimble install db_connector
    Downloading https://github.com/nim-lang/db_connector using git
       Warning: The package has no tagged releases, downloading HEAD instead.
      Verifying dependencies for [email protected]
     Installing [email protected]
      Success:  db_connector installed successfully.
    
    
    Run

Nimble globally knows about it :-)
    
    
    nimble list -i
    db_connector  [(version: 0.1.0, checksum: 
05c335ec678614b973d8a80651971e0719045d14)]
    
    cd ~/work/trunk/nim
    
    nimble list -i
    db_connector  [(version: 0.1.0, checksum: 
05c335ec678614b973d8a80651971e0719045d14)]
    
    
    Run

And so does Nim :-)
    
    
    inim
    INim 0.6.1
    Nim Compiler Version 2.0.0 [MacOSX: amd64] at /usr/local/bin/nim
    nim> import db_connector/db_sqlite
    nim> exit
    
    
    Run

**My question is now:**

How to I get Nimble to recognize the existence of previously installed **pkgs** 
as well as the newly install **pkgs2**.

I naively tried copying the contents of pkgs into pkgs2 but no joy.
    
    
    nimble list -i
           Tip: 1 messages have been suppressed, use --verbose to show them.
    tables.nim(235)          raiseKeyError
        
        Error:  key not found: metaData
    
    
    Run

Thanks to all who are helping me with this... hopefully we can get to the 
bottom it.

Reply via email to