Skip to content

Conversation

dnicolson
Copy link
Contributor

This pull request fixes an issue with the fish shell when determining the system path, the following error would appear in the console:

Traceback (most recent call last):
  File "/Users/dave/Library/Application Support/Sublime Text 3/Packages/JavaScript Enhancements/main.py", line 140, in fixPath
    currSysPath = getSysPath()
  File "/Users/dave/Library/Application Support/Sublime Text 3/Packages/JavaScript Enhancements/main.py", line 129, in getSysPath
    sysPath = sysPath.splitlines()[-1]
IndexError: list index out of range

Prepending the command with the env command fixes the issue, it has been tested with the fish, zsh and bash shells.

@pichillilorenzo
Copy link
Owner

Ok! Thanks!

@pichillilorenzo pichillilorenzo merged commit b99cf5d into pichillilorenzo:master Jun 9, 2018
@dnicolson dnicolson mentioned this pull request Jun 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants