Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: Cannot read property 'current' of undefined #15

Open
CatoMaior opened this issue Mar 5, 2021 · 7 comments
Open
Labels
bug Something isn't working

Comments

@CatoMaior
Copy link

Steps to reproduce

  1. Install atom-ide-base package
  2. Install atom-ide-debugger package
  3. Try to put break point in your code

Atom: 1.54.0 x64
Electron: 6.1.12
OS: Ubuntu 20.04.2
Thrown From: atom-ide-hyperclick package 1.0.9

Stack Trace

Uncaught TypeError: Cannot read property 'current' of undefined

At /home/catomaior/.atom/packages/atom-ide-hyperclick/node_modules/react-dom/cjs/react-dom.production.min.js:250

TypeError: Cannot read property 'current' of undefined
    at Pj (/packages/atom-ide-hyperclick/node_modules/react-dom/cjs/react-dom.production.min.js:250:24)
    at Tj (/packages/atom-ide-hyperclick/node_modules/react-dom/cjs/react-dom.production.min.js:250:104)
    at Lj (/packages/atom-ide-hyperclick/node_modules/react-dom/cjs/react-dom.production.min.js:243:163)
    at Jg (/packages/atom-ide-hyperclick/node_modules/react-dom/cjs/react-dom.production.min.js:237:175)
    at lk (/packages/atom-ide-hyperclick/node_modules/react-dom/cjs/react-dom.production.min.js:285:27)
    at /packages/atom-ide-hyperclick/node_modules/react-dom/cjs/react-dom.production.min.js:289:301
    at Xj (/packages/atom-ide-hyperclick/node_modules/react-dom/cjs/react-dom.production.min.js:244:244)
    at tk (/packages/atom-ide-hyperclick/node_modules/react-dom/cjs/react-dom.production.min.js:289:287)
    at Object.exports.render (/packages/atom-ide-hyperclick/node_modules/react-dom/cjs/react-dom.production.min.js:296:69)
    at HTMLElement.connectedCallback (/packages/atom-ide-debugger/node_modules/@atom-ide-community/nuclide-commons-ui/ReactMountRootElement.js:64:23)
    at HTMLElement.activeItemChanged (/app.asar/src/pane-element.js:152:22)
    at Function.simpleDispatch (/usr/share/atom/resources/app/static/<embedded>:11:1171250)
    at Emitter.emit (/usr/share/atom/resources/app/static/<embedded>:11:1172691)
    at Pane.setActiveItem (/usr/share/atom/resources/app/static/<embedded>:11:456810)
    at Pane.addItem (/usr/share/atom/resources/app/static/<embedded>:11:460224)
    at DebuggerLayoutManager._appendItemToDock (/packages/atom-ide-debugger/dist/ui/DebuggerLayoutManager.js:294:16)
    at DebuggerLayoutManager._addPaneContainerToWorkspace (/packages/atom-ide-debugger/dist/ui/DebuggerLayoutManager.js:648:10)
    at DebuggerLayoutManager.showDebuggerViews (/packages/atom-ide-debugger/dist/ui/DebuggerLayoutManager.js:593:44)
    at /packages/atom-ide-debugger/dist/main.js:412:24)
    at CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app/static/<embedded>:11:350343)
    at CommandRegistry.dispatch (/usr/share/atom/resources/app/static/<embedded>:11:348818)
    at BreakpointDisplayController._handleGutterClick (/packages/atom-ide-debugger/dist/BreakpointDisplayController.js:316:25)

Commands

     -1:22.2.0 tree-view:toggle (input.hidden-input)
     -1:21.4.0 application:reopen-project (div#add-projects-view.)
     -0:06.0 debugger:show (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)

Non-Core Packages

atom-gdb-debugger 0.2.2 
atom-ide-base 2.3.5 
atom-ide-datatip 0.24.0 
atom-ide-debugger 0.0.3 
atom-ide-definitions 0.4.1 
atom-ide-hyperclick 1.0.9 
atom-ide-markdown-service 2.0.0 
atom-ide-outline 2.0.0 
atom-ide-signature-help 0.15.3 
busy-signal 2.0.1 
ftp-remote-edit 0.18.1 
Hydrogen 2.14.7 
ide-cpp 0.1.0 
intentions 1.1.5 
language-generic-config 1.4.0 
linter 3.3.0 
linter-ui-default 3.2.5 
select-rectangle 1.0.2 
@UziTech
Copy link
Member

UziTech commented Mar 5, 2021

It looks like this is an issue for atom-ide-debugger. the stack trace says the error is coming from (/packages/atom-ide-debugger/dist/ui/DebuggerLayoutManager.js:294:16)

@aminya we should really figure out source maps if we are going to bundle source code.

@UziTech UziTech transferred this issue from atom-community/atom-ide-hyperclick Mar 5, 2021
@aminya
Copy link
Member

aminya commented Mar 5, 2021

I haven't faced this issue ever. Are you sure that the package is fully installed?

Try reinstalling it:

apm uninstall atom-ide-debugger
apm install atom-ide-debugger

@jasonthomasgray
Copy link

I'm having a similar issue but seem to be erroring a couple lines earlier, I'm trying to debug python if it makes any odds.
I've tried the reinstall above and it hasn't worked for me.

Report below:

  1. add breakpoint to python code

Atom: 1.54.0 x64
Electron: 6.1.12
OS: Ubuntu 20.04.2
Thrown From: atom-ide-hyperclick package 1.0.9

Stack Trace

Uncaught Error: Minified React error #130; visit https://reactjs.org/docs/error-decoder.html?invariant=130&args[]=undefined&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings.

At /home/jason/.atom/packages/atom-ide-hyperclick/node_modules/react-dom/cjs/react-dom.production.min.js:243

Error: Minified React error #130; visit https://reactjs.org/docs/error-decoder.html?invariant=130&args[]=undefined&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
    at Vg (/packages/atom-ide-hyperclick/node_modules/react-dom/cjs/react-dom.production.min.js:280:177)
    at /packages/atom-ide-hyperclick/node_modules/react-dom/cjs/react-dom.production.min.js:149:163
    at fi (/packages/atom-ide-hyperclick/node_modules/react-dom/cjs/react-dom.production.min.js:176:186)
    at ck (/packages/atom-ide-hyperclick/node_modules/react-dom/cjs/react-dom.production.min.js:270:437)
    at bk (/packages/atom-ide-hyperclick/node_modules/react-dom/cjs/react-dom.production.min.js:250:347)
    at ak (/packages/atom-ide-hyperclick/node_modules/react-dom/cjs/react-dom.production.min.js:250:278)
    at Tj (/packages/atom-ide-hyperclick/node_modules/react-dom/cjs/react-dom.production.min.js:250:138)
    at Lj (/packages/atom-ide-hyperclick/node_modules/react-dom/cjs/react-dom.production.min.js:243:163)
    at Jg (/packages/atom-ide-hyperclick/node_modules/react-dom/cjs/react-dom.production.min.js:237:175)
    at lk (/packages/atom-ide-hyperclick/node_modules/react-dom/cjs/react-dom.production.min.js:285:27)
    at /packages/atom-ide-hyperclick/node_modules/react-dom/cjs/react-dom.production.min.js:289:301
    at Xj (/packages/atom-ide-hyperclick/node_modules/react-dom/cjs/react-dom.production.min.js:244:244)
    at tk (/packages/atom-ide-hyperclick/node_modules/react-dom/cjs/react-dom.production.min.js:289:287)
    at Object.exports.render (/packages/atom-ide-hyperclick/node_modules/react-dom/cjs/react-dom.production.min.js:296:69)
    at HTMLElement.connectedCallback (/packages/atom-ide-console/node_modules/@atom-ide-community/nuclide-commons-ui/ReactMountRootElement.js:64:23)
    at HTMLElement.activeItemChanged (/app.asar/src/pane-element.js:152:22)
    at Function.simpleDispatch (/usr/share/atom/resources/app/static/<embedded>:11:1171250)
    at Emitter.emit (/usr/share/atom/resources/app/static/<embedded>:11:1172691)
    at Pane.setActiveItem (/usr/share/atom/resources/app/static/<embedded>:11:456810)
    at Pane.activateItem (/usr/share/atom/resources/app/static/<embedded>:11:459058)
    at DebuggerLayoutManager._appendItemToDock (/packages/atom-ide-debugger/dist/ui/DebuggerLayoutManager.js:323:20)
    at DebuggerLayoutManager._addPaneContainerToWorkspace (/packages/atom-ide-debugger/dist/ui/DebuggerLayoutManager.js:648:10)
    at DebuggerLayoutManager.showDebuggerViews (/packages/atom-ide-debugger/dist/ui/DebuggerLayoutManager.js:593:44)
    at /packages/atom-ide-debugger/dist/main.js:412:24)
    at CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app/static/<embedded>:11:350343)
    at CommandRegistry.dispatch (/usr/share/atom/resources/app/static/<embedded>:11:348818)
    at BreakpointDisplayController._handleGutterClick (/packages/atom-ide-debugger/dist/BreakpointDisplayController.js:316:25)

Commands

     -2:49.1.0 debugger:show (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)

Non-Core Packages

atom-ide-base 2.3.5 
atom-ide-console 0.0.2 
atom-ide-datatip 0.24.0 
atom-ide-debugger 0.0.3 
atom-ide-definitions 0.4.1 
atom-ide-hyperclick 1.0.9 
atom-ide-markdown-service 2.0.0 
atom-ide-outline 2.0.0 
atom-ide-signature-help 0.15.3 
autocomplete-haskell 1.0.1 
busy-signal 2.0.1 
haskell-ghc-mod 2.2.6 
ide-clangd 0.4.0 
ide-haskell 2.4.1 
ide-haskell-cabal 2.5.0 
ide-haskell-repl 0.10.0 
ide-python 1.7.3 
ide-typescript 0.9.1 
intentions 1.1.5 
language-haskell 1.21.0 
linter 3.3.0 
linter-eslint 8.5.5 
linter-ui-default 3.2.5 
sort-lines 0.19.0 
svg-preview 0.14.0 

@aminya aminya added the bug Something isn't working label Mar 6, 2021
@CatoMaior
Copy link
Author

I haven't faced this issue ever. Are you sure that the package is fully installed?

Try reinstalling it:

apm uninstall atom-ide-debugger
apm install atom-ide-debugger

I tried but nothing changes

@aminya
Copy link
Member

aminya commented Mar 8, 2021

I will look into this over the next week or two.

@aminya aminya pinned this issue Mar 8, 2021
@UziTech
Copy link
Member

UziTech commented Mar 8, 2021

It is very strange that it is using the react-dom dependency from atom-ide-hyperclick/node_modules/ instead of atom-ide-debugger/node_modules/. I wonder if this is a pnpm issue?

@aminya
Copy link
Member

aminya commented Mar 8, 2021

That's because of Atom's caching mechanism. When the library@version is the same, it doesn't need to load React again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants