prrrnd / atom-git-projects

List and open your local Git projects in Atom.
MIT License
37 stars 18 forks source link

Uncaught ReferenceError: path is not defined #27

Closed shgysk8zer0 closed 9 years ago

shgysk8zer0 commented 9 years ago

[Enter steps to reproduce below:]

  1. Install Atom V0.199.0
  2. Open Atom
  3. "Toggle Projects List"

Per Atom release notes:
"Fixed an issue where fs and path would be accidentally available as global variables"

Atom Version: 0.199.0 System: linux 3.13.0-52-generic Thrown From: git-projects package, v1.13.0

Stack Trace

Uncaught ReferenceError: path is not defined

At /home/chris/.atom/packages/git-projects/lib/models/project.coffee:22

ReferenceError: path is not defined
  at Project.module.exports.Project.readConfigFile (/home/chris/.atom/packages/git-projects/lib/models/project.coffee:22:24)
  at new Project (/home/chris/.atom/packages/git-projects/lib/models/project.coffee:11:6)
  at /home/chris/.atom/packages/git-projects/lib/git-projects.coffee:113:29
  at Set.forEach (native)
  at Object.module.exports.findGitRepos (/home/chris/.atom/packages/git-projects/lib/git-projects.coffee:108:15)
  at /home/chris/.atom/packages/git-projects/lib/views/projects-list-view.coffee:54:29

Commands

     -0:02.8.0 git-projects:toggle (ul.list-inline.tab-bar.inset-panel)

Config

{
  "core": {
    "disabledPackages": [
      "autocomplete-plus-async",
      "emmet",
      "vim-mode",
      "linter-csslint",
      "todo-list",
      "package-sync",
      "autocomplete-plus",
      "auto-indent",
      "jsonlint"
    ],
    "autoHideMenuBar": true,
    "projectHome": "/var/www/html",
    "followSymlinks": false
  },
  "git-projects": {
    "rootPath": "/var/www/html"
  }
}

Installed Packages

# User
autoclose-html, v0.16.0
color-picker, v1.7.0
docblockr, v0.7.1
file-icons, v1.5.5
git-projects, v1.13.0
language-apache, v1.3.0
language-gitignore, v0.2.0
language-ini, v1.10.0
linter, v0.12.2
linter-php, v0.0.12
travis-ci-status, v0.14.1

# Dev
No dev packages
prrrnd commented 9 years ago

Thank you for reporting the issue. I have just merged a PR that should fix this – https://github.com/prrrnd/atom-git-projects/commit/667d49d12f0aa34336f436c34ec6c62e065e7a03