Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Uncaught Error: Cannot find module './context-menu #6548

Closed

Description

@JbIPS

I right-clicked on a folder in the tree view

Atom Version: 0.194.0
System: Windows 7 Entreprise
Thrown From: Atom Core

Stack Trace

Uncaught Error: Cannot find module './context-menu'
Error: Cannot find module './context-menu'
at Function.Module._resolveFilename (module.js:328:15)
at Function.Module._load (module.js:270:25)
at Module.require (module.js:357:17)
at require (module.js:376:17)
at BrowserWindow. (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\browser\atom-window.js:152:27)
at emitOne (events.js:77:13)
at BrowserWindow.emit (events.js:166:7)
at callFunction (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:116:18)
at EventEmitter. (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:208:14)
at emitMany (events.js:108:13)

At C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77

Error: Cannot find module './context-menu'
Error: Cannot find module './context-menu'
    at Function.Module._resolveFilename (module.js:328:15)
    at Function.Module._load (module.js:270:25)
    at Module.require (module.js:357:17)
    at require (module.js:376:17)
    at BrowserWindow.<anonymous> (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\browser\atom-window.js:152:27)
    at emitOne (events.js:77:13)
    at BrowserWindow.emit (events.js:166:7)
    at callFunction (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:116:18)
    at EventEmitter.<anonymous> (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:208:14)
    at emitMany (events.js:108:13)
  at metaToValue (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77:15)
  at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:111:26)
  at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\context-menu-manager.js:170:31)
  at HTMLDocument.<anonymous> (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\window-event-handler.js:149:33)
  at HTMLDocument.handler (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\space-pen-extensions.js:112:34)
  at HTMLDocument.jQuery.event.dispatch (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9)
  at HTMLDocument.elemData.handle (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46)

Commands

     -4:55.5.0 editor:checkout-head-revision (atom-text-editor.editor.is-focused)
  2x -3:41.6.0 window:focus-pane-on-right (atom-text-editor.editor)
     -3:17.5.0 application:add-project-folder (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -2:47.4.0 editor:newline (atom-text-editor.editor.is-focused)
     -2:38.2.0 core:cut (atom-text-editor.editor)
     -2:36.5.0 core:paste (atom-text-editor.editor.is-focused)
     -2:26.6.0 core:save (atom-text-editor.editor.is-focused)
     -2:20.6.0 core:move-down (atom-text-editor.editor)
     -2:20.4.0 autocomplete-plus:confirm (atom-text-editor.editor)
     -2:15.8.0 core:save (atom-text-editor.editor)
     -2:08.7.0 core:copy (atom-text-editor.editor.is-focused)
     -2:01.2.0 core:paste (atom-text-editor.editor.is-focused)
     -1:59.7.0 core:save (atom-text-editor.editor.is-focused)
     -1:52.2.0 core:paste (atom-text-editor.editor.is-focused)
     -1:51.6.0 core:save (atom-text-editor.editor.is-focused)
     -1:30.6.0 core:backspace (atom-text-editor.editor)

Config

{
  "core": {
    "ignoredNames": [
      "node_modules"
    ],
    "themes": [
      "atom-dark-ui",
      "seti-syntax"
    ],
    "disabledPackages": [
      "Tern"
    ],
    "projectHome": "Y:\\app-tfoumax"
  },
  "editor": {
    "invisibles": {},
    "softWrap": true,
    "showIndentGuide": true
  }
}

Installed Packages

# User
autocomplete-plus, v2.12.0
autocomplete-snippets, v1.2.0
javascript-snippets, v1.0.0
jshint, v1.3.5
language-ejs, v0.1.0
linter, v0.12.1
pretty-json, v0.3.3
save-session, v0.14.0
Search, v0.4.0
seti-syntax, v0.4.0

# Dev
No dev packages

Activity

  1. winstliu commented on Apr 28, 2015

    @winstliu
    Contributor

    I'm going to keep this one open this time since it's started to come up a lot in 0.194.0-I don't believe that many people have messed up their installations so that this specific error keeps appearing.

    @JbIPS can you reproduce this reliably? If so, could you please try reproducing it in safe mode (atom --safe)?

  2. forestjohnsonilm commented on Apr 28, 2015

    @forestjohnsonilm

    this happened to me too -- http://pastebin.com/R5S7cerd

    Restarting atom fixed it. It happened after copy and pasting a file, then right clicking the pasted file.

  3. mnquintana commented on Apr 28, 2015

    @mnquintana
    Contributor

    @kevinsawicki Any chance this has to do with Atom updating from a non-asar to an asar release?

  4. kevinsawicki commented on Apr 28, 2015

    @kevinsawicki
    Contributor

    Any chance this has to do with Atom updating from a non-asar to an asar release?

    It really shouldn't, if one file is in the asar archive then they all should be.

    @zcbenz are there any related asar issues you know that might be what is going on here?

  5. zcbenz commented on Apr 29, 2015

    @zcbenz
    Contributor

    It might be caused by the same reason with #6276.

  6. kevinsawicki commented on May 12, 2015

    @kevinsawicki
    Contributor

    @JbIPS does this happen even when you restart Atom?

  7. kevinsawicki commented on May 12, 2015

    @kevinsawicki
    Contributor

    Can anyone on Windows consistently reproduce this or is it intermittent?

  8. Rakin05 commented on May 12, 2015

    @Rakin05

    I had the same Issue, after i installed "project-manager" and "view-tail-large-files". Restarting the Editor fixed the Issue.

  9. added
    windows
    on May 16, 2015
  10. JbIPS commented on May 18, 2015

    @JbIPS
    Author

    After uninstalling "project-manager" and restarting, I never saw this error again

  11. Cynede commented on May 18, 2015

    @Cynede
    Contributor

    @JbIPS same here

  12. pmwhite commented on Jun 22, 2015

    @pmwhite

    I had this problem because I had two instances of atom running. I closed down one and right clicked and I still got the error. I closed down the other, restarted atom, and it worked fine.

  13. changed the title [-]Uncaught Error: Cannot find module './context-menu[/-] [+]Uncaught Error: Cannot find module './context-menu'Error: Cannot find module './context-menu' ...[/+] on Jun 23, 2015
  14. winstliu commented on Jun 23, 2015

    @winstliu
    Contributor

    I've renamed this issue in an attempt to stop duplicate issues. If it doesn't work I'll go back to the nicer issue title.

  15. izuzak commented on Jun 26, 2015

    @izuzak
    Contributor

    This was also reported in #7443. In that issue, @janlueders and @james-Ballyhoo mentioned:

    The Issue can be solved if Atom is started as Administrator on Windows 7. Is it possible to get it run as normal User?

    and

    Also experienced this bug (win 8.1). Starting as Administrator stopped the error. When I closed it and then started it as a normal user the error didn't re-occur.

    cc @kevinsawicki in case this helps track down the problem.

  16. changed the title [-]Uncaught Error: Cannot find module './context-menu'Error: Cannot find module './context-menu' ...[/-] [+]Uncaught Error: Cannot find module './context-menu[/+] on Jun 28, 2015
  17. self-assigned this
    on Jun 29, 2015
  18. lock commented on Jan 21, 2019

    @lock

    This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!

  19. locked as resolved and limited conversation to collaborators on Jan 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

atombuguncaught-exceptionwindows

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions