Comments (12)
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.
BTW: I am running Windows 10 Pro
> ver
Microsoft Windows [Version 10.0.19045.3930]
from justpath.
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.
I think it must be during startup because the failure happens for both justpath --help
and justpath
commands.
from justpath.
I think it must be during startup because the failure happens for both
justpath --help
andjustpath
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.
Or even pip install justpath==0.0.9
from justpath.
thank you
from justpath.
Does it work now?
from justpath.
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.
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.
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.
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)
- feature: check if current directory is on the path
- `--string --correct` breaks `archlinux-java` when setting PATH HOT 8
- Missing ANSI Escape sequence to reset color after output? HOT 9
- brew installable on macs HOT 3
- shell equivalents for justpath commands HOT 8
- --tui add experimental text user interface HOT 1
- monday thoughts HOT 3
- split --bare into two flags
- Package not found on conda HOT 2
- separate data model from presentation HOT 2
- ~ may not expand properly HOT 10
- add count using symlinks to --count output
- add Limitations section to docs
- consider --append --drop flags
- `sep()` can be replaced with `os.pathsep` HOT 1
- deduplicate directories
- Put up a CI pipeline
- add `learn` command
- Add PathVar.from_json()
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from justpath.