Giter Club home page Giter Club logo

Comments (12)

djhenderson avatar djhenderson commented on May 31, 2024 1

My mistake, my old eyes must be failing me.

My path seems to have a trailing semicolon. I did not think I had that in my path. So it looks like justpath is working as expected. All my issues are now resolved. I think you can close this issue.

from justpath.

djhenderson avatar djhenderson commented on May 31, 2024

BTW: I am running Windows 10 Pro

> ver

Microsoft Windows [Version 10.0.19045.3930]

from justpath.

epogrebnyak avatar epogrebnyak commented on May 31, 2024

Thank you for writing back, I have had a similar error in development, that is due to Typer behavior, but it went away.

Does the error show on startup or particular command?

Got an idea to fix, will update soon.

from justpath.

djhenderson avatar djhenderson commented on May 31, 2024

I think it must be during startup because the failure happens for both justpath --help and justpath commands.

from justpath.

epogrebnyak avatar epogrebnyak commented on May 31, 2024

I think it must be during startup because the failure happens for both justpath --help and justpath commands.

Try updating to pip install justpath==0.0.8 - and see if it works now for you. Hard to say why behavior diverged as Typer version is supposed to be pinned anyways, but I simplified code to exclude the type str | None, it is as simple as str now.

from justpath.

epogrebnyak avatar epogrebnyak commented on May 31, 2024

Or even pip install justpath==0.0.9

from justpath.

djhenderson avatar djhenderson commented on May 31, 2024

thank you

from justpath.

epogrebnyak avatar epogrebnyak commented on May 31, 2024

Does it work now?

from justpath.

djhenderson avatar djhenderson commented on May 31, 2024

yes. Something to look at: the JSON output includes the current directory as the last item in the list; the plain output from show does not. The current directory is usually not explicitly included in the windows PATH, but it is assumed by command.com to be the last folder searched. On *nix, we have to use ./file to execute file from the current directory.

from justpath.

epogrebnyak avatar epogrebnyak commented on May 31, 2024

Something to look at: the JSON output includes the current directory as the last item in the list; the plain output from show does not.

This is on Windows, right? justpath show vs justpath show --json? Can't reproduce, also there seems no way a variable changes from json to regular listing.

from justpath.

epogrebnyak avatar epogrebnyak commented on May 31, 2024

If it is linux, can you try and check what it is the output of:

justpath show --json | jq .[-1]
justpath show | tail -1 
justpath raw

from justpath.

epogrebnyak avatar epogrebnyak commented on May 31, 2024

Thank you for giving justpath such close examination and your attention, hope you will like the upcoming features. I'm changing the data model a bit, so the output is becoming a bit more rich (eg another color for duplicate directories).

from justpath.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.