TypeError: path must be a string or Buffer
Oni Version: 0.3.6 Neovim Version (Linux only): 0.3.1 Operating System: Debian 9.5
Issue: No files can be loaded because of the following error. It is raised when Oni is started and when I try to open a file.
TypeError: path must be a string or Buffer
at fs.stat (fs.js:930)
at fs.stat (ELECTRON_ASAR.js:290)
at internal/util.js:227
at v.<anonymous> (vendor.bundle.js:336)
at Generator.next (<anonymous>)
at vendor.bundle.js:336
at new Promise (<anonymous>)
at m (vendor.bundle.js:336)
at v.pathIsDir.e [as pathIsDir] (vendor.bundle.js:336)
at updateBranchIndicator (/opt/Oni/resources/app/vim/core/oni-plugin-git/index.js:21)
/opt/Oni/resources/app/vim/core/oni-plugin-git/index.js:77 [Oni.plugin.git]: TypeError: Path must be a string. Received undefined
at assertPath (path.js:28)
at Object.dirname (path.js:1364)
at updateBranchIndicator (/opt/Oni/resources/app/vim/core/oni-plugin-git/index.js:22)
at <anonymous>
Expected behavior: Oni loads files and starts properly.
Actual behavior: When starting Oni, no file is loaded i.e., the editor itself is left blank. When clicking on a file in the file tree, the error above is raised.
Steps to reproduce:
- Start Oni/Open a file through the file tree
On initial load, Oni asks whether to use the existing init.vim. It doesn't matter whether I click "yes" or "no": The error will be raised.
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.
@niklaas thanks for reporting the issue, sorry its causing a blocker, we just reconfigured the git integration to allow for new features and it seems to be an unexpected bug related to that thats causing this issue, there are still a couple of kinks with it but will have a look once I get a breather.
No problem. 'Til then I'll wait. :+1: