question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Watch mode is failing

See original GitHub issue

Describe the issue The watch mode on Elyra fails to pick up code changes

To Reproduce Steps to reproduce the behavior:

  1. build from master with make clean install
  2. run make watch
  3. On another terminal, run jupyter lab --watch
  4. make any change to one of the ts files and save it
  5. check the terminal running make watch for file change detection msg and make sure there are no compilation errors
  6. reload jupyterlab page and try to access your code change
  7. The page doesn’t pick up the changes (eg. inspecting the file still shows the original code version)
  8. Check for errors on the serverapp

Screenshots or log output

Error log
/Users/kspuldaro/miniconda3/envs/dev/share/jupyter/lab/staging/node_modules/@jupyterlab/builder/lib/webpack-plugins.js:93
                    const dirTimestamps = watcher.getContextInfoEntries();
                                                  ^
TypeError: watcher.getContextInfoEntries is not a function
    at Object.getContextTimeInfoEntries (/Users/kspuldaro/miniconda3/envs/dev/share/jupyter/lab/staging/node_modules/@jupyterlab/builder/lib/webpack-plugins.js:93:51)
    at run (/Users/kspuldaro/miniconda3/envs/dev/share/jupyter/lab/staging/node_modules/webpack/lib/Watching.js:94:48)
    at /Users/kspuldaro/miniconda3/envs/dev/share/jupyter/lab/staging/node_modules/webpack/lib/Watching.js:75:6
    at /Users/kspuldaro/miniconda3/envs/dev/share/jupyter/lab/staging/node_modules/webpack/lib/HookWebpackError.js:69:3
    at Hook.eval [as callAsync] (eval at create (/Users/kspuldaro/miniconda3/envs/dev/share/jupyter/lab/staging/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
    at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/Users/kspuldaro/miniconda3/envs/dev/share/jupyter/lab/staging/node_modules/webpack/node_modules/tapable/lib/Hook.js:18:14)
    at Cache.endIdle (/Users/kspuldaro/miniconda3/envs/dev/share/jupyter/lab/staging/node_modules/webpack/lib/Cache.js:140:22)
    at run (/Users/kspuldaro/miniconda3/envs/dev/share/jupyter/lab/staging/node_modules/webpack/lib/Watching.js:72:32)
    at Watching._go (/Users/kspuldaro/miniconda3/envs/dev/share/jupyter/lab/staging/node_modules/webpack/lib/Watching.js:152:3)
    at Watching._invalidate (/Users/kspuldaro/miniconda3/envs/dev/share/jupyter/lab/staging/node_modules/webpack/lib/Watching.js:320:9)
error Command failed with exit code 1.

Expected behavior When running jupyterlab in watch mode, it should pick up code changes on page reload

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
jasongroutcommented, Mar 9, 2021

Fix has been merged to lab and back ported, will be available upon next release

It is now published in JLab 3.0.10.

0reactions
ajbozarthcommented, Mar 9, 2021

thanks for the quick patch release, tested it and it works

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to start Watchman watch mode - react native
To have watchman in windows do the following: (1)Download watchman zip file from the link here (2) Unzip the folder
Read more >
Error: Failed to start watch mode · Issue #31186 - GitHub
and suddenly there is an error in the CLI console which is as follows. Failed to construct transformer: Error: Failed to start watch...
Read more >
Error: Failed to start watch mode - Expo Development Tools
Error: Failed to start watch mode. at Timeout._onTimeout (C:\Users\ATEH\Desktop\app\prime\node_modules\jest-haste-map\build\index.js:1059:24)
Read more >
If you can't pair an Apple Watch with your iPhone
If you have its paired iPhone, unpair your Apple Watch. Open the Watch app on your iPhone, tap the My Watch tab, then...
Read more >
Garmin Connect App: Pairing Failed Message When Adding a ...
A "Pairing Failed" message (sometimes followed by "Setup was not successful" or "Unable to pair your Garmin device") when trying to add your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found