rabix / composer

Visual and code editor for Common Workflow Language
http://rabix.io/
Apache License 2.0
301 stars 72 forks source link

Error Electron missing when npm run serve #399

Open kolxo opened 6 years ago

kolxo commented 6 years ago

Hi,

First of all thanks for your great job ! I followed the doc by doing the command lines:

git clone https://github.com/rabix/composer
cd composer
yarn install

and then yarn run serve

I'm get this error:

webpack-internal:///./src/app/platform-providers/electron-system.service.ts:14 Uncaught TypeError: window.require is not a function
    at eval (webpack-internal:///./src/app/platform-providers/electron-system.service.ts:14)
    at Object../src/app/platform-providers/electron-system.service.ts (main.bundle.js:2148)
    at __webpack_require__ (inline.bundle.js:55)
    at eval (webpack-internal:///./src/main.ts:4)
    at Object../src/main.ts (main.bundle.js:4020)
    at __webpack_require__ (inline.bundle.js:55)
    at Object.0 (main.bundle.js:4028)
    at __webpack_require__ (inline.bundle.js:55)
    at webpackJsonpCallback (inline.bundle.js:26)
    at main.bundle.js:1

I tried to compile electron, compile angular with same restulst.? It seems only yarn run start:electron is working, not in web browser.

Other point yarn test failed with this

yarn run v1.7.0
$ yarn run test:electron && yarn run test:angular
$ node ./electron/node_modules/mocha/bin/_mocha --timeout 15000 -r ts-node/register --recursive --ui bdd 'electron/src/**/*.spec.ts'

  Accelerator Proxy
    ✓ should have on and pass methods available

  FS Controller
    Utility: getPotentialCWLClassFromFile()
      ✓ should return an empty string if the file does not exist
      ✓ should return an empty string if file has no known CWL classes
      ✓ should return “CommandLineTool” if file has that class
      ✓ should return “Workflow” if file has that class
    Utility: getFileOutputInfo()
      ✓ should give exact read/write permission information for 0o700
      ✓ should give exact read/write permission information for 0o766
      ✓ should give exact read/write permission information for 0o704
      ✓ should give exact read/write permission information for 0o702
      ✓ should give information about a file
      ✓ should give information about a folder
    Endpoint: readDirectory()
      ✓ should give the proper listing of directories
    Endpoint: createFile
      ✓ should return an error if file already exists
      ✓ should create a file and return it's info
    Endpoint: saveFileContent
      ✓ should create file if it doesn't exist
      ✓ should overwrite the file with the given content
      ✓ should replace file content when new content is shorter than the old one
    Endpoint: readFileContent
      ✓ should return an error if the file doesn't exist
      ✓ should return the raw content of the file
    Endpoint: deletePath()
      ✓ should return success if the path does not exist
      ✓ should delete a file
      ✓ should recursively delete a folder
    Endpoint: createFolder()
      ✓ should create folders recursively if direct parent doesn't exist
      ✓ should return an error if folder exists
      ✓ should create an empty folder
    Endpoint: checkIfPathExists
      ✓ should return true if the given path is present
      ✓ should return false if the given path is available

  IPC Router
    - should register the data-request event cb
    - should call the appropriate controller function when required and return the response

  Schema salad resolver
    ✓ should have a “resolveContent” method
    ✓ should embed values from $graph into run props that start with a hash
    ✓ should adapt ins and outs keys to remove $graph roots
    ✓ should resolve regular workflow without $graph
    ✓ should detect recursive nesting as invalid cwl

  Data repository
    ✓ stores a token alongside user data
    ✓ updates tokens (104ms)

  34 passing (147ms)
  2 pending

$ ./node_modules/@angular/cli/bin/ng test --watch false
 10% building modules 1/1 modules 0 active07 06 2018 15:03:37.734:INFO [karma]: Karma v2.0.0 server started at http://0.0.0.0:9876/
07 06 2018 15:03:37.735:INFO [launcher]: Launching browser ChromeUnthrottled with unlimited concurrency
07 06 2018 15:03:37.738:INFO [launcher]: Starting browser Chrome
07 06 2018 15:03:43.114:INFO [Chrome 67.0.3396 (Linux 0.0.0)]: Connected on socket FP4274R4NGEf95W5AAAA with id 11520300
Chrome 67.0.3396 (Linux 0.0.0) ExecutorOutputParserService produces an ExecutionStepStartedAction FAILED
        Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
            at ZoneDelegate.webpackJsonp../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask node_modules/zone.js/dist/zone.js:421:1)
            at ProxyZoneSpec.webpackJsonp../node_modules/zone.js/dist/proxy.js.ProxyZoneSpec.onInvokeTask node_modules/zone.js/dist/proxy.js:103:1)
            at ZoneDelegate.webpackJsonp../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask node_modules/zone.js/dist/zone.js:420:1)
            at Zone.webpackJsonp../node_modules/zone.js/dist/zone.js.Zone.runTask node_modules/zone.js/dist/zone.js:188:1)
            at webpackJsonp../node_modules/zone.js/dist/zone.js.ZoneTask.invokeTask node_modules/zone.js/dist/zone.js:496:1)
            at ZoneTask.invoke node_modules/zone.js/dist/zone.js:485:1)
            at timer node_modules/zone.js/dist/zone.js:2025:1)
Chrome 67.0.3396 (Linux 0.0.0): Executed 64 of 101 (1 FAILED) (0 secs / 0 secs)
Chrome 67.0.3396 (Linux 0.0.0) ExecutorOutputParserService produces an ExecutionStepStartedAction FAILED
        Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
            at ZoneDelegate.webpackJsonp../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask node_modules/zone.js/dist/zone.js:421:1)
            at ProxyZoneSpec.webpackJsonp../node_modules/zone.js/dist/proxy.js.ProxyZoneSpec.onInvokeTask node_modules/zone.js/dist/proxy.js:103:1)
            at ZoneDelegate.webpackJsonp../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask node_modules/zone.js/dist/zone.js:420:1)
            at Zone.webpackJsonp../node_modules/zone.js/dist/zone.js.Zone.runTask node_modules/zone.js/dist/zone.js:188:1)
            at webpackJsonp../node_modules/zone.js/dist/zone.js.ZoneTask.invokeTask node_modules/zone.js/dist/zone.js:496:1)
            at ZoneTask.invoke node_modules/zone.js/dist/zone.js:485:1)
Chrome 67.0.3396 (Linux 0.0.0) ExecutorOutputParserService produces an ExecutionStepCompletedAction FAILED
        Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
            at ZoneDelegate.webpackJsonp../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask node_modules/zone.js/dist/zone.js:421:1)
            at ProxyZoneSpec.webpackJsonp../node_modules/zone.js/dist/proxy.js.ProxyZoneSpec.onInvokeTask node_modules/zone.js/dist/proxy.js:103:1)
            at ZoneDelegate.webpackJsonp../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask node_modules/zone.js/dist/zone.js:420:1)
            at Zone.webpackJsonp../node_modules/zone.js/dist/zone.js.Zone.runTask node_modules/zone.js/dist/zone.js:188:1)
            at webpackJsonp../node_modules/zone.js/dist/zone.js.ZoneTask.invokeTask node_modules/zone.js/dist/zone.js:496:1)
            at ZoneTask.invoke node_modules/zone.js/dist/zone.js:485:1)
            at timer node_modules/zone.js/dist/zone.js:2025:1)
Chrome 67.0.3396 (Linux 0.0.0): Executed 65 of 101 (2 FAILED) (0 secs / 0 secs)
Chrome 67.0.3396 (Linux 0.0.0) ExecutorOutputParserService produces an ExecutionStepCompletedAction FAILED
        Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
            at ZoneDelegate.webpackJsonp../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask node_modules/zone.js/dist/zone.js:421:1)
            at ProxyZoneSpec.webpackJsonp../node_modules/zone.js/dist/proxy.js.ProxyZoneSpec.onInvokeTask node_modules/zone.js/dist/proxy.js:103:1)
            at ZoneDelegate.webpackJsonp../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask node_modules/zone.js/dist/zone.js:420:1)
            at Zone.webpackJsonp../node_modules/zone.js/dist/zone.js.Zone.runTask node_modules/zone.js/dist/zone.js:188:1)
            at webpackJsonp../node_modules/zone.js/dist/zone.js.ZoneTask.invokeTask node_modules/zone.js/dist/zone.js:496:1)
            at ZoneTask.invoke node_modules/zone.js/dist/zone.js:485:1)
Chrome 67.0.3396 (Linux 0.0.0) ExecutorOutputParserService produces an ExecutionStepFailedAction FAILED
        Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
            at ZoneDelegate.webpackJsonp../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask node_modules/zone.js/dist/zone.js:421:1)
            at ProxyZoneSpec.webpackJsonp../node_modules/zone.js/dist/proxy.js.ProxyZoneSpec.onInvokeTask node_modules/zone.js/dist/proxy.js:103:1)
            at ZoneDelegate.webpackJsonp../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask node_modules/zone.js/dist/zone.js:420:1)
            at Zone.webpackJsonp../node_modules/zone.js/dist/zone.js.Zone.runTask node_modules/zone.js/dist/zone.js:188:1)
            at webpackJsonp../node_modules/zone.js/dist/zone.js.ZoneTask.invokeTask node_modules/zone.js/dist/zone.js:496:1)
            at ZoneTask.invoke node_modules/zone.js/dist/zone.js:485:1)
            at timer node_modules/zone.js/dist/zone.js:2025:1)
Chrome 67.0.3396 (Linux 0.0.0): Executed 66 of 101 (3 FAILED) (0 secs / 0 secs)
Chrome 67.0.3396 (Linux 0.0.0) ExecutorOutputParserService produces an ExecutionStepFailedAction FAILED
        Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
            at ZoneDelegate.webpackJsonp../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask node_modules/zone.js/dist/zone.js:421:1)
            at ProxyZoneSpec.webpackJsonp../node_modules/zone.js/dist/proxy.js.ProxyZoneSpec.onInvokeTask node_modules/zone.js/dist/proxy.js:103:1)
            at ZoneDelegate.webpackJsonp../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask node_modules/zone.js/dist/zone.js:420:1)
            at Zone.webpackJsonp../node_modules/zone.js/dist/zone.js.Zone.runTask node_modules/zone.js/dist/zone.js:188:1)
            at webpackJsonp../node_modules/zone.js/dist/zone.js.ZoneTask.invokeTask node_modules/zone.js/dist/zone.js:496:1)
            at ZoneTask.invoke node_modules/zone.js/dist/zone.js:485:1)
Chrome 67.0.3396 (Linux 0.0.0): Executed 101 of 101 (3 FAILED) (1.209 secs / 0 secs)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
ghost commented 6 years ago

Hi @nesteban-aldera Thanks for reporting this.

  1. Is yarn run serve still failing for you? I'm on macOS and I can start the dev environment successfully
  2. Yes, this leads to our FAILED notifications that you can see on the badges we proudly display :) If you have notes on how to resolve this please ping. We're looking into it but it is low priority since the application works - it's just that three tests seem to be timing out. We should eventually figure it out.

Thanks!

stevencox commented 5 years ago

Hi @kaushik-work -

I've tried building on OSX and Ubuntu 18. I've tried Chrome, Safari, and Firefox. In all combinations I've tried, I get this:

image

I do get warnings from yarn run serve but no errors:

yarn run v1.13.0
$ node --max-old-space-size=4096 ./node_modules/@angular/cli/bin/ng serve -aot --host 0.0.0.0
** NG Live Development Server is listening on 0.0.0.0:4200, open your browser on http://localhost:4200/ **
webpack: wait until bundle finished: /
Date: 2019-01-26T17:27:53.688Z
Hash: 5e5eacab0473b9241dda
Time: 45764ms
chunk {inline} inline.bundle.js (inline) 3.85 kB [entry] [rendered]
chunk {main} main.bundle.js (main) 5.69 MB [initial] [rendered]
chunk {polyfills} polyfills.bundle.js (polyfills) 598 kB [initial] [rendered]
chunk {styles} styles.bundle.js (styles) 573 kB [initial] [rendered]
chunk {vendor} vendor.bundle.js (vendor) 20 MB [initial] [rendered]

WARNING in Circular dependency detected:
src/app/core/modals/add-source-modal/add-source-modal.component.ts -> src/app/core/modals/platform-credentials-modal/platform-credentials-modal.component.ts -> src/app/layout/notification-bar/dynamic-notifications/get-started-notification/get-started-notification.component.ts -> src/app/core/modals/add-source-modal/add-source-modal.component.ts

WARNING in Circular dependency detected:
src/app/core/modals/platform-credentials-modal/platform-credentials-modal.component.ts -> src/app/layout/notification-bar/dynamic-notifications/get-started-notification/get-started-notification.component.ts -> src/app/core/modals/add-source-modal/add-source-modal.component.ts -> src/app/core/modals/platform-credentials-modal/platform-credentials-modal.component.ts

WARNING in Circular dependency detected:
src/app/editor-common/app-editor-base/app-editor-base.ts -> src/app/editor-common/template-common/common-preview-panel/common-report-panel.component.ts -> src/app/workflow-editor/workflow-editor.component.ts -> src/app/editor-common/app-editor-base/app-editor-base.ts

WARNING in Circular dependency detected:
src/app/editor-common/template-common/common-preview-panel/common-report-panel.component.ts -> src/app/workflow-editor/workflow-editor.component.ts -> src/app/editor-common/app-editor-base/app-editor-base.ts -> src/app/editor-common/template-common/common-preview-panel/common-report-panel.component.ts

WARNING in Circular dependency detected:
src/app/layout/notification-bar/dynamic-notifications/get-started-notification/get-started-notification.component.ts -> src/app/core/modals/add-source-modal/add-source-modal.component.ts -> src/app/core/modals/platform-credentials-modal/platform-credentials-modal.component.ts -> src/app/layout/notification-bar/dynamic-notifications/get-started-notification/get-started-notification.component.ts

WARNING in Circular dependency detected:
src/app/ui/menu/menu-item.component.ngfactory.js -> src/app/ui/menu/menu.component.ngfactory.js -> src/app/ui/menu/menu-item.component.ngfactory.js

WARNING in Circular dependency detected:
src/app/ui/menu/menu.component.ngfactory.js -> src/app/ui/menu/menu-item.component.ngfactory.js -> src/app/ui/menu/menu.component.ngfactory.js

WARNING in Circular dependency detected:
src/app/ui/modal/modal.component.ts -> src/app/ui/modal/modal.service.ts -> src/app/ui/modal/modal.component.ts

WARNING in Circular dependency detected:
src/app/ui/modal/modal.service.ts -> src/app/ui/modal/modal.component.ts -> src/app/ui/modal/modal.service.ts

WARNING in Circular dependency detected:
src/app/workflow-editor/graph-editor/graph-editor/workflow-graph-editor.component.ts -> src/app/workflow-editor/workflow-editor.component.ts -> src/app/workflow-editor/graph-editor/graph-editor/workflow-graph-editor.component.ts

WARNING in Circular dependency detected:
src/app/workflow-editor/workflow-editor.component.ts -> src/app/editor-common/app-editor-base/app-editor-base.ts -> src/app/editor-common/template-common/common-preview-panel/common-report-panel.component.ts -> src/app/workflow-editor/workflow-editor.component.ts

webpack: Compiled with warnings.

The UI never gets past printing Loading....

Can you suggest what I'm doing wrong here?

ghost commented 5 years ago

@stevencox I'm on macOS and the build instructions work for me for latest on master. I do get the circular dependency warnings but the app works fine in dev mode.

I've had strange things happen in the past, and what I did was clone to a fresh directory and proceed from there.

stevencox commented 5 years ago

Thanks. Tried that a few times. I get the same error.

Are your versions of these very different?

Chrome: 71.0.3578.98 Node: 9.4.0 (10.15.0 and 10.5 both fail in yarn install for me) Yarn: v1.13.0

ghost commented 5 years ago

@stevencox hmm, sorry to here that. My setup here is:

node --version
v11.7.0

yarn --version
1.13.0

Chrome I never installed separately, I have 71.0.3578.98

macOS: 10.13.6

I use brew to install node etc.

ryan-williams commented 4 years ago

I'm seeing the same issue on current HEAD commit https://github.com/rabix/composer/commit/7abdb5e472dcc33b69e40f3c872d6af8bd141244

$ node --version
v11.6.0
$ yarn --version
1.21.1

Chrome 79.0.3945.130.

image

yarn install output

yarn install
yarn install v1.21.1
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
warning sha.js@2.4.10: Invalid bin entry for "sha.js" (in "sha.js").
[3/4] 🔗  Linking dependencies...
warning " > ngx-pipes@2.0.1" has incorrect peer dependency "@angular/core@^4.0.1 || ~5.0.0".
warning "@storybook/angular > react-modal@2.4.1" has incorrect peer dependency "react@^0.14.0 || ^15.0.0".
warning "@storybook/angular > react-modal@2.4.1" has incorrect peer dependency "react-dom@^0.14.0 || ^15.0.0".
[4/4] 🔨  Building fresh packages...
[1/10] ⠁ fsevents
[6/10] ⠁ uws
[3/10] ⠁ node-sass
[-/10] ⠁ waiting...
warning Error running install script for optional dependency: "/Users/ryan/c/composer/node_modules/fsevents: Command failed.
Exit code: 1
Command: node install
Arguments:
Directory: /Users/ryan/c/composer/node_modules/fsevents
Output:
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using node-pre-gyp@0.6.39
node-pre-gyp info using node@11.6.0 | darwin | x64
node-pre-gyp info check checked for \"/Users/ryan/c/composer/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64/fse.node\" (not found)
node-pre-gyp http GET https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.3/fse-v1.1.3-node-v67-darwin-x64.tar.gz
node-pre-gyp http 404 https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.3/fse-v1.1.3-node-v67-darwin-x64.tar.gz
node-pre-gyp ERR! Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.3/fse-v1.1.3-node-v67-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for fsevents@1.1.3 and node@11.6.0 (node-v67 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp http 404 status code downloading tarball https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.3/fse-v1.1.3-node-v67-darwin-x64.tar.gz
node-pre-gyp ERR! Tried to download(undefined): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.3/fse-v1.1.3-node-v67-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for fsevents@1.1.3 and node@11.6.0 (node-v67 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp http Connection closed while downloading tarball file
gyp info it worked if it ends with ok
gyp info using node-gyp@3.6.2
gyp info using node@11.6.0 | darwin | x64
gyp info it worked if it ends with ok
gyp info using node-gyp@3.6.2
gyp info using node@11.6.0 | darwin | x64
gyp info ok
gyp info ok
gyp info it worked if it ends with ok
gyp info using node-gyp@3.6.2
gyp info using node@11.6.0 | darwin | x64
gyp info it worked if it ends with ok
gyp info using node-gyp@3.6.2
gyp info using node@11.6.0 | darwin | x64
gyp info spawn /usr/bin/python
gyp info spawn args [ '/Users/ryan/c/composer/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/ryan/c/composer/node_modules/fsevents/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/ryan/c/composer/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/ryan/.node-gyp/11.6.0/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/Users/ryan/.node-gyp/11.6.0',
gyp info spawn args   '-Dnode_gyp_dir=/Users/ryan/c/composer/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/Users/ryan/.node-gyp/11.6.0/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/Users/ryan/c/composer/node_modules/fsevents',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp info spawn /usr/bin/python
gyp info spawn args [ '/Users/ryan/c/composer/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/ryan/c/composer/node_modules/fsevents/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/ryan/c/composer/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/ryan/.node-gyp/11.6.0/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/Users/ryan/.node-gyp/11.6.0',
gyp info spawn args   '-Dnode_gyp_dir=/Users/ryan/c/composer/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/Users/ryan/.node-gyp/11.6.0/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/Users/ryan/c/composer/node_modules/fsevents',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp info ok
gyp info ok
gyp info it worked if it ends with ok
gyp info using node-gyp@3.6.2
gyp info using node@11.6.0 | darwin | x64
gyp info it worked if it ends with ok
gyp info using node-gyp@3.6.2
gyp info using node@11.6.0 | darwin | x64
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
  SOLINK_MODULE(target) Release/.node
  SOLINK_MODULE(target) Release/.node
  CXX(target) Release/obj.target/fse/fsevents.o
  CXX(target) Release/obj.target/fse/fsevents.o
In file included from ../fsevents.cc:6:
In file included from ../../nan/nan.h:203:
In file included from ../../nan/nan_new.h:189:
../../nan/nan_implementation_12_inl.h:337:28: warning: 'New' is deprecated: Use Isolate* version [-Wdeprecated-declarations]
  return v8::StringObject::New(value).As<v8::StringObject>();
                           ^
/Users/ryan/.node-gyp/11.6.0/include/node/v8.h:5241:3: note: 'New' has been explicitly marked deprecated here
  V8_DEPRECATED(\"Use Isolate* version\",
  ^
/Users/ryan/.node-gyp/11.6.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:6:
../../nan/nan.h:839:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
    return node::MakeCallback(
                 ^
/Users/ryan/.node-gyp/11.6.0/include/node/node.h:171:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED(\"Use MakeCallback(..., async_context)\",
^
/Users/ryan/.node-gyp/11.6.0/include/node/node.h:91:20: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                   ^
In file included from ../fsevents.cc:6:
../../nan/nan.h:854:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
    return node::MakeCallback(
                 ^
/Users/ryan/.node-gyp/11.6.0/include/node/node.h:164:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED(\"Use MakeCallback(..., async_context)\",
^
/Users/ryan/.node-gyp/11.6.0/include/node/node.h:91:20: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                   ^
In file included from ../fsevents.cc:6:
../../nan/nan.h:869:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
    return node::MakeCallback(
                 ^
/Users/ryan/.node-gyp/11.6.0/include/node/node.h:157:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED(\"Use MakeCallback(..., async_context)\",
^
/Users/ryan/.node-gyp/11.6.0/include/node/node.h:91:20: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                   ^
In file included from ../fsevents.cc:6:
../../nan/nan.h:916:44: warning: 'ToString' is deprecated: Use maybe version [-Wdeprecated-declarations]
      v8::Local<v8::String> string = from->ToString();
                                           ^
/Users/ryan/.node-gyp/11.6.0/include/node/v8.h:2548:10: note: 'ToString' has been explicitly marked deprecated here
  inline V8_DEPRECATED(\"Use maybe version\", Local<String> ToString() const);
         ^
/Users/ryan/.node-gyp/11.6.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:6:
../../nan/nan.h:926:27: warning: 'WriteUtf8' is deprecated: Use Isolate* version [-Wdeprecated-declarations]
        length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags);
                          ^
/Users/ryan/.node-gyp/11.6.0/include/node/v8.h:2753:3: note: 'WriteUtf8' has been explicitly marked deprecated here
  V8_DEPRECATED(\"Use Isolate* version\",
  ^
/Users/ryan/.node-gyp/11.6.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:6:
../../nan/nan.h:1478:31: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
    return scope.Escape(node::MakeCallback(
                              ^
/Users/ryan/.node-gyp/11.6.0/include/node/node.h:171:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED(\"Use MakeCallback(..., async_context)\",
^
/Users/ryan/.node-gyp/11.6.0/include/node/node.h:91:20: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                   ^
In file included from ../fsevents.cc:6:
In file included from ../../nan/nan.h:203:
In file included from ../../nan/nan_new.h:189:
../../nan/nan_implementation_12_inl.h:337:28: warning: 'New' is deprecated: Use Isolate* version [-Wdeprecated-declarations]
  return v8::StringObject::New(value).As<v8::StringObject>();
                           ^
/Users/ryan/.node-gyp/11.6.0/include/node/v8.h:5241:3: note: 'New' has been explicitly marked deprecated here
  V8_DEPRECATED(\"Use Isolate* version\",
  ^
/Users/ryan/.node-gyp/11.6.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:6:
../../nan/nan.h:839:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
    return node::MakeCallback(
                 ^
/Users/ryan/.node-gyp/11.6.0/include/node/node.h:171:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED(\"Use MakeCallback(..., async_context)\",
^
/Users/ryan/.node-gyp/11.6.0/include/node/node.h:91:20: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                   ^
In file included from ../fsevents.cc:6:
../../nan/nan.h:854:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
    return node::MakeCallback(
                 ^
/Users/ryan/.node-gyp/11.6.0/include/node/node.h:164:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED(\"Use MakeCallback(..., async_context)\",
^
/Users/ryan/.node-gyp/11.6.0/include/node/node.h:91:20: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                   ^
In file included from ../fsevents.cc:6:
../../nan/nan.h:869:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
    return node::MakeCallback(
                 ^
/Users/ryan/.node-gyp/11.6.0/include/node/node.h:157:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED(\"Use MakeCallback(..., async_context)\",
^
/Users/ryan/.node-gyp/11.6.0/include/node/node.h:91:20: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                   ^
In file included from ../fsevents.cc:6:
../../nan/nan.h:916:44: warning: 'ToString' is deprecated: Use maybe version [-Wdeprecated-declarations]
      v8::Local<v8::String> string = from->ToString();
                                           ^
/Users/ryan/.node-gyp/11.6.0/include/node/v8.h:2548:10: note: 'ToString' has been explicitly marked deprecated here
  inline V8_DEPRECATED(\"Use maybe version\", Local<String> ToString() const);
         ^
/Users/ryan/.node-gyp/11.6.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:6:
../../nan/nan.h:926:27: warning: 'WriteUtf8' is deprecated: Use Isolate* version [-Wdeprecated-declarations]
        length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags);
                          ^
/Users/ryan/.node-gyp/11.6.0/include/node/v8.h:2753:3: note: 'WriteUtf8' has been explicitly marked deprecated here
  V8_DEPRECATED(\"Use Isolate* version\",
  ^
/Users/ryan/.node-gyp/11.6.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:6:
../../nan/nan.h:1478:31: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
    return scope.Escape(node::MakeCallback(
                              ^
/Users/ryan/.node-gyp/11.6.0/include/node/node.h:171:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED(\"Use MakeCallback(..., async_context)\",
^
/Users/ryan/.node-gyp/11.6.0/include/node/node.h:91:20: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                   ^
7 warnings generated.
7 warnings generated.
rm: ./Release/.deps/Release/obj.target/fse/fsevents.o.d.raw: No such file or directory
make: *** [Release/obj.target/fse/fsevents.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Users/ryan/c/composer/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack     at ChildProcess.emit (events.js:188:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:254:12)
gyp ERR! System Darwin 19.2.0
gyp ERR! command \"/Users/ryan/.nvm/versions/node/v11.6.0/bin/node\" \"/Users/ryan/c/composer/node_modules/node-gyp/bin/node-gyp.js\" \"build\" \"--fallback-to-build\" \"--module=/Users/ryan/c/composer/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64/fse.node\" \"--module_name=fse\" \"--module_path=/Users/ryan/c/composer/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64\"
gyp ERR! cwd /Users/ryan/c/composer/node_modules/fsevents
gyp ERR! node -v v11.6.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/Users/ryan/.nvm/versions/node/v11.6.0/bin/node /Users/ryan/c/composer/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/ryan/c/composer/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64/fse.node --module_name=fse --module_path=/Users/ryan/c/composer/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/Users/ryan/c/composer/node_modules/fsevents/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:188:13)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:978:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:265:5)
node-pre-gyp ERR! System Darwin 19.2.0
node-pre-gyp ERR! command \"/Users/ryan/.nvm/versions/node/v11.6.0/bin/node\" \"/Users/ryan/c/composer/node_modules/fsevents/node_modules/node-pre-gyp/bin/node-pre-gyp\" \"install\" \"--fallback-to-build\"
node-pre-gyp ERR! cwd /Users/ryan/c/composer/node_modules/fsevents
node-pre-gyp ERR! node -v v11.6.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.39
node-pre-gyp ERR! not ok
Failed to execute '/Users/ryan/.nvm/versions/node/v11.6.0/bin/node /Users/ryan/c/composer/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/ryan/c/composer/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64/fse.node --module_name=fse --module_path=/Users/ryan/c/composer/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64' (1)
  SOLINK_MODULE(target) Release/fse.node
warning Your current version of Yarn is out of date. The latest version is "1.22.0", while you're on "1.21.1".
info To upgrade, run the following command:
$ brew upgrade yarn
$ yarn run install-executor && cd electron && yarn install
yarn run v1.21.1
$ node build-scripts/bundle-executor.js
Bundling Rabix Executor 1.0.5
Error: Unable to access jarfile /Users/ryan/c/composer/electron/executor/lib/rabix-cli.jar
Preparing to download...
Downloading https://github.com/rabix/bunny/releases/download/v1.0.5-1/rabix-1.0.5.tar.gz
Copying ...
✨  Done in 4.06s.
yarn install v1.21.1
warning package.json: No license field
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
warning rabix-composer@1.0.2: No license field
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 🔨  Building fresh packages...
$ ./../node_modules/.bin/electron-builder install-app-deps
[##########################################################################################################################################################################] 400/400  • electron-builder version=20.44.4
  • no native production dependencies
✨  Done in 3.73s.
✨  Done in 233.75s.

yarn run serve (server) output

yarn run v1.21.1
$ node --max-old-space-size=4096 ./node_modules/@angular/cli/bin/ng serve -aot
** NG Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **
 25% building modules 126/127 modules 1 active .../c/composer/src/assets/sass/main.scsswebpack: wait until bundle finished: /
Date: 2020-02-05T21:57:15.610Z
Hash: 324c30a1ad06bc87b023
Time: 33757ms
chunk {inline} inline.bundle.js (inline) 3.85 kB [entry] [rendered]
chunk {main} main.bundle.js (main) 5.71 MB [initial] [rendered]
chunk {polyfills} polyfills.bundle.js (polyfills) 598 kB [initial] [rendered]
chunk {styles} styles.bundle.js (styles) 573 kB [initial] [rendered]
chunk {vendor} vendor.bundle.js (vendor) 20 MB [initial] [rendered]

WARNING in Circular dependency detected:
src/app/core/modals/add-source-modal/add-source-modal.component.ts -> src/app/core/modals/platform-credentials-modal/platform-credentials-modal.component.ts -> src/app/layout/notification-bar/dynamic-notifications/get-started-notification/get-started-notification.component.ts -> src/app/core/modals/add-source-modal/add-source-modal.component.ts

WARNING in Circular dependency detected:
src/app/core/modals/platform-credentials-modal/platform-credentials-modal.component.ts -> src/app/layout/notification-bar/dynamic-notifications/get-started-notification/get-started-notification.component.ts -> src/app/core/modals/add-source-modal/add-source-modal.component.ts -> src/app/core/modals/platform-credentials-modal/platform-credentials-modal.component.ts

WARNING in Circular dependency detected:
src/app/editor-common/app-editor-base/app-editor-base.ts -> src/app/editor-common/template-common/common-preview-panel/common-report-panel.component.ts -> src/app/workflow-editor/workflow-editor.component.ts -> src/app/editor-common/app-editor-base/app-editor-base.ts

WARNING in Circular dependency detected:
src/app/editor-common/template-common/common-preview-panel/common-report-panel.component.ts -> src/app/workflow-editor/workflow-editor.component.ts -> src/app/editor-common/app-editor-base/app-editor-base.ts -> src/app/editor-common/template-common/common-preview-panel/common-report-panel.component.ts

WARNING in Circular dependency detected:
src/app/layout/notification-bar/dynamic-notifications/get-started-notification/get-started-notification.component.ts -> src/app/core/modals/add-source-modal/add-source-modal.component.ts -> src/app/core/modals/platform-credentials-modal/platform-credentials-modal.component.ts -> src/app/layout/notification-bar/dynamic-notifications/get-started-notification/get-started-notification.component.ts

WARNING in Circular dependency detected:
src/app/ui/menu/menu-item.component.ngfactory.js -> src/app/ui/menu/menu.component.ngfactory.js -> src/app/ui/menu/menu-item.component.ngfactory.js

WARNING in Circular dependency detected:
src/app/ui/menu/menu.component.ngfactory.js -> src/app/ui/menu/menu-item.component.ngfactory.js -> src/app/ui/menu/menu.component.ngfactory.js

WARNING in Circular dependency detected:
src/app/ui/modal/modal.component.ts -> src/app/ui/modal/modal.service.ts -> src/app/ui/modal/modal.component.ts

WARNING in Circular dependency detected:
src/app/ui/modal/modal.service.ts -> src/app/ui/modal/modal.component.ts -> src/app/ui/modal/modal.service.ts

WARNING in Circular dependency detected:
src/app/workflow-editor/graph-editor/graph-editor/workflow-graph-editor.component.ts -> src/app/workflow-editor/workflow-editor.component.ts -> src/app/workflow-editor/graph-editor/graph-editor/workflow-graph-editor.component.ts

WARNING in Circular dependency detected:
src/app/workflow-editor/workflow-editor.component.ts -> src/app/editor-common/app-editor-base/app-editor-base.ts -> src/app/editor-common/template-common/common-preview-panel/common-report-panel.component.ts -> src/app/workflow-editor/workflow-editor.component.ts

webpack: Compiled with warnings.
geonux commented 4 years ago

Same problem for me.

I noticed this comment in one of the files :

src/app/editor-common/cwl-schema-validation-worker/cwl-schema-validation-worker.service.ts 37: // FIXME: will not work in browser, window.require call

I'am using Ubuntu 18.04

$ node --version
v10.19.0
$ yarn --version
1.22.4

Here is the yarn.lock file for debugging purpose yarn.lock.zip

Any workaround, even at the sacrifice of certain functionalities?

milosdanilov commented 4 years ago

Try running with node@8.16.2 version. We needed to downgrade node version to 8. This should be fixed in the near future, and latest versions of node should be supported.

My setup:

$ node --version
v8.16.2
$ yarn --version
1.17.3

@geonux Try to run commands in this order: https://github.com/rabix/composer#starting-the-dev-environment

geonux commented 4 years ago

The procedure for creating the development environment is working properly. That's not where I have a problem, and I think it's also the case for the other developers who contributed to this issue.

I would like to access directly to the GUI without going through the (Chrome) browser integrated in Electron, but by going directly through the browser installed on the host machine using an URL.

My use case is the Dockerisation of "Composer", and therefore to be able to access it via a simple URL, and not via a Display translation (as explained here: https://medium.com/@SaravSun/running-gui-applications-inside-docker-containers-83d65c0db110) or a virtual Desktop (VNC).

Do you know if this work could have been done elsewhere ?

Light310 commented 4 years ago

I'm having the same problem, when running "yarn run serve":

Uncaught TypeError: window.require is not a function

I've tried it on Ubuntu, Centos, Debian, with several node versions, including 8.16.2.

Try running with node@8.16.2 version. We needed to downgrade node version to 8. This should be fixed in the near future, and latest versions of node should be supported.

My setup:

$ node --version v8.16.2 $ yarn --version 1.17.3 @geonux Try to run commands in this order: https://github.com/rabix/composer#starting-the-dev-environment

Which OS are you using?

milosdanilov commented 4 years ago

@Light310 After yarn run serve cmd keep it running in the terminal, and in new terminal try running these two commands in order, and keep second one running also:

The last command will open the Rabix app in the electron shell, while angular is running on the localhost:4200. You shouldn't access it through the browser.

milosdanilov commented 4 years ago

@Light310

Which OS are you using?

macOS Catalina

Light310 commented 4 years ago

@milosdanilov

Ok, I got distracted by the message

NG Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/

when launching serve command. I guess that's automatic message from angular.

Now I have suggested versions of node and yarn, "serve" running in one window, in another window "compile" working, but "start" giving me this :

/composer$ yarn run start:electron yarn run v1.17.3 $ ./node_modules/.bin/electron ./electron error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Are there detailed logs anywhere? I could not find them. Common google-answers for this problem did not help me.

Also, is there any successful installation on linux-based systems? We can't use MacOS.

webdevyriy commented 4 years ago

Uncaught TypeError: window.require is not a function at eval (electron-system.service.ts:4) at Object../src/app/platform-providers/electron-system.service.ts (main.bundle.js:2196) at __webpack_require__ (inline.bundle.js:55) at eval (main.ts:5) at Object../src/main.ts (main.bundle.js:4044) at __webpack_require__ (inline.bundle.js:55) at Object.0 (main.bundle.js:4052) at __webpack_require__ (inline.bundle.js:55) at webpackJsonpCallback (inline.bundle.js:26) at main.bundle.js:1

webdevyriy commented 4 years ago

`My setup:

$ node --version v8.16.2 $ yarn --version 1.17.3`

ubuntu 20.04

webdevyriy commented 4 years ago

Someone managed to run this project on linux ?