{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleChromeLabs/ndb/issues/119","repository_url":"https://api.github.com/repos/GoogleChromeLabs/ndb","labels_url":"https://api.github.com/repos/GoogleChromeLabs/ndb/issues/119/labels{/name}","comments_url":"https://api.github.com/repos/GoogleChromeLabs/ndb/issues/119/comments","events_url":"https://api.github.com/repos/GoogleChromeLabs/ndb/issues/119/events","html_url":"https://github.com/GoogleChromeLabs/ndb/issues/119","id":351427507,"node_id":"MDU6SXNzdWUzNTE0Mjc1MDc=","number":119,"title":"REPL reloads itself when typing into the console","user":{"login":"calvinl","id":490687,"node_id":"MDQ6VXNlcjQ5MDY4Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/490687?v=4","gravatar_id":"","url":"https://api.github.com/users/calvinl","html_url":"https://github.com/calvinl","followers_url":"https://api.github.com/users/calvinl/followers","following_url":"https://api.github.com/users/calvinl/following{/other_user}","gists_url":"https://api.github.com/users/calvinl/gists{/gist_id}","starred_url":"https://api.github.com/users/calvinl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calvinl/subscriptions","organizations_url":"https://api.github.com/users/calvinl/orgs","repos_url":"https://api.github.com/users/calvinl/repos","events_url":"https://api.github.com/users/calvinl/events{/privacy}","received_events_url":"https://api.github.com/users/calvinl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-17T01:39:35Z","updated_at":"2018-08-17T02:10:52Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nFor issues, feature requests, or setup troubles with ndb, file an issue right here!\r\n-->\r\n\r\n### Steps to reproduce\r\n\r\n**Tell us about your environment:**\r\n\r\n* ndb version: v1.0.23\r\n* Platform / OS version: macOS High Sierra (10.13.6 (17G65))\r\n* Node.js version: v10.9.0\r\n\r\n**What steps will reproduce the problem?**\r\n\r\n1. Install `ndb` globally or locally.\r\n2. Create a javascript file and add arbitrary code - I just used a simple `console.log`. \r\n3. Run `ndb file.js`\r\n4. Try typing into the console/repl. With (almost) every keystroke, the repl reloads and says \"Welcome to the ndb REPL!\"\r\n\r\n**What is the expected result?**\r\n\r\nThe REPL doesn't reload. \r\n\r\n**What happens instead?**\r\nThe REPL (seemingly) reloads on keystroke. See screenshot. \r\n\r\n![screen shot 2018-08-16 at 9 37 11 pm](https://user-images.githubusercontent.com/490687/44243386-d678a100-a19c-11e8-9fde-6598107b7cfa.png)\r\n\r\nIn the terminal, this appears:\r\n\r\n```\r\n 1: 0x10003818c node::Abort() [/usr/local/Cellar/node/10.9.0/bin/node]\r\n 2: 0x100093973 node::BackgroundTaskRunner::PostDelayedTask(std::__1::unique_ptr<v8::Task, std::__1::default_delete<v8::Task> >, double) [/usr/local/Cellar/node/10.9.0/bin/node]\r\n 3: 0x100173b9a v8_inspector::V8InspectorImpl::EvaluateScope::setTimeout(double) [/usr/local/Cellar/node/10.9.0/bin/node]\r\n 4: 0x10017c03e v8_inspector::V8RuntimeAgentImpl::evaluate(v8_inspector::String16 const&, v8_inspector::protocol::Maybe<v8_inspector::String16>, v8_inspector::protocol::Maybe<bool>, v8_inspector::protocol::Maybe<bool>, v8_inspector::protocol::Maybe<int>, v8_inspector::protocol::Maybe<bool>, v8_inspector::protocol::Maybe<bool>, v8_inspector::protocol::Maybe<bool>, v8_inspector::protocol::Maybe<bool>, v8_inspector::protocol::Maybe<bool>, v8_inspector::protocol::Maybe<double>, std::__1::unique_ptr<v8_inspector::protocol::Runtime::Backend::EvaluateCallback, std::__1::default_delete<v8_inspector::protocol::Runtime::Backend::EvaluateCallback> >) [/usr/local/Cellar/node/10.9.0/bin/node]\r\n 5: 0x10013fe8a v8_inspector::protocol::Runtime::DispatcherImpl::evaluate(int, std::__1::unique_ptr<v8_inspector::protocol::DictionaryValue, std::__1::default_delete<v8_inspector::protocol::DictionaryValue> >, v8_inspector::protocol::ErrorSupport*) [/usr/local/Cellar/node/10.9.0/bin/node]\r\n 6: 0x10013e3f7 v8_inspector::protocol::Runtime::DispatcherImpl::dispatch(int, v8_inspector::String16 const&, std::__1::unique_ptr<v8_inspector::protocol::DictionaryValue, std::__1::default_delete<v8_inspector::protocol::DictionaryValue> >) [/usr/local/Cellar/node/10.9.0/bin/node]\r\n 7: 0x100118bd4 v8_inspector::protocol::UberDispatcher::dispatch(std::__1::unique_ptr<v8_inspector::protocol::Value, std::__1::default_delete<v8_inspector::protocol::Value> >, int*, v8_inspector::String16*) [/usr/local/Cellar/node/10.9.0/bin/node]\r\n 8: 0x100176b0f v8_inspector::V8InspectorSessionImpl::dispatchProtocolMessage(v8_inspector::StringView const&) [/usr/local/Cellar/node/10.9.0/bin/node]\r\n 9: 0x1000e0bc1 node::inspector::NodeInspectorClient::dispatchMessageFromFrontend(int, v8_inspector::StringView const&) [/usr/local/Cellar/node/10.9.0/bin/node]\r\n10: 0x1000e0932 node::inspector::(anonymous namespace)::SameThreadInspectorSession::Dispatch(v8_inspector::StringView const&) [/usr/local/Cellar/node/10.9.0/bin/node]\r\n11: 0x1000ecab0 void node::inspector::(anonymous namespace)::AnotherThreadObjectReference<node::inspector::(anonymous namespace)::MainThreadSessionState>::Apply<std::__1::unique_ptr<v8_inspector::StringBuffer, std::__1::default_delete<v8_inspector::StringBuffer> > >(node::inspector::(anonymous namespace)::MainThreadSessionState*, void (node::inspector::(anonymous namespace)::MainThreadSessionState::*)(std::__1::unique_ptr<v8_inspector::StringBuffer, std::__1::default_delete<v8_inspector::StringBuffer> >), std::__1::unique_ptr<v8_inspector::StringBuffer, std::__1::default_delete<v8_inspector::StringBuffer> >&) [/usr/local/Cellar/node/10.9.0/bin/node]\r\n12: 0x1000eb830 node::inspector::MainThreadInterface::DispatchMessages() [/usr/local/Cellar/node/10.9.0/bin/node]\r\n13: 0x1000947f7 node::PerIsolatePlatformData::RunForegroundTask(std::__1::unique_ptr<v8::Task, std::__1::default_delete<v8::Task> >) [/usr/local/Cellar/node/10.9.0/bin/node]\r\n14: 0x100093e0f node::PerIsolatePlatformData::FlushForegroundTasksInternal() [/usr/local/Cellar/node/10.9.0/bin/node]\r\n15: 0x100774ec5 uv__async_io [/usr/local/Cellar/node/10.9.0/bin/node]\r\n16: 0x1007841e6 uv__io_poll [/usr/local/Cellar/node/10.9.0/bin/node]\r\n17: 0x100775341 uv_run [/usr/local/Cellar/node/10.9.0/bin/node]\r\n18: 0x10003f89a node::Start(v8::Isolate*, node::IsolateData*, int, char const* const*, int, char const* const*) [/usr/local/Cellar/node/10.9.0/bin/node]\r\n19: 0x10003ec52 node::Start(uv_loop_s*, int, char const* const*, int, char const* const*) [/usr/local/Cellar/node/10.9.0/bin/node]\r\n20: 0x10003e8ff node::Start(int, char**) [/usr/local/Cellar/node/10.9.0/bin/node]\r\n21: 0x100003034 start [/usr/local/Cellar/node/10.9.0/bin/node]\r\n```"},"comment":{"url":"https://api.github.com/repos/GoogleChromeLabs/ndb/issues/comments/413736939","html_url":"https://github.com/GoogleChromeLabs/ndb/issues/119#issuecomment-413736939","issue_url":"https://api.github.com/repos/GoogleChromeLabs/ndb/issues/119","id":413736939,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMzczNjkzOQ==","user":{"login":"ak239","id":426418,"node_id":"MDQ6VXNlcjQyNjQxOA==","avatar_url":"https://avatars3.githubusercontent.com/u/426418?v=4","gravatar_id":"","url":"https://api.github.com/users/ak239","html_url":"https://github.com/ak239","followers_url":"https://api.github.com/users/ak239/followers","following_url":"https://api.github.com/users/ak239/following{/other_user}","gists_url":"https://api.github.com/users/ak239/gists{/gist_id}","starred_url":"https://api.github.com/users/ak239/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ak239/subscriptions","organizations_url":"https://api.github.com/users/ak239/orgs","repos_url":"https://api.github.com/users/ak239/repos","events_url":"https://api.github.com/users/ak239/events{/privacy}","received_events_url":"https://api.github.com/users/ak239/received_events","type":"User","site_admin":false},"created_at":"2018-08-17T02:10:52Z","updated_at":"2018-08-17T02:10:52Z","author_association":"COLLABORATOR","body":"Thanks for your report. The root is on the node side: https://github.com/nodejs/node/issues/22157\r\nWorkaround until we fix it:\r\n1. click gear button on the top right side of console.\r\n2. uncheck \"Eager evaluation\" checkbox.\r\n\r\n<img width=\"743\" alt=\"screen shot 2018-08-16 at 7 09 44 pm\" src=\"https://user-images.githubusercontent.com/426418/44244270-fce01180-a187-11e8-8f36-aa105d9c18da.png\">\r\n"}}
{"actor":{"display_login":"ak239"}}