atom-community / sync-settings

Synchronize all your settings and packages across atom instances
https://atom.io/packages/sync-settings
MIT License
1.14k stars 105 forks source link

Uncaught TypeError: Path must be a string. Received [Function] #330

Closed ttufts closed 7 years ago

ttufts commented 7 years ago

[Enter steps to reproduce below:]

  1. Install/configure
  2. Run Backup

Only happens when updating Packages. Unchecking the 'Sync Packages' and it works.

Atom Version: 1.12.7 Electron Version: 1.3.13 System: Mac OS X 10.12.2 Thrown From: sync-settings package, v0.8.1

Stack Trace

Uncaught TypeError: Path must be a string. Received [Function]

At path.js:7

TypeError: Path must be a string. Received [Function]
    at assertPath (path.js:7:11)
    at Object.join (path.js:1213:7)
    at PackageManager.module.exports.PackageManager.resolvePackagePath (/Applications/Atom.app/Contents/Resources/app.asar/src/package-manager.js:146:26)
    at Object._getAvailablePackageMetadataWithoutDuplicates (/Users/thomas/.atom/packages/sync-settings/lib/sync-settings.coffee:203:32)
    at Object.getPackages (/Users/thomas/.atom/packages/sync-settings/lib/sync-settings.coffee:190:5)
    at Object.backup (/Users/thomas/.atom/packages/sync-settings/lib/sync-settings.coffee:145:57)
    at atom-workspace.<anonymous> (/Users/thomas/.atom/packages/sync-settings/lib/sync-settings.coffee:28:10)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:259:29)
    at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:59)
    at CommandRegistry.module.exports.CommandRegistry.dispatch (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:160:19)
    at HTMLAnchorElement.onDidClick (/Users/thomas/.atom/packages/sync-settings/lib/sync-settings.coffee:107:25)
    at HTMLAnchorElement.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/notifications/lib/notification-element.js:137:42)

Commands

     -0:00.0 sync-settings:backup (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-one-light-syntax.theme-atom-light-ui)

Config

{
  "core": {
    "disabledPackages": [
      "wordcount"
    ],
    "telemetryConsent": "no",
    "themes": [
      "atom-light-ui",
      "one-light-syntax"
    ]
  },
  "sync-settings": {
    "gistId": "<REMOVED>",
    "personalAccessToken": "<REMOVED>"
  }
}

Installed Packages

# User
atom-beautify, v0.29.15 (inactive)
git-time-machine, v1.5.4 (inactive)
highlight-selected, v0.11.2 (active)
language-vbscript, v0.7.0 (active)
line-ending-converter, v1.3.2 (active)
linter, v1.11.18 (active)
linter-pep8, v1.3.2 (active)
permute, v0.1.1 (active)
sort-lines, v0.14.0 (inactive)
Sublime-Style-Column-Selection, v1.7.2 (active)
sync-settings, v0.8.1 (active)
tabs-to-spaces, v1.0.3 (active)
todo-show, v1.8.0 (inactive)
wordcount, v2.10.2 (inactive)
atom-dark-syntax, v0.27.0 (inactive)
atom-dark-ui, v0.52.0 (inactive)
atom-light-syntax, v0.28.0 (inactive)
atom-light-ui, v0.45.0 (active)
base16-tomorrow-dark-theme, v1.3.0 (inactive)
base16-tomorrow-light-theme, v1.3.0 (inactive)
one-dark-ui, v1.6.2 (inactive)
one-light-ui, v1.6.2 (inactive)
one-dark-syntax, v1.5.0 (inactive)
one-light-syntax, v1.5.0 (active)
solarized-dark-syntax, v1.0.5 (inactive)
solarized-light-syntax, v1.0.5 (inactive)
about, v1.7.0 (active)
archive-view, v0.62.0 (active)
autocomplete-atom-api, v0.10.0 (active)
autocomplete-css, v0.13.1 (active)
autocomplete-html, v0.7.2 (active)
autocomplete-plus, v2.31.4 (active)
autocomplete-snippets, v1.11.0 (active)
autoflow, v0.27.0 (inactive)
autosave, v0.23.1 (active)
background-tips, v0.26.1 (active)
bookmarks, v0.42.0 (active)
bracket-matcher, v0.82.2 (active)
command-palette, v0.39.0 (inactive)
deprecation-cop, v0.54.1 (active)
dev-live-reload, v0.47.0 (active)
encoding-selector, v0.22.0 (active)
exception-reporting, v0.40.0 (active)
find-and-replace, v0.202.2 (inactive)
fuzzy-finder, v1.4.0 (active)
git-diff, v1.1.0 (active)
go-to-line, v0.31.0 (inactive)
grammar-selector, v0.48.2 (active)
image-view, v0.60.0 (active)
incompatible-packages, v0.26.1 (active)
keybinding-resolver, v0.35.0 (active)
line-ending-selector, v0.5.0 (active)
link, v0.31.2 (inactive)
markdown-preview, v0.158.8 (active)
metrics, v1.1.2 (active)
notifications, v0.65.1 (active)
open-on-github, v1.2.1 (inactive)
package-generator, v1.0.1 (inactive)
settings-view, v0.243.1 (active)
snippets, v1.0.4 (active)
spell-check, v0.68.4 (active)
status-bar, v1.4.1 (active)
styleguide, v0.47.2 (active)
symbols-view, v0.113.1 (inactive)
tabs, v0.103.0 (active)
timecop, v0.33.2 (active)
tree-view, v0.210.0 (active)
update-package-dependencies, v0.10.0 (active)
welcome, v0.35.1 (active)
whitespace, v0.35.0 (active)
wrap-guide, v0.38.2 (active)
language-c, v0.54.0 (active)
language-clojure, v0.22.1 (active)
language-coffee-script, v0.48.0 (active)
language-csharp, v0.13.0 (active)
language-css, v0.40.1 (active)
language-gfm, v0.88.0 (active)
language-git, v0.15.0 (active)
language-go, v0.43.0 (active)
language-html, v0.47.1 (active)
language-hyperlink, v0.16.1 (active)
language-java, v0.24.0 (active)
language-javascript, v0.122.0 (active)
language-json, v0.18.3 (active)
language-less, v0.29.6 (active)
language-make, v0.22.2 (active)
language-mustache, v0.13.0 (active)
language-objective-c, v0.15.1 (active)
language-perl, v0.37.0 (active)
language-php, v0.37.3 (active)
language-property-list, v0.8.0 (active)
language-python, v0.45.1 (active)
language-ruby, v0.70.2 (active)
language-ruby-on-rails, v0.25.1 (active)
language-sass, v0.57.0 (active)
language-shellscript, v0.23.0 (active)
language-source, v0.9.0 (active)
language-sql, v0.25.0 (active)
language-text, v0.7.1 (active)
language-todo, v0.29.1 (active)
language-toml, v0.18.1 (active)
language-xml, v0.34.12 (active)
language-yaml, v0.27.1 (active)

# Dev
No dev packages
dirk-thomas commented 7 years ago

This package calls atom.packages.getAvailablePackageNames() and the API doc states that it "returns an Array of Strings of all the available package names". Then it calls atom.packages.resolvePackagePath() (see implementation). If we assume that the passed name is a string then the only other argument to join is @resourcePath. But that variable is uses as a string throughout the file so I don't see why this fails with:

TypeError: Path must be a string. Received [Function]

It would be great if you could add some debug output to the code and try to run it with that. E.g. adding a line before https://github.com/atom-community/sync-settings/blob/538b24c89096bb168a189838338f670a55bd64f2/lib/sync-settings.coffee#L203 which prints the value of pkg_name: console.log('debug pkg_name = ', pkg_name)

ttufts commented 7 years ago

I migrated to a new system and the problem isn't reproducible here. Don't have the old system anymore, so we'll have to close this if we can't reproduce. Sorry.

avonmoll commented 7 years ago

This happened to me today after updating several packages and then restarting Atom. What's weird is that the error is not thrown from the sync-settings package. The console output does indeed show a function trying to be passed as the package name, but it's difficult to tell what package is causing this.

Edit: The other thing that's weird is that there are 158 items returned by atom.packages.getAvailablePackageNames(), but in the Settings window it says I have only 140 packages installed.

[Enter steps to reproduce below:]

  1. Add console.log('debug pkg_name = ', pkg_name) before L203 in sync-settings.coffee
  2. Run sync-settings:backup

Console Output:

/deep/ combinator is deprecated. See https://www.chromestatus.com/features/6750456638341120 for more details.
checking latest backup...
Creating GitHubApi client with token = #####################
latest backup version 9d7f9283e50164042499facd0f59fdcacd47b4d1
debug pkg_name =  atom-beautify
debug pkg_name =  atom-csv-markdown
debug pkg_name =  atom-typescript
debug pkg_name =  atomic-chrome
debug pkg_name =  autoclose-html
debug pkg_name =  autocomplete-bibtex
debug pkg_name =  autocomplete-emojis
debug pkg_name =  autocomplete-python
debug pkg_name =  debug
debug pkg_name =  document-outline
debug pkg_name =  duotone-dark-space-syntax
debug pkg_name =  duotone-dark-syntax
debug pkg_name =  duotone-swordart-syntax
debug pkg_name =  git-log
debug pkg_name =  git-time-machine
debug pkg_name =  highlight-selected
debug pkg_name =  html-outliner
debug pkg_name =  Hydrogen
debug pkg_name =  language-batch
debug pkg_name =  language-latex
debug pkg_name =  language-markdown
debug pkg_name =  language-matlab
debug pkg_name =  language-pfm
debug pkg_name =  latex
debug pkg_name =  latex-autocomplete
debug pkg_name =  latex-plus
debug pkg_name =  latexer
debug pkg_name =  latextools
debug pkg_name =  linter
debug pkg_name =  linter-chktex
debug pkg_name =  linter-csslint
debug pkg_name =  linter-flake8
debug pkg_name =  linter-htmlhint
debug pkg_name =  linter-jshint
debug pkg_name =  linter-pep8
debug pkg_name =  linter-proselint
debug pkg_name =  markdown-mindmap
debug pkg_name =  markdown-preview-plus
debug pkg_name =  markdown-scroll-sync
debug pkg_name =  markdown-writer
debug pkg_name =  merge-conflicts
debug pkg_name =  minimap
debug pkg_name =  minimap-cursorline
debug pkg_name =  minimap-find-and-replace
debug pkg_name =  minimap-git-diff
debug pkg_name =  minimap-highlight-selected
debug pkg_name =  minimap-pigments
debug pkg_name =  minimap-selection
debug pkg_name =  minimap-split-diff
debug pkg_name =  minimap-titles
debug pkg_name =  monokai
debug pkg_name =  node_modules
debug pkg_name =  nord-atom-syntax
debug pkg_name =  nord-atom-ui
debug pkg_name =  packages
debug pkg_name =  pdf-view
debug pkg_name =  pen-paper-coffee-syntax
debug pkg_name =  pigments
debug pkg_name =  preview-inline
debug pkg_name =  script
debug pkg_name =  seti-icons
debug pkg_name =  split-diff
debug pkg_name =  sync-settings
debug pkg_name =  textual-velocity
debug pkg_name =  thesaurus
debug pkg_name =  typewriter
debug pkg_name =  wordcount
debug pkg_name =  wrap-with-anything
debug pkg_name =  atom-dark-syntax
debug pkg_name =  atom-dark-ui
debug pkg_name =  atom-light-syntax
debug pkg_name =  atom-light-ui
debug pkg_name =  base16-tomorrow-dark-theme
debug pkg_name =  base16-tomorrow-light-theme
debug pkg_name =  one-dark-ui
debug pkg_name =  one-light-ui
debug pkg_name =  one-dark-syntax
debug pkg_name =  one-light-syntax
debug pkg_name =  solarized-dark-syntax
debug pkg_name =  solarized-light-syntax
debug pkg_name =  about
debug pkg_name =  archive-view
debug pkg_name =  autocomplete-atom-api
debug pkg_name =  autocomplete-css
debug pkg_name =  autocomplete-html
debug pkg_name =  autocomplete-plus
debug pkg_name =  autocomplete-snippets
debug pkg_name =  autoflow
debug pkg_name =  autosave
debug pkg_name =  background-tips
debug pkg_name =  bookmarks
debug pkg_name =  bracket-matcher
debug pkg_name =  command-palette
debug pkg_name =  deprecation-cop
debug pkg_name =  dev-live-reload
debug pkg_name =  encoding-selector
debug pkg_name =  exception-reporting
debug pkg_name =  find-and-replace
debug pkg_name =  fuzzy-finder
debug pkg_name =  git-diff
debug pkg_name =  go-to-line
debug pkg_name =  grammar-selector
debug pkg_name =  image-view
debug pkg_name =  incompatible-packages
debug pkg_name =  keybinding-resolver
debug pkg_name =  line-ending-selector
debug pkg_name =  link
debug pkg_name =  markdown-preview
debug pkg_name =  metrics
debug pkg_name =  notifications
debug pkg_name =  open-on-github
debug pkg_name =  package-generator
debug pkg_name =  settings-view
debug pkg_name =  snippets
debug pkg_name =  spell-check
debug pkg_name =  status-bar
debug pkg_name =  styleguide
debug pkg_name =  symbols-view
debug pkg_name =  tabs
debug pkg_name =  timecop
debug pkg_name =  tree-view
debug pkg_name =  update-package-dependencies
debug pkg_name =  welcome
debug pkg_name =  whitespace
debug pkg_name =  wrap-guide
debug pkg_name =  language-c
debug pkg_name =  language-clojure
debug pkg_name =  language-coffee-script
debug pkg_name =  language-csharp
debug pkg_name =  language-css
debug pkg_name =  language-gfm
debug pkg_name =  language-git
debug pkg_name =  language-go
debug pkg_name =  language-html
debug pkg_name =  language-hyperlink
debug pkg_name =  language-java
debug pkg_name =  language-javascript
debug pkg_name =  language-json
debug pkg_name =  language-less
debug pkg_name =  language-make
debug pkg_name =  language-mustache
debug pkg_name =  language-objective-c
debug pkg_name =  language-perl
debug pkg_name =  language-php
debug pkg_name =  language-property-list
debug pkg_name =  language-python
debug pkg_name =  language-ruby
debug pkg_name =  language-ruby-on-rails
debug pkg_name =  language-sass
debug pkg_name =  language-shellscript
debug pkg_name =  language-source
debug pkg_name =  language-sql
debug pkg_name =  language-text
debug pkg_name =  language-todo
debug pkg_name =  language-toml
debug pkg_name =  language-xml
debug pkg_name =  language-yaml
debug pkg_name =  () {
  var u = {},
      a = [];
  for (var i = 0, l = this.length; i < l; ++i) {
    if (u.hasOwnProperty(this[i])) {
      continue;
    }
    a.push(this[i]);
    u[this[i]] = 1;
  }
  ret…
Uncaught TypeError: Path must be a string. Received [Function]

Atom Version: 1.13.0 Electron Version: 1.3.13 System: Microsoft Windows 7 Enterprise Thrown From: 'packages' package, vundefined

Stack Trace

Uncaught TypeError: Path must be a string. Received [Function]

At path.js:7

TypeError: Path must be a string. Received [Function]
    at assertPath (path.js:7:11)
    at Object.join (path.js:466:7)
    at PackageManager.module.exports.PackageManager.resolvePackagePath (C:\Users\VonmolAL\Documents\Atom\resources\app.asar\src\package-manager.js:146:26)
    at Object._getAvailablePackageMetadataWithoutDuplicates (file:///C:/Users/VonmolAL/.atom/packages/sync-settings/lib/sync-settings.coffee:203:32)
    at Object.getPackages (file:///C:/Users/VonmolAL/.atom/packages/sync-settings/lib/sync-settings.coffee:190:5)
    at Object.backup (file:///C:/Users/VonmolAL/.atom/packages/sync-settings/lib/sync-settings.coffee:145:57)
    at atom-workspace.<anonymous> (file:///C:/Users/VonmolAL/.atom/packages/sync-settings/lib/sync-settings.coffee:28:10)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (C:\Users\VonmolAL\Documents\Atom\resources\app.asar\src\command-registry.js:259:29)
    at C:\Users\VonmolAL\Documents\Atom\resources\app.asar\src\command-registry.js:3:59
    at CommandPaletteView.module.exports.CommandPaletteView.confirmed (C:\Users\VonmolAL\Documents\Atom\resources\app.asar\node_modules\command-palette\lib\command-palette-view.js:210:32)
    at CommandPaletteView.module.exports.SelectListView.confirmSelection (C:\Users\VonmolAL\Documents\Atom\resources\app.asar\node_modules\atom-space-pen-views\lib\select-list-view.js:338:21)
    at space-pen-div.atom.commands.add.core:confirm (C:\Users\VonmolAL\Documents\Atom\resources\app.asar\node_modules\atom-space-pen-views\lib\select-list-view.js:109:19)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (C:\Users\VonmolAL\Documents\Atom\resources\app.asar\src\command-registry.js:259:29)
    at C:\Users\VonmolAL\Documents\Atom\resources\app.asar\src\command-registry.js:3:59
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (C:\Users\VonmolAL\Documents\Atom\resources\app.asar\node_modules\atom-keymap\lib\keymap-manager.js:587:16)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (C:\Users\VonmolAL\Documents\Atom\resources\app.asar\node_modules\atom-keymap\lib\keymap-manager.js:382:22)
    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (C:\Users\VonmolAL\Documents\Atom\resources\app.asar\src\window-event-handler.js:106:36)
    at HTMLDocument.<anonymous> (C:\Users\VonmolAL\Documents\Atom\resources\app.asar\src\window-event-handler.js:3:59)

Commands

     -3:13.2.0 command-palette:toggle (input.hidden-input)
  3x -3:09.8.0 core:move-down (input.hidden-input)
     -3:08.5.0 core:confirm (input.hidden-input)
     -3:08.5.0 sync-settings:backup (input.hidden-input)

Config

{
  "core": {
    "autoHideMenuBar": true,
    "disabledPackages": [
      "linter-chktex",
      "latex-plus",
      "latextools",
      "markdown-preview",
      "git-time-machine",
      "linter-pep8",
      "typewriter",
      "atomic-chrome",
      "merge-conflicts",
      "language-gfm",
      "language-markdown"
    ],
    "excludeVcsIgnoredPaths": false,
    "openEmptyEditorOnStart": false,
    "packagesWithKeymapsDisabled": [
      "textual-velocity",
      "thesaurus"
    ],
    "projectHome": "C:\\Users\\VonmolAL\\Documents\\Atom\\package-source",
    "telemetryConsent": "no",
    "themes": [
      "nord-atom-ui",
      "nord-atom-syntax"
    ]
  }
}

Installed Packages

# User
atom-beautify, v0.29.16 (inactive)
atom-csv-markdown, v1.0.2 (inactive)
atom-typescript, v10.1.13 (active)
atomic-chrome, v0.3.0 (inactive)
autoclose-html, v0.23.0 (active)
autocomplete-bibtex, v0.7.0 (active)
autocomplete-emojis, v2.5.0 (active)
autocomplete-python, v1.8.26 (active)
debug, v0.0.1 (active)
document-outline, v1.1.2 (active)
duotone-dark-space-syntax, v2.1.0 (inactive)
duotone-dark-syntax, v2.1.0 (inactive)
duotone-swordart-syntax, v2.2.0 (inactive)
git-log, v0.4.1 (active)
git-time-machine, v1.5.4 (inactive)
highlight-selected, v0.12.0 (active)
html-outliner, v0.1.1 (active)
Hydrogen, v1.5.3 (inactive)
language-batch, v0.3.3 (active)
language-latex, v1.0.0 (active)
language-markdown, v0.19.1 (inactive)
language-matlab, v0.2.1 (active)
language-pfm, v0.82.0 (active)
latex, v0.42.2 (inactive)
latex-autocomplete, v1.0.0 (active)
latex-plus, v0.7.8 (inactive)
latexer, v0.3.0 (active)
latextools, v0.8.5 (inactive)
linter, v1.11.21 (active)
linter-chktex, v1.3.0 (inactive)
linter-csslint, v1.3.3 (active)
linter-flake8, v2.1.4 (inactive)
linter-htmlhint, v1.3.1 (active)
linter-jshint, v3.0.2 (active)
linter-pep8, v1.3.2 (inactive)
linter-proselint, v3.2.0 (active)
markdown-mindmap, v0.3.2 (active)
markdown-preview-plus, v2.4.0 (active)
markdown-scroll-sync, v2.1.2 (active)
markdown-writer, v2.6.3 (inactive)
merge-conflicts, v1.4.4 (inactive)
minimap, v4.26.6 (active)
minimap-cursorline, v0.2.0 (active)
minimap-find-and-replace, v4.5.1 (active)
minimap-git-diff, v4.3.1 (active)
minimap-highlight-selected, v4.5.0 (active)
minimap-pigments, v0.2.2 (active)
minimap-selection, v4.4.0 (active)
minimap-split-diff, v0.3.2 (active)
minimap-titles, v1.8.1 (inactive)
monokai, v0.18.0 (inactive)
node_modules, vundefined (active)
nord-atom-syntax, v0.5.0 (active)
nord-atom-ui, v0.9.0 (active)
packages, vundefined (active)
pdf-view, v0.54.0 (active)
pen-paper-coffee-syntax, v0.14.8 (inactive)
pigments, v0.38.0 (active)
preview-inline, v1.4.5 (active)
script, v3.14.0 (inactive)
seti-icons, v1.3.4 (active)
split-diff, v1.1.1 (inactive)
sync-settings, v0.8.1 (active)
textual-velocity, v0.11.4 (inactive)
thesaurus, v0.3.0 (active)
typewriter, v0.5.0 (inactive)
wordcount, v2.10.2 (active)
wrap-with-anything, v0.1.1 (active)
atom-dark-syntax, v0.28.0 (inactive)
atom-dark-ui, v0.53.0 (inactive)
atom-light-syntax, v0.29.0 (inactive)
atom-light-ui, v0.46.0 (inactive)
base16-tomorrow-dark-theme, v1.4.0 (inactive)
base16-tomorrow-light-theme, v1.4.0 (inactive)
one-dark-ui, v1.8.2 (inactive)
one-light-ui, v1.8.2 (inactive)
one-dark-syntax, v1.6.0 (inactive)
one-light-syntax, v1.6.0 (inactive)
solarized-dark-syntax, v1.1.1 (inactive)
solarized-light-syntax, v1.1.1 (inactive)
about, v1.7.2 (active)
archive-view, v0.62.0 (active)
autocomplete-atom-api, v0.10.0 (active)
autocomplete-css, v0.14.1 (active)
autocomplete-html, v0.7.2 (active)
autocomplete-plus, v2.33.1 (active)
autocomplete-snippets, v1.11.0 (active)
autoflow, v0.29.0 (inactive)
autosave, v0.23.2 (active)
background-tips, v0.26.1 (active)
bookmarks, v0.43.2 (active)
bracket-matcher, v0.85.1 (active)
command-palette, v0.39.1 (active)
deprecation-cop, v0.55.1 (active)
dev-live-reload, v0.47.0 (active)
encoding-selector, v0.22.0 (active)
exception-reporting, v0.40.0 (active)
find-and-replace, v0.204.5 (inactive)
fuzzy-finder, v1.4.0 (active)
git-diff, v1.2.0 (active)
go-to-line, v0.31.2 (inactive)
grammar-selector, v0.48.2 (active)
image-view, v0.60.0 (active)
incompatible-packages, v0.26.1 (active)
keybinding-resolver, v0.35.0 (active)
line-ending-selector, v0.5.1 (active)
link, v0.31.2 (inactive)
markdown-preview, v0.159.1 (inactive)
metrics, v1.1.2 (active)
notifications, v0.65.1 (active)
open-on-github, v1.2.1 (inactive)
package-generator, v1.0.2 (inactive)
settings-view, v0.244.0 (active)
snippets, v1.0.4 (active)
spell-check, v0.68.5 (active)
status-bar, v1.6.0 (active)
styleguide, v0.48.0 (active)
symbols-view, v0.113.1 (inactive)
tabs, v0.103.1 (active)
timecop, v0.33.2 (active)
tree-view, v0.211.1 (active)
update-package-dependencies, v0.10.0 (active)
welcome, v0.35.1 (active)
whitespace, v0.35.0 (active)
wrap-guide, v0.39.0 (active)
language-c, v0.54.0 (active)
language-clojure, v0.22.1 (active)
language-coffee-script, v0.48.1 (active)
language-csharp, v0.13.0 (active)
language-css, v0.40.1 (active)
language-gfm, v0.88.0 (inactive)
language-git, v0.15.0 (active)
language-go, v0.43.0 (active)
language-html, v0.47.1 (active)
language-hyperlink, v0.16.1 (active)
language-java, v0.24.0 (active)
language-javascript, v0.122.0 (active)
language-json, v0.18.3 (active)
language-less, v0.29.6 (active)
language-make, v0.22.2 (active)
language-mustache, v0.13.0 (active)
language-objective-c, v0.15.1 (active)
language-perl, v0.37.0 (active)
language-php, v0.37.3 (active)
language-property-list, v0.8.0 (active)
language-python, v0.45.1 (active)
language-ruby, v0.70.2 (active)
language-ruby-on-rails, v0.25.1 (active)
language-sass, v0.57.0 (active)
language-shellscript, v0.23.0 (active)
language-source, v0.9.0 (active)
language-sql, v0.25.0 (active)
language-text, v0.7.1 (active)
language-todo, v0.29.1 (active)
language-toml, v0.18.1 (active)
language-xml, v0.34.12 (active)
language-yaml, v0.27.1 (active)

# Dev
No dev packages
dirk-thomas commented 7 years ago

@avonmoll Can you please try to invoke the following function on the developer console: atom.packages.getAvailablePackageNames()

For me the array only contains strings (the available package names). Your above test suggests that yours might contain a function as one of the array items.

avonmoll commented 7 years ago

When invoked in the developer console, it seems to work properly. I get an array of strings of size 157 (which matches the number of strings from the sync-settings debug step that occur prior to the appearance of the function). Is there any way for the call to atom.packages.getAvailablePackageNames() within sync-settings is calling a different version of the function?

dirk-thomas commented 7 years ago

As far as I know that symbol is globally available. So I don't think https://github.com/atom-community/sync-settings/blob/a8fe7a74af343d7e58ff459c9b2e981eeb6f9369/lib/sync-settings.coffee#L202 can anything different.

avonmoll commented 7 years ago

Yeah, I have no idea how the calling from the package versus calling from the dev console could be any different. Do you think I should make an issue on the Atom repo, since it appears that the getAvailablePackageNames is doing something it shouldn't?

Edit: I tried a few more things, uninstalled a couple of packages and cleaned up my ~/.atom/packages directory as best as I could tell. This time, the console actually included the name of the function that was being passed at the end of that loop:

getUnique function () {
  var u = {},
      a = [];
  for (var i = 0, l = this.length; i < l; ++i) {
    if (u.hasOwnProperty(this[i])) {
      continue;
    }
    a.push(this[i]);
    u[this[i]] = 1;
  }
  ret…

Edit2: I randomly discovered that the above function comes from the thesaurus package

dirk-thomas commented 7 years ago

Could you try that but I would expect them to request a reproducible example which we don't have at the moment.

avonmoll commented 7 years ago

Did some more tinkering today. Nuked my ~/.atom/packages folder (with the exception of sync-settings) and did sync-settings:restore to reinstall all my packages. After completing this process (~45 min), all sync-settings functionality works properly. Something in my packages folder must have been messed up, previously.

tpkemme commented 7 years ago

@avonmoll Had the same problem and your solution fixed it initially but now it's not working again. Same error with path.js and i CAN'T backup at all

axonmagnus commented 7 years ago

Greetings gents i too am getting the same error

Uncaught TypeError: Path must be a string.Recieved [Function]

path.js:7

btw am new to programming so i dont really understand the error :(

dirk-thomas commented 7 years ago

@axonmagnus Have you tried the suggestions to fix the problem described in this issue?

axonmagnus commented 7 years ago

@dirk-thomas if i nuke my packages i think i wont be able to get them back since i am not even sure it backed them up in the first place :( , i have alot of packages

tpkemme commented 7 years ago

@dirk-thomas @avonmoll @axonmagnus I apologize, in my previous comment I had mentioned that after deleting the packages folder that i COULD backup afterwards. I meant to say that I could NOT backup successfully after trying this. I haven't found a solution yet. I'm not able to use the plugin at all actually. I tried syncing with a new gist using a new api key but I'm still getting the error which is preventing me from backing anything up.

avonmoll commented 7 years ago

@tpkemme, did you try debugging?

For some reason, this issue has never cropped back up even though the thesaurus package still has a globally defined function that caused my original exception. I wonder if the issue is really inside of Atom. Unfortunately (or fortunately?) I can no longer produce this error.

tpkemme commented 7 years ago

@avonmoll yes I followed the same steps as you and got the same output. What's weird is that I uninstalled the sync-settings app about two weeks ago and decided to try it again today. I reinstalled it and even though it saved all my previous settings, I'm not longer getting this error. This is leading me to believe the conflict is coming from a different package but I can't produce the error anymore so I don't really have any more information. I appreciate your help though

drawcard commented 7 years ago

Having some trouble here:

Atom: 1.18.0 x64 Electron: 1.3.15 OS: Mac OS X 10.12.1 Thrown From: sync-settings package 0.8.2

Stack Trace

Uncaught TypeError: Path must be a string. Received [Function]

At path.js:7

TypeError: Path must be a string. Received [Function]
    at assertPath (path.js:7:11)
    at Object.join (path.js:1213:7)
    at PackageManager.module.exports.PackageManager.resolvePackagePath (/Applications/Atom.app/Contents/Resources/app/src/package-manager.js:161:38)
    at Object._getAvailablePackageMetadataWithoutDuplicates (/packages/sync-settings/lib/sync-settings.coffee:205:32)
    at Object.getPackages (/packages/sync-settings/lib/sync-settings.coffee:192:5)
    at Object.backup (/packages/sync-settings/lib/sync-settings.coffee:145:57)
    at /packages/sync-settings/lib/sync-settings.coffee:28:10)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:265:35)
    at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:65)
    at CommandRegistry.module.exports.CommandRegistry.dispatch (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:166:25)
    at AtomEnvironment.module.exports.AtomEnvironment.dispatchApplicationMenuCommand (/Applications/Atom.app/Contents/Resources/app/src/atom-environment.js:1314:34)
    at EventEmitter.outerCallback (/Applications/Atom.app/Contents/Resources/app/src/application-delegate.js:334:31)
    at emitThree (events.js:116:13)
    at EventEmitter.emit (events.js:194:7)

Commands

     -5:53 tree-view:show (atom-workspace.workspace.scrollbars-visible-when-scrolling)
  2x -3:55.8.0 core:paste (input.hidden-input)
  3x -1:37.2.0 sync-settings:backup (input.hidden-input)
  2x -0:03.0 core:copy (atom-notification.fatal.icon.icon-bug.native-key-bindings.has-detail.has-close.has-stack)

Non-Core Packages

aligner-php 1.1.1 
atom-beautify 0.30.1 
atom-wordpress 0.3.0 
autocomplete-bibtex 0.7.0 
autocomplete-php 0.3.7 
busy-signal 1.4.3 
code-peek 1.4.20 
color-picker 2.2.5 
duplicate-line-or-selection 0.9.0 
editorconfig 2.2.2 
emmet 2.4.3 
file-icons 2.1.7 
fonts 3.0.2 
html-to-css 0.2.2 
imdone-atom 2.2.6 
intentions 1.1.2 
linter 2.2.0 
linter-bootlint 1.0.4 
linter-eslint 8.2.1 
linter-htmlhint 1.3.3 
linter-js-yaml 1.2.7 
linter-jshint 3.1.2 
linter-jsonlint 1.3.0 
linter-just-say-no 0.7.3 
linter-less 2.6.0 
linter-liferay 3.0.0 
linter-markdownlint 1.0.1 
linter-php 1.3.2 
linter-processing 2.2.2 
linter-proselint 3.2.1 
linter-python 3.1.2 
linter-ruby 1.2.5 
linter-scss-lint 3.1.0 
linter-shellcheck 1.4.4 
linter-stylelint 3.10.0 
linter-ui-default 1.6.1 
linter-vagrant-validate 1.1.0 
linter-write-good 0.9.0 
linter-xmllint 1.4.3 
minimap 4.28.2 
minimap-find-and-replace 4.5.2 
minimap-linter 2.0.0 
minimap-pigments 0.2.2 
php-debug 0.2.4 
pigments 0.39.1 
project-manager 3.3.5 
sort-lines 0.14.0 
sorter 1.1.0 
sync-settings 0.8.2 
tree-view-search-bar 0.1.8 
wordpress-api 1.2.2 
wordpress-dictionary 4.4.0 
wordpress-suite 1.0.4 
wp-snippets 0.2.10 
encodis commented 7 years ago

I've just started to get this one (since 1.19).

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.19.0 x64 Electron: 1.6.9 OS: Mac OS X 10.12.6 Thrown From: sync-settings package 0.8.2

Stack Trace

Uncaught TypeError: Path must be a string. Received [Function]

At path.js:7

TypeError: Path must be a string. Received [Function]
    at assertPath (path.js:7:11)
    at Object.join (path.js:1211:7)
    at PackageManager.module.exports.PackageManager.resolvePackagePath (/Applications/Atom.app/Contents/Resources/app/src/package-manager.js:161:38)
    at Object._getAvailablePackageMetadataWithoutDuplicates (/packages/sync-settings/lib/sync-settings.coffee:205:32)
    at Object.getPackages (/packages/sync-settings/lib/sync-settings.coffee:192:5)
    at Object.backup (/packages/sync-settings/lib/sync-settings.coffee:145:57)
    at /packages/sync-settings/lib/sync-settings.coffee:28:10)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:265:35)
    at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:65)
    at CommandRegistry.module.exports.CommandRegistry.dispatch (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:166:25)
    at executeCallback (/packages/tool-bar/lib/tool-bar-button-view.js:106:19)
    at ToolBarButtonView._onClick (/packages/tool-bar/lib/tool-bar-button-view.js:70:7)

Commands

     -4:08.1.0 tree-view:show (atom-workspace.workspace.scrollbars-visible-when-scrolling)
     -2:09.4.0 git-log:show (div.tool-panel.tree-view)
     -1:55 flex-tool-bar:edit-config-file (input.hidden-input)
     -1:32.6.0 sync-settings:backup (input.hidden-input)

Non-Core Packages

acode-syntax 0.1.1 
acode-ui 0.1.5 
activate-power-mode 2.2.0 
advanced-open-file 0.16.6 
api-docs 0.0.6 
ask-stack 2.2.0 
atom-html-preview 0.1.22 
atom-keyboard-macros 0.10.0 
atom-material-syntax 1.0.6 
atom-material-ui 2.0.4 
atom-notes 1.2.0 
atom-ungit 0.5.3 
atom-wrap-in-tag 0.6.0 
autoclose-html 0.23.0 
autocomplete-date 0.4.0 
autocomplete-paths 1.0.5 
autocomplete-xml 0.9.4 
block-comment-plus 0.5.1 
build-tools 4.5.10 
build-tools-ant 0.1.1 
busy-signal 1.4.3 
character-table 0.4.3 
charcode-display 0.2.1 
color-picker 2.2.5 
css-specificity 0.2.2 
custom-title 1.0.1 
document-outline 1.6.1 
dumb-quoter 0.1.0 
ever-notedown 0.2.27 
expose 0.14.0 
file-icons 2.1.10 
filesize 3.0.0 
flex-tool-bar 0.12.0 
git-log 0.4.1 
git-plus 7.9.3 
git-time-machine 1.5.9 
highlight-selected 0.13.1 
imdone-atom 2.2.6 
import-sf-mono 1.0.1 
intentions 1.1.5 
isotope-ui 2.8.5 
keyboard-sounds 0.2.0 
language-diff 0.7.0 
language-jsoniq 1.8.0 
language-markdown 0.25.1 
language-pfm 0.82.0 
lines 0.13.1 
linter 2.2.0 
linter-bootlint 1.0.4 
linter-htmlhint 1.3.3 
linter-js-standard 3.9.3 
linter-js-standard-engine 2.1.0 
linter-markdown 5.1.0 
linter-proselint 3.2.1 
linter-sass-lint 1.7.4 
linter-ui-default 1.6.4 
markdown-preview-plus 2.4.10 
markdown-table-editor 0.6.1 
merge-conflicts 1.4.5 
minimap 4.29.6 
minimap-highlight-selected 4.6.1 
minimap-pigments 0.2.2 
minimap-titles 1.11.0 
native-ui 0.21.0 
open-recent 5.0.0 
pdf-view 0.59.0 
pen-paper-coffee-syntax 0.14.9 
pigments 0.40.2 
pinned-tabs 1.2.0 
project-viewer 1.2.0 
random 1.3.0 
regex-railroad-diagram 0.19.3 
run-command2 1.12.2 
smart-quotes-plus 2.1.0 
split-diff 1.4.3 
standard-formatter 2.8.0 
Sublime-Style-Column-Selection 1.7.4 
svg-preview 0.11.0 
sync-settings 0.8.2 
tablr 1.8.3 
tag 0.5.0 
term3 0.22.1 
text-manipulation 0.6.0 
theme-reel 1.2.0 
theme-switcher 1.1.0 
tool-bar 1.1.0 
touch-bar-utility 2.0.9 
unity-dark-ui 2.0.9 
update-changelogs 0.1.0 
wordcount 2.10.4 
wrap-with-anything 0.1.1 
Zen 0.18.0 
robjac commented 7 years ago

Tried to backup; cannot backup; I've uninstalled, reinstalled. I did upgrade atom today via the in app install and restart (for a new version of Atom).

`[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.19.7 x64 Electron: 1.6.9 OS: Mac OS X 10.12.6 Thrown From: sync-settings package 0.8.3

Stack Trace

Uncaught TypeError: Path must be a string. Received [Function]

At path.js:7

TypeError: Path must be a string. Received [Function]
    at assertPath (path.js:7:11)
    at Object.join (path.js:1211:7)
    at PackageManager.module.exports.PackageManager.resolvePackagePath (/Applications/Atom.app/Contents/Resources/app/src/package-manager.js:161:38)
    at Object._getAvailablePackageMetadataWithoutDuplicates (/packages/sync-settings/lib/sync-settings.coffee:205:32)
    at Object.getPackages (/packages/sync-settings/lib/sync-settings.coffee:192:5)
    at Object.backup (/packages/sync-settings/lib/sync-settings.coffee:145:57)
    at /packages/sync-settings/lib/sync-settings.coffee:28:10)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:265:35)
    at /Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:65
    at Object.didConfirmSelection (/Applications/Atom.app/Contents/Resources/app/node_modules/command-palette/lib/command-palette-view.js:106:35)
    at SelectListView.confirmSelection (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-select-list/src/select-list-view.js:313:26)
    at HTMLDivElement.core:confirm (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-select-list/src/select-list-view.js:81:20)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:265:35)
    at /Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:65
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:610:22)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:401:28)
    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:100:42)
    at HTMLDocument.<anonymous> (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:3:65)

Commands

     -3:41.5.0 tree-view:show (atom-workspace.workspace.scrollbars-visible-when-scrolling)
     -0:18.3.0 command-palette:toggle (input.hidden-input)
  3x -0:16.8.0 core:move-down (input.hidden-input)
     -0:16.2.0 core:move-up (input.hidden-input)
  2x -0:15.9.0 core:move-down (input.hidden-input)
     -0:14.9.0 core:confirm (input.hidden-input)
     -0:14.9.0 sync-settings:check-backup (input.hidden-input)
     -0:13 command-palette:toggle (input.hidden-input)
  4x -0:10.4.0 core:move-down (input.hidden-input)
  3x -0:09.6.0 core:move-up (input.hidden-input)
     -0:06.8.0 core:confirm (input.hidden-input)
     -0:06.8.0 sync-settings:backup (input.hidden-input)

Non-Core Packages

accents-ui 1.3.0 
adventurous-syntax 0.2.0 
aesthetic-ui 4.0.0 
an-old-hope-syntax 1.0.4 
angularjs 0.4.0 
animated-cursor 1.1.0 
atom-beautify 0.30.5 
atom-clock 0.1.15 
atom-gooey-syntax 1.0.0 
atom-handlebars 1.3.0 
atom-jshint 2.0.0 
atom-material-syntax 1.0.6 
atom-material-ui 2.0.4 
atom-monokai 0.10.9 
atom-monokai-dark 0.4.0 
atom-solarized-dark-ui 0.28.1 
atom-ternjs 0.18.3 
atom-toolbar 0.1.6 
atom-visual-studio-code-ui 1.3.4 
auto-detect-indentation 1.3.0 
autoclose-html 0.23.0 
autocomplete 0.47.0 
autocomplete-clang 0.11.3 
autocomplete-elixir 1.5.15 
autocomplete-erlang 1.1.2 
autocomplete-glsl 0.2.3 
autocomplete-haskell 1.0.1 
autocomplete-java 1.2.7 
autocomplete-json 5.5.0 
autocomplete-php 0.3.7 
autocomplete-ruby 0.2.8 
autoprefixer 3.7.1 
base16-eighties-dark 2.1.1 
brogrammer-syntax 1.0.0 
brogrammer-ui 1.0.0 
browser-plus 0.0.98 
browser-plus-open-new-window 0.0.1 
browser-plus-zoom 0.0.2 
busy-signal 1.4.3 
chameleon-dark-syntax 0.0.5 
cobalt2-syntax 0.5.1 
color-picker 2.2.5 
custom-folds 1.9.4 
dark-bint-syntax 0.10.0 
dash 1.7.1 
elm 0.1.0 
elm-format 3.0.0 
elm-instant 2.0.0 
elm-navigator 1.2.0 
elm-snippets 0.1.0 
elmjutsu 5.6.3 
ember-cli-helper 0.9.0 
emmet 2.4.3 
emmet-snippets-compatibility 1.0.6 
enhanced-tabs 1.7.0 
eval-javascript 1.2.0 
Extempore-Atom 0.3.2 
file-icons 2.1.11 
file-watcher 1.2.6 
flex-tool-bar 0.12.0 
font-awesome-snippetset 0.0.6 
fonts 3.0.3 
gibber 0.1.3 
git-status 0.3.4 
git-time-machine 1.5.9 
gl-light-syntax 3.0.0 
glsl-livecoder 0.8.1 
gruvbox-plus-syntax 1.3.1 
haskell-ghc-mod 2.1.0 
hey-pane 1.0.0 
highlight-column 0.5.4 
highlight-line 0.12.0 
highlight-selected 0.13.1 
html-to-elm 0.2.0 
hugs-syntax 1.0.0 
ide-crystal 0.2.3 
ide-haskell 2.0.5 
ide-haskell-cabal 2.0.2 
ide-haskell-hasktags 0.0.11 
ide-haskell-repl 0.7.1 
incremental-search 5.2.2 
intentions 1.1.5 
javascript-snippets 1.2.1 
jQuery 1.2.5 
jquery-snippets 11.0.0 
jslint 1.5.1 
jumpy 3.1.3 
KeyCount 0.2.0 
language-crystal-actual 0.36.0 
language-elixir 0.20.2 
language-elm 1.5.0 
language-elmx 2.1.1 
language-glsl 2.0.1 
language-haml 0.25.1 
language-haskell 1.13.2 
language-supercollider 0.2.1 
linter 2.2.0 
linter-bootlint 1.1.0 
linter-clang 4.1.2 
linter-csslint 2.0.0 
linter-elixirc 1.7.0 
linter-elm-make 0.24.3 
linter-erb 1.1.0 
linter-eslint 8.2.1 
linter-glsl 2.1.3 
linter-hlint 2.0.0 
linter-htmlhint 1.3.3 
linter-mixed-indent 1.1.0 
linter-rails-best-practices 0.2.2 
linter-rubocop 2.1.1 
linter-ruby 1.2.6 
linter-sass-lint 1.7.6 
linter-scss-lint 3.1.1 
linter-stylelint 4.0.2 
linter-tidy 2.3.1 
linter-ui-default 1.6.8 
linter-xo 0.23.1 
Lucario 2.2.0 
lunar-particle-syntax 0.3.8 
lunar-particle-ui 0.3.13 
material-design-syntax 1.8.0 
miami-nights-syntax 0.3.3 
minimap 4.29.6 
minimap-autohider 1.5.3 
minimap-bookmarks 0.4.2 
minimap-codeglance 0.4.7 
minimap-cursorline 0.2.0 
minimap-find-and-replace 4.5.2 
minimap-highlight-selected 4.6.1 
minimap-linter 2.0.2 
minimap-pigments 0.2.2 
minimap-selection 4.5.0 
monokai 0.24.0 
monokai-blackboard 0.3.0 
monokai-dark 1.3.0 
monokai-flat 1.0.1 
monokai-seti 0.9.0 
neon-color-scheme 1.0.0 
neon-syntax 0.3.7 
nucleus-dark-ui 0.12.3 
oceanic-next 1.0.0 
oceanic-reef-syntax 0.9.0 
octocat-syntax 1.3.1 
open-recent 5.0.0 
p5xjs-autocomplete 2.3.0 
package-cop 0.2.10 
package-list 0.1.2 
package-switch 0.5.0 
package-sync 1.1.0 
pane-layout-plus 0.7.3 
pigments 0.40.2 
predawn-syntax 1.0.4 
predawn-ui 1.0.7 
pristine-ui 1.1.7 
project-colorize 0.2.0 
project-manager 3.3.5 
project-sidebar 1.3.0 
project-view 0.6.2 
pure-syntax 0.3.0 
rails-finder 0.8.0 
rails-snippets 2.16.0 
rails-transporter 1.7.1 
react-es6-snippets 0.3.0 
react-native-snippets 0.3.0 
react-snippets 0.9.0 
recent-projects 0.13.1 
robin-hood-syntax 1.0.0 
rubocop-auto-correct 1.5.1 
script 3.15.0 
scss-media-queries 0.4.0 
scss-snippets 0.6.0 
selector-to-tag 0.4.2 
seti-syntax 1.1.3 
seti-ui 1.9.0 
seti-ui-red 0.13.0 
SkriptDark-Neon-Syntax 2.1.2 
sonic-pi-autocomplete 2.1.5 
spacegray-dark-syntax 0.2.0 
standard-formatter 2.8.0 
standardjs-snippets 2.6.1 
steam-pirate-syntax 0.3.0 
steam-pirate-ui 0.6.1 
Sublime-Style-Column-Selection 1.7.4 
supercollider 0.8.2 
sync-settings 0.8.3 
tab-smart-sort 0.3.0 
terminal-plus 0.14.5 
terminal-syntax 0.1.0 
terminate-syntax 0.3.0 
tidal-autocode 0.6.4 
tidalcycles 0.9.2 
todo-show 2.0.0 
tomorrow 1.0.0 
tomorrow-night-eighties 0.5.0 
tomorrow-night-eighties-syntax 1.0.2 
tool-bar 1.1.0 
tool-bar-almighty 0.8.2 
tree-view-git-status 1.4.0 
ubik-neon-syntax 1.9.1 
vim-mode-plus 1.3.3 

`

qchenevier commented 7 years ago

I had the same issue, and thanks to @avonmoll tips, everything worked fine after removing the thesaurus package and uninstalling/reinstalling the sync-settings package.

diomat commented 6 years ago

I believe the package elm-navigator is causing the same error. I contacted the creator.

dc-avasilev commented 6 years ago

Uncaught TypeError: Path must be a string. Received [Function]

path.js:28

TypeError: Path must be a string. Received [Function]
    at assertPath (path.js:28:11)
    at Object.join (path.js:1251:7)
    at PackageManager.resolvePackagePath (/Applications/Atom.app/Contents/Resources/app/src/package-manager.js:210:36)
    at Object._getAvailablePackageMetadataWithoutDuplicates (/Users/andrey.vasilev/.atom/packages/sync-settings/lib/sync-settings.coffee:205:32)
    at Object.getPackages (/Users/andrey.vasilev/.atom/packages/sync-settings/lib/sync-settings.coffee:192:5)
    at Object.backup (/Users/andrey.vasilev/.atom/packages/sync-settings/lib/sync-settings.coffee:145:57)
    at HTMLElement.<anonymous> (/Users/andrey.vasilev/.atom/packages/sync-settings/lib/sync-settings.coffee:28:10)
    at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:384:49)
    at Object.didConfirmSelection (/Applications/Atom.app/Contents/Resources/app/node_modules/command-palette/lib/command-palette-view.js:152:35)
    at SelectListView.confirmSelection (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-select-list/src/select-list-view.js:413:26)
    at HTMLDivElement.core:confirm (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-select-list/src/select-list-view.js:118:20)
    at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:384:49)
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:621:22)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:412:28)
    at WindowEventHandler.handleDocumentKeyEvent (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:110:40)

OS: 64bit Mac OS X 10.13.6 17G65 Kernel: x86_64 Darwin 17.7.0 Uptime: 2d 2h 19m Packages: 349 Shell: zsh 5.6.2 Resolution: 2880x1800 1920x1080 1080x1920 DE: Aqua WM: Quartz Compositor WM Theme: Graphite CPU: Intel Core i7-7820HQ @ 2.90GHz GPU: Intel HD Graphics 630 / Radeon Pro 560 RAM: 9453MiB / 16384MiB

CMYKpixels commented 5 years ago

path.js:28 Hide Stack Trace TypeError: Path must be a string. Received [Function] at assertPath (path.js:28:11) at Object.join (path.js:1251:7) at PackageManager.resolvePackagePath (/Applications/Atom Beta.app/Contents/Resources/app/static/:11:375018) at Object._getAvailablePackageMetadataWithoutDuplicates (/Users/YETIstudio/.atom/packages/sync-settings/lib/sync-settings.coffee:205:32) at Object.getPackages (/Users/YETIstudio/.atom/packages/sync-settings/lib/sync-settings.coffee:192:5) at Object.backup (/Users/YETIstudio/.atom/packages/sync-settings/lib/sync-settings.coffee:145:57) at HTMLElement. (/Users/YETIstudio/.atom/packages/sync-settings/lib/sync-settings.coffee:28:10) at CommandRegistry.handleCommandEvent (/Applications/Atom Beta.app/Contents/Resources/app/static/:11:350017) at Object.didConfirmSelection (/Applications/Atom Beta.app/Contents/Resources/app/static/:11:677438) at SelectListView.confirmSelection (/Applications/Atom Beta.app/Contents/Resources/app/static/:11:840539) at HTMLDivElement.core:confirm (/Applications/Atom Beta.app/Contents/Resources/app/static/:11:835418) at CommandRegistry.handleCommandEvent (/Applications/Atom Beta.app/Contents/Resources/app/static/:11:350017) at KeymapManager.t.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom Beta.app/Contents/Resources/app/static/:11:1212824) at KeymapManager.t.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom Beta.app/Contents/Resources/app/static/:11:1208958) at WindowEventHandler.handleDocumentKeyEvent (/Applications/Atom Beta.app/Contents/Resources/app/static/:11:285196)