oni icon indicating copy to clipboard operation
oni copied to clipboard

Installed through brew, Neovim only launches when opening oni from command line

Open kylepollina opened this issue 8 years ago • 9 comments

Oni Version: 0.3.2.1 Neovim Version (Linux only): Operating System: macOS 10.14.1

Issue: Neovim does not load when I open Oni from the Applications folder, but it runs correctly when I launch Oni from the command line.

Expected behavior: Neovim launches when I run Oni by clicking on the icon

Actual behavior: Neovim does not launch when I run Oni by clicking on the icon. Neovim does launch when I run oni from the command line.

Steps to reproduce: Install Oni from homebrew, running 'brew cask install oni' Launching Oni from the command line, Oni works as it is expected. However if I launch Oni by clicking on the icon from the Applications folder, it tells me Neovim is unable to launch.

kylepollina avatar Nov 14 '18 12:11 kylepollina

Hello and welcome to the Oni repository! Thanks for opening your first issue here. To help us out, please make sure to include as much detail as possible - including screenshots and logs, if possible.

oni-bot avatar Nov 14 '18 12:11 oni-bot

I'm also having this problem.

dsummersl avatar Nov 15 '18 14:11 dsummersl

As I've not got a Mac, do @bryphe or @Akin909 have any input on this?

Its possible its similar to the other 10.14 issues we've been having, though I'd be surprised why there is a difference loading via the commandline and the app icon. (Though technically I think they run different scripts?)

CrossR avatar Nov 15 '18 14:11 CrossR

My first guess is that it is a pathing issue...I don't know where to look in oni to see logs and such though...

dsummersl avatar Nov 15 '18 16:11 dsummersl

@dsummersl perhaps check the chrome console logs first? Help -> Developer Tools -> Console.

baodrate avatar Nov 19 '18 14:11 baodrate

Thanks so much for that...I see this in the dev console:

screen shot 2018-11-19 at 9 47 03 am

I verified that the path to nvim does exist...and it appears to have the same logs (same nvim used) in the developer console when I launch from my command line (but without the error).

dsummersl avatar Nov 19 '18 14:11 dsummersl

I see this problem - including log line about crashing Neovim even when I launch Oni from command line using /Applications/Oni.app/Contents/MacOS/Oni

aleksandersumowski avatar Nov 20 '18 10:11 aleksandersumowski

I believe this is another duplicate of #2396 (the other one being my own).

ghost avatar Dec 14 '18 16:12 ghost

Thanks all for reporting this! I was able to repro and found the issue - we're hitting this issue: https://github.com/neovim/neovim/issues/9134 (fixed here https://github.com/neovim/neovim/commit/57acfceabeb349377ce244de9b67732b21ed1d18)

It seems that previously we were getting the LANG environment variable set, but with Mojave we're not anymore. Thanks @jordan-arenstein for finding the bug and @mhinz for the fix on the Neovim side 👍

I'll release a new build of Oni with a workaround - it'll set the LANG variable if it isn't set. It's not ideal because it's hardcoded to en_us.UTF-8, but I also have a configuration key that can override this:

"environment.additionalVariables": {
  "LANG": "zh_CN.UTF-8",
},

bryphe avatar Dec 14 '18 23:12 bryphe