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 'split' of null #33

Open
5 tasks done
GrishaKirilin opened this issue Jul 3, 2023 · 3 comments
Open
5 tasks done

Uncaught TypeError: Cannot read property 'split' of null #33

GrishaKirilin opened this issue Jul 3, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@GrishaKirilin
Copy link

Thanks in advance for your bug report!

  • Have you reproduced issue in safe mode?
  • Have you used the debugging guide to try to resolve the issue?
  • Have you checked our FAQs to make sure your question isn't answered there?
  • Have you checked to make sure your issue does not already exist?
  • Have you checked you are on the latest release of Pulsar?

What happened?

Description

I checked the diffs before committing and then committed the changes, leaving the diffs tab open. After committing, that tab was empty. The next morning, I found the following error.

Versions

Pulsar: 1.106.0 x64
Electron: 12.2.3
OS: Ubuntu 22.04.2
Thrown From: github package 0.36.16

Stack Trace

Uncaught TypeError: Cannot read property 'split' of null

At /opt/Pulsar/resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:1323

TypeError: Cannot read property 'split' of null
    at Diff.lineDiff.tokenize (/app.asar/node_modules/text-buffer/node_modules/diff/lib/diff/line.js:22:32)
    at Diff.diff (/app.asar/node_modules/text-buffer/node_modules/diff/lib/diff/base.js:36:39)
    at Object.diffLines (/app.asar/node_modules/text-buffer/node_modules/diff/lib/diff/line.js:47:19)
    at /app.asar/node_modules/text-buffer/lib/text-buffer.js:805:29
    at TextBuffer.transact (/app.asar/node_modules/text-buffer/lib/text-buffer.js:1320:16)
    at TextBuffer.setTextViaDiff (/app.asar/node_modules/text-buffer/lib/text-buffer.js:800:10)
    at CommitController.componentDidUpdate (/app.asar/node_modules/github/lib/controllers/commit-controller.js:106:30)
    at commitLifeCycles (/app.asar/node_modules/react-dom/cjs/react-dom.development.js:22117:22)
    at commitLayoutEffects (/app.asar/node_modules/react-dom/cjs/react-dom.development.js:25344:7)
    at HTMLUnknownElement.callCallback (/app.asar/node_modules/react-dom/cjs/react-dom.development.js:336:14)
    at Object.invokeGuardedCallbackDev (/app.asar/node_modules/react-dom/cjs/react-dom.development.js:385:16)
    at invokeGuardedCallback (/app.asar/node_modules/react-dom/cjs/react-dom.development.js:440:31)
    at commitRootImpl (/app.asar/node_modules/react-dom/cjs/react-dom.development.js:25082:9)
    at unstable_runWithPriority (/app.asar/node_modules/scheduler/cjs/scheduler.development.js:697:12)
    at /app.asar/node_modules/react-dom/cjs/react-dom.development.js:12149:10)
    at commitRoot (/app.asar/node_modules/react-dom/cjs/react-dom.development.js:24922:3)
    at finishSyncRender (/app.asar/node_modules/react-dom/cjs/react-dom.development.js:24329:3)
    at performSyncWorkOnRoot (/app.asar/node_modules/react-dom/cjs/react-dom.development.js:24307:9)
    at /app.asar/node_modules/react-dom/cjs/react-dom.development.js:12199:24
    at unstable_runWithPriority (/app.asar/node_modules/scheduler/cjs/scheduler.development.js:697:12)
    at /app.asar/node_modules/react-dom/cjs/react-dom.development.js:12149:10)
    at flushSyncCallbackQueueImpl (/app.asar/node_modules/react-dom/cjs/react-dom.development.js:12194:7)
    at flushSyncCallbackQueue (/app.asar/node_modules/react-dom/cjs/react-dom.development.js:12182:3)
    at scheduleUpdateOnFiber (/app.asar/node_modules/react-dom/cjs/react-dom.development.js:23709:9)
    at Object.enqueueSetState (/app.asar/node_modules/react-dom/cjs/react-dom.development.js:13994:5)
    at ObserveModel.Component.setState (/app.asar/node_modules/react/cjs/react.development.js:325:16)
    at ModelObserver.didUpdate (/app.asar/node_modules/github/lib/views/observe-model.js:21:14)
    at ModelObserver._refreshModelData (/app.asar/node_modules/github/lib/models/model-observer.js:58:14)

Non-Core Packages

atom-beautify 0.33.4 
atom-clock 0.1.18 
atom-ide-base 3.4.0 
atom-ide-code-format 1.0.3 
atom-ide-datatip 0.25.0 
atom-ide-definitions 0.4.2 
atom-ide-hyperclick 1.0.11 
atom-ide-markdown-service 2.1.0 
atom-ide-outline 3.2.0 
atom-ide-signature-help 0.16.0 
busy-signal 2.0.1 
choose-pane 0.8.0 
clang-format 2.0.8 
dark-one-dark-syntax 2.3.0 
easy-motion-redux 1.3.3 
file-icons 2.1.47 
git-blame 1.8.0 
hey-pane 1.2.0 
ide-ccls 0.3.0 
intentions 2.1.1 
linter 3.4.0 
linter-ui-default 3.4.1 
move-tab-or-split 1.1.1 
pristine-ui 1.1.11 
project-manager 3.3.8 
rainbow-csv 1.4.0 
split-diff 1.6.1 
todo-show 2.3.2 

Pulsar version

1.106.0

Which OS does this happen on?

🐧 Debian based (Linux Mint, Ubuntu, etc.)

OS details

Ubuntu 22.04.2

Which CPU architecture are you running this on?

64-bit(x86_64)

What steps are needed to reproduce this?

Not reproducible.

Additional Information:

No response

@GrishaKirilin GrishaKirilin added the bug Something isn't working label Jul 3, 2023
@confused-Techie
Copy link
Member

Thanks a ton for reporting this!

@GrishaKirilin
Copy link
Author

It seems that the error appears every time I do (some kind of?) rebase with the directory open in the editor. I will try to reproduce the error.

@nick-tripp
Copy link

nick-tripp commented Mar 13, 2024

Also hitting this issue; seems to happen to me when I need to do a git merge pulling from remote, but only with certain repositories.

Versions

Pulsar: 1.114.0 arm64
Electron: 12.2.3
OS: macOS 14.3.1
Thrown From: github package 0.36.20

Stack Trace

Uncaught TypeError: Cannot read property 'split' of null

At /Applications/Pulsar.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:1323

TypeError: Cannot read property 'split' of null
    at Diff.lineDiff.tokenize (/app.asar/node_modules/text-buffer/node_modules/diff/lib/diff/line.js:22:32)
    at Diff.diff (/app.asar/node_modules/text-buffer/node_modules/diff/lib/diff/base.js:36:39)
    at Object.diffLines (/app.asar/node_modules/text-buffer/node_modules/diff/lib/diff/line.js:47:19)
    at /app.asar/node_modules/text-buffer/lib/text-buffer.js:805:29
    at TextBuffer.transact (/app.asar/node_modules/text-buffer/lib/text-buffer.js:1320:16)
    at TextBuffer.setTextViaDiff (/app.asar/node_modules/text-buffer/lib/text-buffer.js:800:10)
    at CommitController.componentDidUpdate (/app.asar/node_modules/github/lib/controllers/commit-controller.js:106:30)
    at commitLifeCycles (/app.asar/node_modules/react-dom/cjs/react-dom.development.js:22117:22)
    at commitLayoutEffects (/app.asar/node_modules/react-dom/cjs/react-dom.development.js:25344:7)
    at HTMLUnknownElement.callCallback (/app.asar/node_modules/react-dom/cjs/react-dom.development.js:336:14)
    at Object.invokeGuardedCallbackDev (/app.asar/node_modules/react-dom/cjs/react-dom.development.js:385:16)
    at invokeGuardedCallback (/app.asar/node_modules/react-dom/cjs/react-dom.development.js:440:31)
    at commitRootImpl (/app.asar/node_modules/react-dom/cjs/react-dom.development.js:25082:9)
    at unstable_runWithPriority (/app.asar/node_modules/scheduler/cjs/scheduler.development.js:697:12)
    at /app.asar/node_modules/react-dom/cjs/react-dom.development.js:12149:10)
    at commitRoot (/app.asar/node_modules/react-dom/cjs/react-dom.development.js:24922:3)
    at finishSyncRender (/app.asar/node_modules/react-dom/cjs/react-dom.development.js:24329:3)
    at performSyncWorkOnRoot (/app.asar/node_modules/react-dom/cjs/react-dom.development.js:24307:9)
    at /app.asar/node_modules/react-dom/cjs/react-dom.development.js:12199:24
    at unstable_runWithPriority (/app.asar/node_modules/scheduler/cjs/scheduler.development.js:697:12)
    at /app.asar/node_modules/react-dom/cjs/react-dom.development.js:12149:10)
    at flushSyncCallbackQueueImpl (/app.asar/node_modules/react-dom/cjs/react-dom.development.js:12194:7)
    at flushSyncCallbackQueue (/app.asar/node_modules/react-dom/cjs/react-dom.development.js:12182:3)
    at scheduleUpdateOnFiber (/app.asar/node_modules/react-dom/cjs/react-dom.development.js:23709:9)
    at Object.enqueueSetState (/app.asar/node_modules/react-dom/cjs/react-dom.development.js:13994:5)
    at ObserveModel.Component.setState (/app.asar/node_modules/react/cjs/react.development.js:325:16)
    at ModelObserver.didUpdate (/app.asar/node_modules/github/lib/views/observe-model.js:21:14)
    at ModelObserver._refreshModelData (/app.asar/node_modules/github/lib/models/model-observer.js:58:14)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)

Commands

     -1:06.4.0 intentions:highlight (input.hidden-input)
     -1:06.4.0 find-and-replace:show (input.hidden-input)
     -1:04.8.0 core:confirm (input.hidden-input)
     -0:50.4.0 intentions:highlight (input.hidden-input)
  2x -0:48 core:move-right (input.hidden-input)
  2x -0:47.4.0 core:backspace (input.hidden-input)
 10x -0:46.3.0 core:move-left (input.hidden-input)
     -0:44.6.0 core:backspace (input.hidden-input)
     -0:43.4.0 intentions:highlight (input.hidden-input)
     -0:42.6.0 editor:select-to-end-of-word (input.hidden-input)
     -0:40.4.0 intentions:highlight (input.hidden-input)
     -0:40.2.0 core:save (input.hidden-input)
     -0:37.2.0 core:backspace (input.hidden-input)
     -0:36.6.0 intentions:highlight (input.hidden-input)
     -0:36.6.0 github:commit (input.hidden-input)
     -0:22.9.0 github:pull (span.)

Non-Core Packages

atom-clock 0.1.18 
atom-inline-blame 0.0.10 
busy-signal 2.0.1 
intentions 2.1.1 
language-cmake-2 1.1.1 
language-jenkinsfile 0.1.1 
linter 3.4.0 
linter-flake8 2.4.0 
linter-pylint 2.1.1 
linter-ui-default 3.4.1 
multi-cursor 3.0.0 

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

3 participants