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

Support partial sync Realm #165

Closed
nhachicha opened this issue Sep 27, 2017 · 3 comments
Closed

Support partial sync Realm #165

nhachicha opened this issue Sep 27, 2017 · 3 comments

Comments

@nhachicha
Copy link
Contributor

I can't open a partial sync either locally or online (via Connect to ROS)

I tried with both 0.0.1-alpha.8 and 0.0.1-alpha.9 with no luck

screen shot 2017-09-27 at 16 49 58

Realm File used (sync 2.0.0-rc22)

0.0.1-alpha.9 ●  npm run dev

> realm-studio@0.0.1-alpha.9 dev /Users/Nabil/Dev/realm/realm-studio
> rm -rf ./build && NODE_ENV=develop concurrently --names "WEBPACK:M,WEBPACK:R,ELECTRON" "npm run webpack:main" "npm run webpack:renderer" "npm run wait-for-bundle && npm run electron"

[WEBPACK:M]
[WEBPACK:M] > realm-studio@0.0.1-alpha.9 webpack:main /Users/Nabil/Dev/realm/realm-studio
[WEBPACK:M] > webpack --config=webpack.main.config.js
[WEBPACK:M]
[WEBPACK:R]
[WEBPACK:R] > realm-studio@0.0.1-alpha.9 webpack:renderer /Users/Nabil/Dev/realm/realm-studio
[WEBPACK:R] > webpack-dev-server --config=webpack.renderer.config.js
[WEBPACK:R]
[ELECTRON]
[ELECTRON] > realm-studio@0.0.1-alpha.9 wait-for-bundle /Users/Nabil/Dev/realm/realm-studio
[ELECTRON] > node ./webpack.wait-for-bundle.js
[ELECTRON]
[WEBPACK:M] Running in development mode
[WEBPACK:M]
[WEBPACK:M] Webpack is watching the files…
[WEBPACK:M]
[WEBPACK:M]
[WEBPACK:M] [at-loader] Using typescript@2.5.2 from typescript and "tsconfig.json" from /Users/Nabil/Dev/realm/realm-studio/tsconfig.json (in a forked process).
[WEBPACK:M]
[WEBPACK:R] Running in development mode
[WEBPACK:R] Project is running at http://localhost:8080/
[WEBPACK:R] webpack output is served from http://localhost:8080/
[WEBPACK:R]
[WEBPACK:R] [at-loader] Using typescript@2.5.2 from typescript and "tsconfig.json" from /Users/Nabil/Dev/realm/realm-studio/tsconfig.json (in a forked process).
[WEBPACK:R]
[WEBPACK:M]
[WEBPACK:M] [at-loader] Checking started in a separate process...
[WEBPACK:M] Hash: db8d30247dca5b41d21d
[WEBPACK:M] Version: webpack 3.6.0
[WEBPACK:M] Time: 9918ms
[WEBPACK:M]                                 Asset       Size  Chunks             Chunk Names
[WEBPACK:M] da306abc853ee8962e27c30affa2f901.html  313 bytes          [emitted]
[WEBPACK:M] e35d602727e3b683626d7c27aaff9e6a.html  481 bytes          [emitted]
[WEBPACK:M]                        main.bundle.js     195 kB       0  [emitted]  main
[WEBPACK:M] [./node_modules/webpack/hot/log-apply-result.js] (webpack)/hot/log-apply-result.js 1.31 kB {0} [built]
[WEBPACK:M] [./node_modules/webpack/hot/log.js] (webpack)/hot/log.js 1.04 kB {0} [built]
[WEBPACK:M] [./node_modules/webpack/hot/poll.js?1000] (webpack)/hot/poll.js?1000 1.16 kB {0} [built]
[WEBPACK:M] [./src/actions.ts] ./src/actions.ts 3.94 kB {0} [built]
[WEBPACK:M] [./src/main.ts] ./src/main.ts 796 bytes {0} [built]
[WEBPACK:M] [./src/main/application.ts] ./src/main/application.ts 9.98 kB {0} [built]
[WEBPACK:M] [./src/main/main-menu.ts] ./src/main/main-menu.ts 3.48 kB {0} [built]
[WEBPACK:M] [./src/main/updater.ts] ./src/main/updater.ts 2.57 kB {0} [built]
[WEBPACK:M] [./src/main/window-manager.ts] ./src/main/window-manager.ts 3.6 kB {0} [built]
[WEBPACK:M] [./src/windows/WindowType.ts] ./src/windows/WindowType.ts 1.62 kB {0} [built]
[WEBPACK:M] [./static/index.development.html] ./static/index.development.html 83 bytes {0} [built]
[WEBPACK:M]    [0] multi webpack/hot/poll?1000 ./src/main.ts 40 bytes {0} [built]
[WEBPACK:M] [./static/index.html] ./static/index.html 83 bytes {0} [built]
[WEBPACK:M]     + 8 hidden modules
[ELECTRON]
[ELECTRON] > realm-studio@0.0.1-alpha.9 electron /Users/Nabil/Dev/realm/realm-studio
[ELECTRON] > electron ./build/main.bundle.js
[ELECTRON]
[ELECTRON] Wait for app ready
[ELECTRON] Checking for update
[ELECTRON] Error: Error: ENOENT, dev-app-update.yml not found in /Users/Nabil/Dev/realm/realm-studio/node_modules/electron/dist/Electron.app/Contents/Resources/default_app.asar
[ELECTRON]     at notFoundError (ELECTRON_ASAR.js:115:19)
[ELECTRON]     at fs.readFile (ELECTRON_ASAR.js:478:16)
[ELECTRON]     at go$readFile (/Users/Nabil/Dev/realm/realm-studio/node_modules/graceful-fs/graceful-fs.js:73:14)
[ELECTRON]     at readFile (/Users/Nabil/Dev/realm/realm-studio/node_modules/graceful-fs/graceful-fs.js:70:12)
[ELECTRON]     at readFile (/Users/Nabil/Dev/realm/realm-studio/node_modules/universalify/index.js:5:67)
[ELECTRON]     at /Users/Nabil/Dev/realm/realm-studio/node_modules/electron-updater/src/AppUpdater.ts:313:27
[ELECTRON]     at Generator.next (<anonymous>)
[ELECTRON]     at MacUpdater.loadUpdateConfig (/Users/Nabil/Dev/realm/realm-studio/node_modules/electron-updater/out/AppUpdater.js:351:11)
[ELECTRON]     at Lazy.AppUpdater.configOnDisk.Lazy (/Users/Nabil/Dev/realm/realm-studio/node_modules/electron-updater/src/AppUpdater.ts:83:43)
[ELECTRON] From previous event:
[ELECTRON]     at /Users/Nabil/Dev/realm/realm-studio/node_modules/electron-updater/src/AppUpdater.ts:313:27
[ELECTRON]     at Generator.next (<anonymous>)
[ELECTRON] From previous event:
[ELECTRON]     at MacUpdater.loadUpdateConfig (/Users/Nabil/Dev/realm/realm-studio/node_modules/electron-updater/out/AppUpdater.js:351:11)
[ELECTRON]     at Lazy.AppUpdater.configOnDisk.Lazy [as creator] (/Users/Nabil/Dev/realm/realm-studio/node_modules/electron-updater/src/AppUpdater.ts:83:43)
[ELECTRON]     at Lazy.get value [as value] (/Users/Nabil/Dev/realm/realm-studio/node_modules/lazy-val/src/main.ts:18:23)
[ELECTRON]     at /Users/Nabil/Dev/realm/realm-studio/node_modules/electron-updater/src/AppUpdater.ts:220:33
[ELECTRON]     at Generator.next (<anonymous>)
[ELECTRON] From previous event:
[ELECTRON]     at MacUpdater.doCheckForUpdates (/Users/Nabil/Dev/realm/realm-studio/node_modules/electron-updater/out/AppUpdater.js:308:11)
[ELECTRON]     at /Users/Nabil/Dev/realm/realm-studio/node_modules/electron-updater/src/AppUpdater.ts:203:25
[ELECTRON]     at Generator.next (<anonymous>)
[ELECTRON]     at runCallback (timers.js:672:20)
[ELECTRON]     at tryOnImmediate (timers.js:645:5)
[ELECTRON]     at processImmediate [as _immediateCallback] (timers.js:617:5)
[ELECTRON] From previous event:
[ELECTRON]     at MacUpdater._checkForUpdates (/Users/Nabil/Dev/realm/realm-studio/node_modules/electron-updater/out/AppUpdater.js:261:11)
[ELECTRON]     at MacUpdater.checkForUpdates (/Users/Nabil/Dev/realm/realm-studio/node_modules/electron-updater/src/AppUpdater.ts:166:35)
[ELECTRON]     at Updater.module.exports../src/main/updater.ts.Updater.checkForUpdates (/Users/Nabil/Dev/realm/realm-studio/build/webpack:/src/main/updater.ts:39:17)
[ELECTRON]     at Application.module.exports../src/main/application.ts.Application.run (/Users/Nabil/Dev/realm/realm-studio/build/webpack:/src/main/application.ts:54:18)
[ELECTRON]     at Object../src/main.ts (/Users/Nabil/Dev/realm/realm-studio/build/webpack:/src/main.ts:20:31)
[ELECTRON]     at __webpack_require__ (/Users/Nabil/Dev/realm/realm-studio/build/webpack:/webpack/bootstrap db8d30247dca5b41d21d:653:1)
[ELECTRON]     at fn (/Users/Nabil/Dev/realm/realm-studio/build/webpack:/webpack/bootstrap db8d30247dca5b41d21d:63:1)
[ELECTRON]     at Object.0 (/Users/Nabil/Dev/realm/realm-studio/build/main.bundle.js:2070:18)
[ELECTRON]     at __webpack_require__ (/Users/Nabil/Dev/realm/realm-studio/build/webpack:/webpack/bootstrap db8d30247dca5b41d21d:653:1)
[ELECTRON]     at /Users/Nabil/Dev/realm/realm-studio/build/webpack:/webpack/bootstrap db8d30247dca5b41d21d:699:1
[ELECTRON]     at Object.<anonymous> (/Users/Nabil/Dev/realm/realm-studio/build/main.bundle.js:704:10)
[ELECTRON]     at Object.<anonymous> (/Users/Nabil/Dev/realm/realm-studio/build/main.bundle.js:2126:3)
[ELECTRON]     at Module._compile (module.js:571:32)
[ELECTRON]     at Object.Module._extensions..js (module.js:580:10)
[ELECTRON]     at Module.load (module.js:488:32)
[ELECTRON]     at tryModuleLoad (module.js:447:12)
[ELECTRON]     at Function.Module._load (module.js:439:3)
[ELECTRON]     at loadApplicationPackage (/Users/Nabil/Dev/realm/realm-studio/node_modules/electron/dist/Electron.app/Contents/Resources/default_app.asar/main.js:283:12)
[ELECTRON]     at Object.<anonymous> (/Users/Nabil/Dev/realm/realm-studio/node_modules/electron/dist/Electron.app/Contents/Resources/default_app.asar/main.js:325:5)
[WEBPACK:M]
[WEBPACK:M] [at-loader] Ok, 7.44 sec.
[WEBPACK:R] webpack: wait until bundle finished: /renderer.bundle.js
[WEBPACK:R]
[WEBPACK:R] [at-loader] Checking started in a separate process...
[WEBPACK:R] Hash: 3e40f75b3c3bbb1a40e7
[WEBPACK:R] Version: webpack 3.6.0
[WEBPACK:R] Time: 22146ms
[WEBPACK:R]              Asset     Size  Chunks                    Chunk Names
[WEBPACK:R] renderer.bundle.js  1.18 MB       0  [emitted]  [big]  main
[WEBPACK:R]         sprite.svg  8.93 kB          [emitted]         sprite
[WEBPACK:R] [./node_modules/devtron/api.js] ./node_modules/devtron/api.js 1.26 kB {0} [built]
[WEBPACK:R] [./node_modules/react-hot-loader/index.js] ./node_modules/react-hot-loader/index.js 41 bytes {0} [built]
[WEBPACK:R] [./node_modules/react-hot-loader/lib/patch.js] ./node_modules/react-hot-loader/lib/patch.js 209 bytes {0} [built]
[WEBPACK:R] [./node_modules/react-hot-loader/patch.js] ./node_modules/react-hot-loader/patch.js 41 bytes {0} [built]
[WEBPACK:R] [./node_modules/webpack-dev-server/client/index.js?http://localhost:8080] (webpack)-dev-server/client?http://localhost:8080 7.27 kB {0} [built]
[WEBPACK:R] [./node_modules/webpack-dev-server/client/overlay.js] (webpack)-dev-server/client/overlay.js 3.71 kB {0} [built]
[WEBPACK:R] [./node_modules/webpack-dev-server/client/socket.js] (webpack)-dev-server/client/socket.js 1.04 kB {0} [built]
[WEBPACK:R] [./node_modules/webpack/hot ^\.\/log$] (webpack)/hot nonrecursive ^\.\/log$ 170 bytes {0} [built]
[WEBPACK:R]    [0] multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server react-hot-loader/patch ./src/renderer.tsx 64 bytes {0} [built]
[WEBPACK:R] [./node_modules/webpack/hot/dev-server.js] (webpack)/hot/dev-server.js 1.61 kB {0} [built]
[WEBPACK:R] [./node_modules/webpack/hot/log-apply-result.js] (webpack)/hot/log-apply-result.js 1.31 kB {0} [built]
[WEBPACK:R] [./node_modules/webpack/hot/log.js] (webpack)/hot/log.js 1.04 kB {0} [built]
[WEBPACK:R] [./src/renderer.tsx] ./src/renderer.tsx 1.86 kB {0} [built]
[WEBPACK:R] [./src/windows/index.tsx] ./src/windows/index.tsx 2.31 kB {0} [built]
[WEBPACK:R] [./styles/index.scss] ./styles/index.scss 1.29 kB {0} [built]
[WEBPACK:R]     + 108 hidden modules
[WEBPACK:R] webpack: Compiled successfully.
[WEBPACK:R]
[WEBPACK:R] [at-loader] Ok, 2.832 sec.
[ELECTRON] Reading /Users/Nabil/Dev/realm/realm-studio/build/manifest.json failed.
[ELECTRON] Error: ENOENT: no such file or directory, open '/Users/Nabil/Dev/realm/realm-studio/build/manifest.json'
[ELECTRON]     at Object.fs.openSync (fs.js:584:18)
[ELECTRON]     at Object.module.(anonymous function) [as openSync] (ELECTRON_ASAR.js:173:20)
[ELECTRON]     at Object.fs.readFileSync (fs.js:491:33)
[ELECTRON]     at Object.fs.readFileSync (ELECTRON_ASAR.js:505:29)
[ELECTRON]     at getManifestFromPath (/Users/Nabil/Dev/realm/realm-studio/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/browser/chrome-extension.js:35:26)
[ELECTRON]     at Function.BrowserWindow.addExtension (/Users/Nabil/Dev/realm/realm-studio/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/browser/chrome-extension.js:373:22)
[ELECTRON]     at Function.BrowserWindow.addDevToolsExtension (/Users/Nabil/Dev/realm/realm-studio/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/browser/chrome-extension.js:405:40)
[ELECTRON]     at callFunction (/Users/Nabil/Dev/realm/realm-studio/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/browser/rpc-server.js:249:18)
[ELECTRON]     at EventEmitter.<anonymous> (/Users/Nabil/Dev/realm/realm-studio/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/browser/rpc-server.js:357:5)
[ELECTRON]     at emitMany (events.js:127:13)
[ELECTRON]     at EventEmitter.emit (events.js:204:7)
[ELECTRON]     at WebContents.<anonymous> (/Users/Nabil/Dev/realm/realm-studio/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/browser/api/web-contents.js:256:13)
[ELECTRON]     at emitTwo (events.js:106:13)
[ELECTRON]     at WebContents.emit (events.js:194:7)
[ELECTRON] Reading /Users/Nabil/Dev/realm/realm-studio/build/manifest.json failed.
[ELECTRON] Error: ENOENT: no such file or directory, open '/Users/Nabil/Dev/realm/realm-studio/build/manifest.json'
[ELECTRON]     at Object.fs.openSync (fs.js:584:18)
[ELECTRON]     at Object.module.(anonymous function) [as openSync] (ELECTRON_ASAR.js:173:20)
[ELECTRON]     at Object.fs.readFileSync (fs.js:491:33)
[ELECTRON]     at Object.fs.readFileSync (ELECTRON_ASAR.js:505:29)
[ELECTRON]     at getManifestFromPath (/Users/Nabil/Dev/realm/realm-studio/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/browser/chrome-extension.js:35:26)
[ELECTRON]     at Function.BrowserWindow.addExtension (/Users/Nabil/Dev/realm/realm-studio/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/browser/chrome-extension.js:373:22)
[ELECTRON]     at Function.BrowserWindow.addDevToolsExtension (/Users/Nabil/Dev/realm/realm-studio/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/browser/chrome-extension.js:405:40)
[ELECTRON]     at callFunction (/Users/Nabil/Dev/realm/realm-studio/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/browser/rpc-server.js:249:18)
[ELECTRON]     at EventEmitter.<anonymous> (/Users/Nabil/Dev/realm/realm-studio/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/browser/rpc-server.js:357:5)
[ELECTRON]     at emitMany (events.js:127:13)
[ELECTRON]     at EventEmitter.emit (events.js:204:7)
[ELECTRON]     at WebContents.<anonymous> (/Users/Nabil/Dev/realm/realm-studio/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/browser/api/web-contents.js:256:13)
[ELECTRON]     at emitTwo (events.js:106:13)
[ELECTRON]     at WebContents.emit (events.js:194:7)
@bigfish24
Copy link
Contributor

If you have built from source run:

rm -rf ~/Library/Application\ Support/Electron/data /Users/afish/Library/Application\ Support/Electron/realm-object-server

If you are running a released version run:

rm -rf ~/Library/Application\ Support/realm-studio/realm-object-server

and verify if it still doesn't work. This is related to these issues:
#130
#99

@nhachicha
Copy link
Contributor Author

ok removing the directories seems to work around the issue...
please close if duplicate with #130 and #99

@kraenhansen
Copy link
Member

Seems like a duplicate to me.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants