{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode-react-native/issues/198","repository_url":"https://api.github.com/repos/Microsoft/vscode-react-native","labels_url":"https://api.github.com/repos/Microsoft/vscode-react-native/issues/198/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode-react-native/issues/198/comments","events_url":"https://api.github.com/repos/Microsoft/vscode-react-native/issues/198/events","html_url":"https://github.com/Microsoft/vscode-react-native/issues/198","id":145674303,"number":198,"title":"use realm  debug run error ,react-native run-ios is ok ","user":{"login":"zio-zhang","id":3076648,"avatar_url":"https://avatars.githubusercontent.com/u/3076648?v=3","gravatar_id":"","url":"https://api.github.com/users/zio-zhang","html_url":"https://github.com/zio-zhang","followers_url":"https://api.github.com/users/zio-zhang/followers","following_url":"https://api.github.com/users/zio-zhang/following{/other_user}","gists_url":"https://api.github.com/users/zio-zhang/gists{/gist_id}","starred_url":"https://api.github.com/users/zio-zhang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zio-zhang/subscriptions","organizations_url":"https://api.github.com/users/zio-zhang/orgs","repos_url":"https://api.github.com/users/zio-zhang/repos","events_url":"https://api.github.com/users/zio-zhang/events{/privacy}","received_events_url":"https://api.github.com/users/zio-zhang/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/vscode-react-native/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2016-04-04T12:45:20Z","updated_at":"2016-04-06T17:58:58Z","closed_at":null,"body":"##Actual Behavior\r\n1. create project ,use realm\r\n    const Realm = require('realm');\r\n2. launch.json  \"target\": \"iPad 2\"\r\n3.debug iso   \r\n4.display error \r\n[vscode-react-native] Debugging session started successfully.\r\nMissing Realm constructor - please ensure RealmReact framework is included!\r\nModule AppRegistry is not a registered callable module.\r\nUnhandled JS Exception: Missing Realm constructor - please ensure RealmReact framework is included!\r\nUnhandled JS Exception: Module AppRegistry is not a registered callable module.\r\n\r\n##Expected Behavior\r\n1. run not debug\r\n2. \r\n\r\n##Software versions\r\n- React-Native VS Code extension version: last\r\n- VSCode version: 0.10.11\r\n- OS platform and version:10.11.4\r\n- React Native version: 0.22.2\r\n\r\n##Outputs (Include if relevant)\r\n- Output of the Debug Console (View -> Toogle Debug Console): \r\n[vscode-react-native] Debugging session started successfully.\r\nSkipping bundling for Simulator platform\r\n=== BUILD TARGET houseTests OF PROJECT house WITH CONFIGURATION Debug ===\r\nCheck dependencies\r\n** BUILD SUCCEEDED **\r\nInstalling build/Build/Products/Debug-iphonesimulator/house.app\r\nLaunching org.reactjs.native.example.house\r\norg.reactjs.native.example.house: 9769\r\n[vscode-react-native] Finished executing: react-native run-ios --simulator iPad 2\r\n[vscode-react-native] Established a connection with the Proxy (Packager) to the React Native application\r\n[vscode-react-native] Debugging session started successfully.\r\nMissing Realm constructor - please ensure RealmReact framework is included!\r\nModule AppRegistry is not a registered callable module.\r\nUnhandled JS Exception: Missing Realm constructor - please ensure RealmReact framework is included!\r\nUnhandled JS Exception: Module AppRegistry is not a registered callable module.\r\n\r\n- Output of the React-Native output channel (View -> Toogle Output -> Select React-Native in ListBox): \r\n######### Packager is already running. ##########\r\n[Warning] Debugging is not supported if the React Native Packager is not started within VS Code. If debugging fails, please kill other active React Native packager processes and retry.\r\n######### The Bundle Cache was prewarmed. ##########\r\n- Output of the Developer Tools console (Help -> Toggle Developer Tools -> Select Console tab): \r\nworkbench.main.js:113 Cannot read property 'languageIds' of undefined: TypeError: Cannot read property 'languageIds' of undefined\r\n    at file:////Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:98:5560\r\n    at Array.forEach (native)\r\n    at file:////Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:98:5037\r\n    at Array.forEach (native)\r\n    at e._handler (file:////Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:98:5009)\r\n    at Object.listener (file:////Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:58:28803)\r\n    at e._triggerPointListener (file:////Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:58:30786)\r\n    at e.registerPlugins (file:////Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:58:31386)\r\n    at t.$onPluginHostReady (file:////Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:71:21766)\r\n    at t.e.handle (file:////Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:71:29651)e.onUnexpectedError @ workbench.main.js:113\r\nworkbench.main.js:27 WARNING: Promise with no error callback:undefined\r\nworkbench.main.js:27 TypeError: Cannot read property 'message' of undefined(…)\r\nindex.html?config={\"pathArguments\"%3A[]%2C\"programStart\"%3A0%2C\"workers\"%3A-1%2C\"enablePerformance\"…:26 [uncaught exception]: TypeError: Cannot convert object to primitive valueonError @ index.html?config={\"pathArguments\"%3A[]%2C\"programStart\"%3A0%2C\"workers\"%3A-1%2C\"enablePerformance\"…:26\r\nindex.html?config={\"pathArguments\"%3A[]%2C\"programStart\"%3A0%2C\"workers\"%3A-1%2C\"enablePerformance\"…:29 TypeError: Cannot convert object to primitive value\r\n    at new Error (native)\r\n    at Client.trackException (/Applications/Visual Studio Code.app/Contents/Resources/app/node_modules/applicationinsights/Library/Client.js:67:25)\r\n    at e.logException (file:////Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:23:30848)\r\n    at e.log (file:////Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:112:10791)\r\n    at t.handleEvent (file:////Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:68:2959)\r\n    at t.e.publicLog (file:////Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:68:144)\r\n    at t.publicLog (file:////Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:68:5186)\r\n    at t.e.flushErrorBuffer (file:////Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:67:30198)\r\n    at file:////Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:67:30058onError @ index.html?config={\"pathArguments\"%3A[]%2C\"programStart\"%3A0%2C\"workers\"%3A-1%2C\"enablePerformance\"…:29\r\n/Applications/Visual Studio Code.app/Contents/Resources/app/node_modules/applicationinsights/Librar…:67 Uncaught TypeError: Cannot convert object to primitive value"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode-react-native/issues/comments/206489229","html_url":"https://github.com/Microsoft/vscode-react-native/issues/198#issuecomment-206489229","issue_url":"https://api.github.com/repos/Microsoft/vscode-react-native/issues/198","id":206489229,"user":{"login":"appden","id":70904,"avatar_url":"https://avatars.githubusercontent.com/u/70904?v=3","gravatar_id":"","url":"https://api.github.com/users/appden","html_url":"https://github.com/appden","followers_url":"https://api.github.com/users/appden/followers","following_url":"https://api.github.com/users/appden/following{/other_user}","gists_url":"https://api.github.com/users/appden/gists{/gist_id}","starred_url":"https://api.github.com/users/appden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/appden/subscriptions","organizations_url":"https://api.github.com/users/appden/orgs","repos_url":"https://api.github.com/users/appden/repos","events_url":"https://api.github.com/users/appden/events{/privacy}","received_events_url":"https://api.github.com/users/appden/received_events","type":"User","site_admin":false},"created_at":"2016-04-06T17:58:58Z","updated_at":"2016-04-06T17:58:58Z","body":"@MSLaguana Please let us know how we can fix this in Realm. We'd be happy to make that fix, or you can send us a PR if you'd like."}}