GithubHelp home page GithubHelp logo

Comments (16)

jethrokuan avatar jethrokuan commented on August 23, 2024 1

@bucaran nope it's fixed!

from z.

jethrokuan avatar jethrokuan commented on August 23, 2024

Right, I think this is because debug isn't included as a dependency in fin, but it is in fisherman. I think It's better that I clear off uses for that. Gonna fix it and do a quick push. Thanks for reporting!

from z.

jethrokuan avatar jethrokuan commented on August 23, 2024

I think I fixed it, now it doesn't have any external dependencies whatsoever. Would love for you to try again. Thanks!

EDIT: missed out getopts

from z.

jethrokuan avatar jethrokuan commented on August 23, 2024

I face another problem now:

fin only copies only .fish files over, which leaves the .awk files behind. Do you think it would be a good idea to put the awk scripts into the fish files?

Or is this a problem that package managers like fin are supposed to solve?

from z.

herrbischoff avatar herrbischoff commented on August 23, 2024

I tried the updated version and it does not output any error now.

Regarding the awk issue, since fin itself uses awk inside the script, I guess going inline would be the way to go.

from z.

jethrokuan avatar jethrokuan commented on August 23, 2024

this was fixed in fin after talking to @bucaran .

I like my awk files outside, but when I bump into issues again, I'll move them into their .fish files.

from z.

 avatar commented on August 23, 2024

@jethrokuan The awk files issue is fixed now, did I miss something?

from z.

Perlence avatar Perlence commented on August 23, 2024

@jethrokuan @bucaran

nope it's fixed!

Is it? I'm confused, awk files are still missing. I'm running fin v7 on Debian.

from z.

 avatar commented on August 23, 2024

@Perlence Are you using fisherman or fin?

from z.

Perlence avatar Perlence commented on August 23, 2024

Yep, I'm using fin this time 😄

from z.

 avatar commented on August 23, 2024

And what's the problem exactly? I am pretty sure this issue was created based on a very early version of fin, possibly entirely different to the one you are using now :P

from z.

Perlence avatar Perlence commented on August 23, 2024

Yes, I understand, but I looked to find similar issues here, and I thought that this one looked close enough.

The problem is that after installing fisherman/z with fin, it throws an error on invocation:

> cd ~/.config/fish
> cat fishfile
fisherman/z
> fin
> z dot
awk: fatal: can't open source file `/home/sviatoslav/.config/fish/functions/z.awk' for reading (No such file or directory)
> ll functions
total 32K
-rw-rw-rw- 1 sviatoslav sviatoslav 7.9K Aug 13 23:03 fin.fish
-rw-rw-r-- 2 sviatoslav sviatoslav 2.0K May 26 19:52 getopts.fish
-rw-rw-r-- 2 sviatoslav sviatoslav  268 Aug  3 15:50 uninstall.fish
-rw-rw-r-- 2 sviatoslav sviatoslav  512 Aug  3 15:50 __z_add.fish
-rw-rw-r-- 2 sviatoslav sviatoslav 1.8K Aug  3 15:50 __z.fish
-rw-rw-r-- 2 sviatoslav sviatoslav 1.2K Aug  3 15:50 __zo.fish

Files z.awk and zadd.awk are missing.

from z.

 avatar commented on August 23, 2024

Gotcha. Yes, fin won't play well with this plugin because it does not copy .awk or any other script files into the functions diretory, only .fish files.

This is not a problem with fin, it's just how it was designed, for simplicity. See this
https://github.com/fisherman/fin/issues/5#issuecomment-222481377

from z.

Perlence avatar Perlence commented on August 23, 2024

Ok, I see. So, how would you make this plugin work? Copy awk files yourself, or embed them in a fish file, or something else?

from z.

 avatar commented on August 23, 2024

If you must use z and fin, then copy the .awk files to the same directory where the .fish files are, possibly ~/.config/fish/functions. The fin way is for plugins that use awk/perl to embed the script in the same file.

I'm glad you are using fin. It's my favorite!

from z.

Perlence avatar Perlence commented on August 23, 2024

Thank you, I'll try one of the approaches 🙇

from z.

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.