dpo / atom-python-debugger

IDE-like Python debugger for Atom
MIT License
42 stars 13 forks source link

Uncaught Error: Cannot find module 'atom-space-pen-views' #28

Open ChengWiLL opened 7 years ago

ChengWiLL commented 7 years ago

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.17.2 x64 Electron: 1.3.15 OS: Unknown Windows version Thrown From: python-debugger package 0.2.0

Stack Trace

Uncaught Error: Cannot find module 'atom-space-pen-views'

At C:\Users\ChengWiLL\AppData\Local\atom\app-1.17.2\resources\app\static\<embedded>:1

Error: Cannot find module 'atom-space-pen-views'
    at Module._resolveFilename (module.js:455:15)
    at Module._resolveFilename (~/AppData/Local/atom/app-1.17.2/resources/electron.asar/common/reset-search-paths.js:35:12)
    at Function.get_Module._resolveFilename (~/AppData/Local/atom/app-1.17.2/resources/app/src/module-cache.js:354:1)
    at Module.require (~/AppData/Local/atom/app-1.17.2/resources/app/static/index.js:40:43)
    at require (~/AppData/Local/atom/app-1.17.2/resources/app/src/native-compile-cache.js:66:1)
    at /packages/atom-python-debugger-master/lib/python-debugger-view.coffee:2:33)
    at /packages/atom-python-debugger-master/lib/python-debugger-view.coffee:1:1)
    at Module.get_Module._compile (~/AppData/Local/atom/app-1.17.2/resources/app/src/native-compile-cache.js:106:1)
    at Object.value [as .coffee] (~/AppData/Local/atom/app-1.17.2/resources/app/src/compile-cache.js:230:1)
    at Module.load (module.js:473:32)
    at tryModuleLoad (module.js:432:12)
    at Function.Module._load (module.js:424:3)
    at Module.require (~/AppData/Local/atom/app-1.17.2/resources/app/static/index.js:47:45)
    at require (~/AppData/Local/atom/app-1.17.2/resources/app/src/native-compile-cache.js:66:1)
    at Object.createDebuggerView (/packages/atom-python-debugger-master/lib/python-debugger.coffee:18:28)
    at /packages/atom-python-debugger-master/lib/python-debugger.coffee:29:37)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (~/AppData/Local/atom/app-1.17.2/resources/app/src/command-registry.js:265:1)
    at ~/AppData/Local/atom/app-1.17.2/resources/app/src/command-registry.js:3:1
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (~/AppData/Local/atom/app-1.17.2/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:610:1)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (~/AppData/Local/atom/app-1.17.2/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:401:1)
    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (~/AppData/Local/atom/app-1.17.2/resources/app/src/window-event-handler.js:100:1)
    at HTMLDocument.<anonymous> (~/AppData/Local/atom/app-1.17.2/resources/app/src/window-event-handler.js:3:1)

Commands

  7x -4:51.7.0 run:selection (input.hidden-input)
  8x -4:29.6.0 run:file (input.hidden-input)
  5x -2:48.9.0 run:selection (input.hidden-input)
     -2:27.1.0 core:confirm (input.hidden-input)
     -1:54 python-debugger:breakpoint (input.hidden-input)
     -1:52.3.0 python-debugger:toggle (input.hidden-input)

Non-Core Packages

python-debugger 0.2.0 
atom-runner 2.7.1 
simplified-chinese-menu 3.5.0 
autocomplete-python 1.8.63 
python-tools 0.6.9 
dpo commented 6 years ago

Sorry for the long delay.

I'm not sure where modules are stored on Windows, but could you check that atom-space-pen-views appears as a submodule of atom-python-debugger? In my cas, on macOS, it's located at ~/.atom/packages/python-debugger/node_modules/atom-space-pen-views.

If you don't have it, please uninstall and reinstall atom-python-debugger and let me know if that fixes the issue.