vellerefond / project-ring

Project management for the Atom editor.
GNU General Public License v2.0
15 stars 8 forks source link

Uncaught TypeError: Cannot read property 'files' of undefined #35

Closed shadowlightwolf89 closed 8 years ago

shadowlightwolf89 commented 9 years ago

[Enter steps to reproduce below:]

  1. trying to add project folders to the current project...

Atom Version: 1.0.0 System: Linux Mint Thrown From: project-ring package, v0.32.3

Stack Trace

Uncaught TypeError: Cannot read property 'files' of undefined

At /home/USR/.atom/packages/project-ring/lib/project-ring.coffee:604

TypeError: Cannot read property 'files' of undefined
  at Object.module.exports.fixOpenFilesToCurrentProjectAssociations (/home/USR/.atom/packages/project-ring/lib/project-ring.coffee:604:71)
  at Object.module.exports.add (/home/USR/.atom/packages/project-ring/lib/project-ring.coffee:468:5)
  at /home/USR/.atom/packages/project-ring/lib/project-ring.coffee:198:6

Commands

     -5:57 command-palette:toggle (atom-pane.pane.active)
  2x -5:55.7.0 application:open-folder (atom-text-editor.editor.mini.is-focused)
     -5:41.8.0 tree-view:toggle (atom-pane.pane.active)
     -5:39.8.0 project-ring:toggle (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -5:36.1.0 core:cancel (atom-pane.pane.active)
     -5:34.8.0 project-ring:add-project (atom-pane.pane.active)
     -5:30.7.0 core:confirm (atom-text-editor.editor.mini.is-focused)
  2x -5:20.7.0 markdown-writer:insert-new-line (atom-text-editor.editor.is-focused)
     -5:17.2.0 core:save (atom-text-editor.editor.is-focused)
     -3:46 package-generator:generate-package (atom-text-editor.editor.is-focused)
  4x -3:35.9.0 core:backspace (atom-text-editor.editor.mini.is-focused)
     -3:29.5.0 core:confirm (atom-text-editor.editor.mini.is-focused)
  2x -3:21.1.0 core:backspace (atom-text-editor.editor.is-focused)
     -3:19.7.0 core:save (atom-text-editor.editor.is-focused)
     -0:46.4.0 application:open-folder (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -0:11.4.0 core:save (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "disabledPackages": [
      "atom-gist",
      "jekyll-snippets",
      "atom-gist",
      "jekyll-snippets",
      "jekyll-snippets",
      "markdown-toc",
      "linter-tidy",
      "linter-stylint",
      "linter-shellcheck",
      "linter-scss-lint",
      "linter-ruby",
      "linter-pylint",
      "linter-php",
      "linter-lua",
      "linter-less",
      "linter-jsonlint",
      "linter-jshint",
      "linter-js-yaml",
      "linter-flint",
      "linter-csslint",
      "linter-coffeelint",
      "linter-bootlint",
      "linter",
      "emmet",
      "fonts"
    ],
    "themes": [
      "isotope-ui",
      "duotone-dark-syntax"
    ]
  },
  "project-ring": {
    "saveAndRestoreThePanesLayout": true,
    "keepOutOfPathOpenFilesInCurrentProject": true
  }
}

Installed Packages

# User
atom-beautify, v0.28.7
atom-snippets, v0.1.1
color-picker, v2.0.7
css-snippets, v0.8.0
default-language, v0.2.0
docs-snippets, v0.8.0
duotone-dark-syntax, v0.2.0
gulp-snippets, v0.6.1
isotope-ui, v2.5.0
language-handlebars, v0.2.0
language-log, v0.5.0
language-lsl, v2.0.3
language-lua, v0.9.4
language-prolog, v0.10.0
language-tmux, v0.4.0
leanpub-snippets, v0.2.0
markdown-preview-plus, v1.5.0
markdown-writer, v1.4.0
minimap, v4.10.2
modular-snippets, v0.2.1
pigments, v0.8.2
project-ring, v0.32.3
set-syntax, v0.3.0
tidy-markdown, v1.0.0

# Dev
No dev packages
vellerefond commented 9 years ago

I will look into it asap but would it be ok with you to share the contents of the file _~/.atom-project-ring/default_projectring.cson? It' s where the projects are saved.

shadowlightwolf89 commented 9 years ago
"<~>":
  key: "<~>"
  isDefault: true
  rootDirectories: []
  files:
    open: []
    banned: []
  treeViewState: null
"linux-terminal-aid":
  key: "linux-terminal-aid"
  isDefault: false
  rootDirectories: [
    "/home/shadowlightwolf/.projects/remote/github/personal/linux-terminal-aid"
  ]
  files:
    open: []
    banned: []
  treeViewState:
    directoryExpansionStates:
      "/home/shadowlightwolf/.projects/remote/github/personal/linux-terminal-aid":
        isExpanded: true
        entries:
          ".deploy":
            isExpanded: false
            entries: {}
          ".git":
            isExpanded: false
            entries: {}
          ".sass-cache":
            isExpanded: false
            entries: {}
          _drafts:
            isExpanded: false
            entries: {}
          _includes:
            isExpanded: false
            entries: {}
          _layouts:
            isExpanded: false
            entries: {}
          _plugins:
            isExpanded: false
            entries: {}
          _posts:
            isExpanded: false
            entries: {}
          _sass:
            isExpanded: false
            entries: {}
          _site:
            isExpanded: false
            entries: {}
          _templates:
            isExpanded: false
            entries: {}
          assets:
            isExpanded: false
            entries: {}
          css:
            isExpanded: false
            entries: {}
    hasFocus: true
    attached: true
    scrollLeft: 0
    scrollTop: 0
    width: 200
  panesMap:
    type: "pane"
    filePaths: []
"static-writer":
  key: "static-writer"
  isDefault: false
  rootDirectories: [
    "/home/shadowlightwolf/.projects/remote/github/organization/static-writer"
  ]
  files:
    open: [
      "/home/shadowlightwolf/.projects/remote/github/organization/static-writer/README.md"
    ]
    banned: []
  treeViewState:
    directoryExpansionStates:
      "/home/shadowlightwolf/.projects/remote/github/organization/static-writer":
        isExpanded: true
        entries:
          ".git":
            isExpanded: false
            entries: {}
          keymaps:
            isExpanded: false
            entries: {}
          lib:
            isExpanded: false
            entries: {}
          menus:
            isExpanded: false
            entries: {}
          spec:
            isExpanded: false
            entries: {}
          styles:
            isExpanded: false
            entries: {}
    selectedPath: "/home/shadowlightwolf/.projects/remote/github/organization/static-writer/README.md"
    hasFocus: true
    attached: true
    scrollLeft: 0
    scrollTop: 0
    width: 200
  panesMap:
    type: "pane"
    filePaths: [
      "/home/shadowlightwolf/.projects/remote/github/organization/static-writer/README.md"
    ]
vellerefond commented 9 years ago

Could you please update to version v0.32.4 and report back if you see this error again?