atom / autocomplete-plus

View and insert possible completions in the editor while typing
MIT License
960 stars 263 forks source link

Uncaught Error: Cannot find module 'minimatch' #565

Open TCambs opened 9 years ago

TCambs commented 9 years ago

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.0.9 System: Mac OS X 10.11 Thrown From: autocomplete-plus package, v2.19.0

Stack Trace

Uncaught Error: Cannot find module 'minimatch'

At module.js:330

Error: Cannot find module 'minimatch'
    at Module._resolveFilename (module.js:328:15)
    at Function.Module._resolveFilename (/Users/taylor/Downloads/Atom.app/Contents/Resources/app.asar/src/module-cache.js:383:52)
    at Function.Module._load (module.js:270:25)
    at Module.require (module.js:357:17)
    at require (module.js:376:17)
    at AutocompleteManager.module.exports.AutocompleteManager.isCurrentFileBlackListed (/Users/taylor/Downloads/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:576:21)
    at AutocompleteManager.isCurrentFileBlackListed (/Users/taylor/Downloads/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:3:61)
    at AutocompleteManager.module.exports.AutocompleteManager.findSuggestions (/Users/taylor/Downloads/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:223:16)
    at /Users/taylor/Downloads/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:3:61

Commands

  7x -0:04.3.0 core:backspace (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "disabledPackages": [
      "wrap-guide"
    ],
    "themes": [
      "one-dark-ui",
      "monokai"
    ]
  }
}

Installed Packages

# User
No installed packages

# Dev
No dev packages
benogle commented 9 years ago

This is really strange. Are you using a local version of autocomplete-plus?

TCambs commented 9 years ago

I shouldn't be. I haven't messed with any of Atoms config files outside of installing packages/themes

benogle commented 9 years ago

Was this a one time thing or does it happen consistently?

TCambs commented 9 years ago

Happens every time I open Atom... I haven't found anyway to fix it myself.

bluest-hu commented 8 years ago

I meet the same problem. image but,when I have installed minimatch,It notice me 'Cannot find module ***'.

thomasjo commented 8 years ago

@ihuguowei Your problem looks completely unrelated to this issue. This issue is specifically related to the bundled autocomplete-plus package for Atom, whereas you seem to be working in a more general Node.js context.

bluest-hu commented 8 years ago

@thomasjo sorry.my fault.