aheze / Multiliner

An Xcode source extension to expand lengthy lines.
https://twitter.com/aheze0/status/1541578738239885312
MIT License
827 stars 23 forks source link

App won't install #13

Closed ddaddy closed 2 years ago

ddaddy commented 2 years ago

I had v1.0 installed and working, however since installing v1.1 the Xcode Source Editor section of the System->Extensions has disappeared, as if there are no extensions.

I've tried reinstalling v1.0 and it's the same 🤷‍♂️

Is there an additional step needed?

aheze commented 2 years ago

Hmm, have you opened the app first?

ddaddy commented 2 years ago

Yes.

There is no Xcode source editor listed.

I did notice the previous version was named Multiliner App.app but this one is just Multiliner.app. Not sure if that matters.

brettohland commented 2 years ago

@ddaddy There's some sort of system-wide bug with Xcode and its extensions that you've hit. I have this happen all of the time and I can usually fix it by doing the following:

  1. Quit Xcode
  2. Go to the /Applications directory
  3. Rename Xcode to something (I usually just add a space character before the extension)
  4. Rename Xcode back
  5. Your extensions reappear

It's strange, but it works.

aheze commented 2 years ago

@ddaddy also maybe try deleting all copies of Multiliner if they exist — I had a bunch from testing. After deleting all copies the Source Editor tab disappeared, then after redownloading the app it appeared again.

Lots of Multiliners System Preferences (after redownloading)
Screen Shot 2022-07-06 at 10 44 23 AM Screen Shot 2022-07-06 at 10 48 09 AM
ddaddy commented 2 years ago

@ddaddy There's some sort of system-wide bug with Xcode and its extensions that you've hit. I have this happen all of the time and I can usually fix it by doing the following:

  1. Quit Xcode
  2. Go to the /Applications directory
  3. Rename Xcode to something (I usually just add a space character before the extension)
  4. Rename Xcode back
  5. Your extensions reappear

It's strange, but it works.

This was the solution. I tried @aheze method first by deleting every copy even from the Trash but it didn't fix it. Renaming Xcode and back again fixed it.

Thanks

aheze commented 2 years ago

Great, thanks @brettohland for the tips!

brettohland commented 2 years ago

🎉

when multiple copies of Xcode are on the same machine, extensions can stop working completely. In this case, Apple Developer Relations suggests re-registering your main copy of Xcode with Launch Services…

https://nshipster.com/xcode-source-extensions/

That's essentially what you're doing when you rename Xcode. You're re-registering it with the system.