entrez / roku.vim

Vim plugin for Roku development (Scenegraph/Brightscript)
https://www.vim.org/scripts/script.php?script_id=5828
12 stars 3 forks source link

running `:RokuInstall` from a file in your current directory causes error #11

Closed entrez closed 5 years ago

entrez commented 5 years ago

expected behavior

:RokuInstall should display a message like this on success:

compressing channel & uploading to roku (xx.xx.xx.xx)
application received: 639321 bytes stored. install success.

actual behavior

when run from a file in your current directory, its output includes an error message like this:

compressing channel & uploading to roku (xx.xx.xx.xx)
/Users/entrez/roku.vim/roku_scripts/install: line 59: cd: manifest: Not a directory application received: 639321 bytes stored. install success.

steps to reproduce the problem

  1. open a Roku project file in vim or neovim with roku.vim installed: $ vim ~/channels/test/manifest
  2. change the editor's current directory to the one containing the file: :cd %:p:h
  3. run :RokuInstall or :RokuInstall <device>: :RokuInstall
  4. see results

    other information

    shell version(s): bash v5.0.7, zsh v5.7.1, fish v3.0.2 vim version(s): vim v8.1.1900, neovim v0.3.7