Giter Club home page Giter Club logo

Comments (18)

g-plane avatar g-plane commented on June 12, 2024 1

I will update readme.

from zsh-yarn-autocompletions.

g-plane avatar g-plane commented on June 12, 2024 1

I don't know why, too. I'm sorry about that I'm not using and not familiar with macOS. However, I did a successful setup in a macOS machine two years ago, ever.

from zsh-yarn-autocompletions.

g-plane avatar g-plane commented on June 12, 2024

If you're going to build from source, you don't need to copy and execute the install.zsh.

from zsh-yarn-autocompletions.

karlhorky avatar karlhorky commented on June 12, 2024

Ok. Is this the right way to do it though? The built binary doesn't seem to do anything for me...

I did try doing spctl --add $ZSH_CUSTOM/plugins/yarn-autocompletions/yarn-autocompletions to disable the Gatekeeper / Unidentified Developer check on macOS Catalina, but that didn't help either.

And can this be documented in the readme?

from zsh-yarn-autocompletions.

g-plane avatar g-plane commented on June 12, 2024

I'll update readme in the next few days if I'm not busy.

from zsh-yarn-autocompletions.

karlhorky avatar karlhorky commented on June 12, 2024

I think my steps above are missing something. The plugin doesn't offer any autocompletions...

from zsh-yarn-autocompletions.

g-plane avatar g-plane commented on June 12, 2024

Make sure the binary and the .plugin.zsh file are placed in the same directory.

from zsh-yarn-autocompletions.

karlhorky avatar karlhorky commented on June 12, 2024

Yep, they are both there (install.sh script put them there):

➜  plugins git:(master) cd $ZSH_CUSTOM/plugins/yarn-autocompletions
➜  yarn-autocompletions git:(master) ls
yarn-autocompletions            yarn-autocompletions.plugin.zsh

My plugins config from .zshrc:

plugins=(git yarn-autocompletions)

from zsh-yarn-autocompletions.

karlhorky avatar karlhorky commented on June 12, 2024

Trying out https://github.com/chrisands/zsh-yarn-completions for now, seems to work, also better than https://github.com/mklabs/yarn-completions.

from zsh-yarn-autocompletions.

g-plane avatar g-plane commented on June 12, 2024

Closing now. I still recommend you to use pre-built package from "Release" page.

from zsh-yarn-autocompletions.

karlhorky avatar karlhorky commented on June 12, 2024

Is is possible to still provide some instructions for those who want to build it themselves? I'm not sure why it was failing on my machine...

from zsh-yarn-autocompletions.

g-plane avatar g-plane commented on June 12, 2024

Readme is updated. Please read here.

from zsh-yarn-autocompletions.

karlhorky avatar karlhorky commented on June 12, 2024

Thanks @g-plane! I'll try to give the instructions a try in the next while.

Seems like there's nothing new though, except for the part about rustup. Hm... wonder what my issue was. Would be cool if it just worked now.

I guess if users have macOS Catalina, they may need the spctl command I mentioned above to disable the Unidentified Developer check.

from zsh-yarn-autocompletions.

g-plane avatar g-plane commented on June 12, 2024

Can you tell me what issue you've encountered? (However, I'm not using macOS).

from zsh-yarn-autocompletions.

karlhorky avatar karlhorky commented on June 12, 2024

The built binary doesn't seem to do anything for me...

The plugin doesn't offer any autocompletions...

These were the issues I mentioned above when I was trying it out.


While I was trying to build, I did notice that macOS Catalina flashed a quick Unidentified Developer error when I first tried to run the program. One that looks like this:

MacOS-Gateway-Warning

So I tried to "trust" the executable in Gatekeeper by running the spctl --add command.

However, I think it may also need the xattr -d com.apple.quarantine <name-of-executable> command to remove it from the quarantine first.

Reference: https://docwhat.org/upgrading-to-catalina


I will try both of those things when I try building again.

from zsh-yarn-autocompletions.

g-plane avatar g-plane commented on June 12, 2024

This program shouldn't and won't ask a high system permission, since it's only invoked by Zsh, and there's no need to run it manually.

from zsh-yarn-autocompletions.

karlhorky avatar karlhorky commented on June 12, 2024

Yeah, as far as I know, it's not about system permissions - Gatekeeper checks whether the app has been a) signed and b) notarized by an Apple ID:

https://scriptingosx.com/2019/10/notarization-for-macadmins/

The requirements have been changed in macOS 10.15 Catalina:

Starting with Catalina, all software needs to be notarized to pass Gatekeeper when the first launch or installation is initiated by a user.

Additional references:

  1. Build scripts for signing / notarization in a Rust project:
    https://github.com/maidsafe/safe-api/blob/06e1f48db36d1604a15cf287b3cfeb9cea09d658/resources/notarize.sh
  2. List of things one has to do to build software for Catalina:
    https://twitter.com/fasterthanlime/status/1115949498927407104
  3. More information about Gatekeeper:
    https://support.apple.com/en-gb/HT202491

from zsh-yarn-autocompletions.

adi518 avatar adi518 commented on June 12, 2024

I conclude that this plugin wasn't tested properly on a Mac, so it just won't work and none of the issues have a solution. Great work though. As previously mentioned this plugin works and installation is easier.

from zsh-yarn-autocompletions.

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.