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

[Error] When I reload then open a new tab #55

Open
lqs469 opened this issue Jun 26, 2018 · 1 comment
Open

[Error] When I reload then open a new tab #55

lqs469 opened this issue Jun 26, 2018 · 1 comment

Comments

@lqs469
Copy link

lqs469 commented Jun 26, 2018

When I reload a tab, Then I open a new tab or split a new tab, Caught Error below:

Uncaught (in promise) TypeError: Cannot read property 'pid' of undefined
    at setCwd (.../hyper_plugins/node_modules/hypercwd/setCwd.js:8)
    at .../hyper_plugins/node_modules/hypercwd/linuxActionHandler.js:29
    at bundle.js:1
    at bundle.js:1
    at bundle.js:1
    at dispatch (bundle.js:1)
    at bundle.js:1
    at Object.dispatch (bundle.js:1)
    at EventEmitter.u.a.on (bundle.js:1)
    at emitOne (events.js:115)
const setCwd = async ({ dispatch, action, tab }) => {
  const newCwd = await promiseExec(
// .../hyper_plugins/node_modules/hypercwd/setCwd.js:8
// Error there,
// this tab is undefined.
==>    `lsof -p ${tab.pid} | grep cwd | tr -s ' ' | cut -d ' ' -f9-`);
  const cwd = newCwd.trim();
  dispatch({
    type: 'SESSION_SET_CWD',
    cwd,
  });
};

System: MacOS Hight Sierra 10.13.1 (17B48).

@jbosse
Copy link

jbosse commented Jan 18, 2019

Me, too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants