Coder Social home page Coder Social logo

flogo-cli's People

Contributors

debovema avatar emilienthomas avatar lixingwang avatar mellistibco avatar mr-tibco avatar pdhar-tibco avatar pradyuz3rocool avatar retgits avatar rkozhikk avatar torresashjian avatar vijaynalawade avatar vnalawad-tibco avatar zhili-tibco avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flogo-cli's Issues

flogodevice create - fails

flogodevice create cloudJamL4

fails

[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x7bfb0]

goroutine 1 [running]:
panic(0x2b8d60, 0xc4200120c0)
/usr/local/Cellar/go/1.7.4_1/libexec/src/runtime/panic.go:500 +0x1a1
github.com/TIBCOSoftware/flogo-cli/device.CreateDevice(0x451a00, 0xc420014580, 0xc4200da480, 0x409, 0xc420014540, 0x34, 0x7fff5fbffb03, 0x4, 0x30773d, 0x1)
/opt/go/src/github.com/TIBCOSoftware/flogo-cli/device/api.go:62 +0x460
github.com/TIBCOSoftware/flogo-cli/device.(*cmdCreate).Exec(0xc4200cc6c0, 0xc42000c140, 0x1, 0x1, 0x0, 0x0)
/opt/go/src/github.com/TIBCOSoftware/flogo-cli/device/create.go:93 +0x227
github.com/TIBCOSoftware/flogo-cli/cli.ExecCommand(0xc42001a240, 0x44eae0, 0xc4200cc6c0, 0xc42000c140, 0x1, 0x1, 0xf576, 0xc42001a0b8)
/opt/go/src/github.com/TIBCOSoftware/flogo-cli/cli/command.go:114 +0xc3
main.main()
/opt/go/src/github.com/TIBCOSoftware/flogo-cli/cmd/flogodevice/main.go:42 +0x145

Can you add a template for the content of a device.json file, when using the -f argument?

flogoapp build issues

In the new flogoapp build process there are a few small issues:

  • flogo.json is not in the bin directory
  • flogo.json does not have type id for root task
  • flogoapp build adds flows.go to it even though it is not needed

CRASH observed when 2 concurrent clients querying flogo based application

Flogo application is crashing when 2 concurrent client hitting PUT & GET requests.

Environment: MAC
Attached zip contains necessary files: flowapp-crash-flogo.json & crash.sh
flowapp-crash.zip

Steps to reproduce the issue:

Step-1:
flogo create -f flowapp-crash-flogo.json flowAppCrash
cd flowAppCrash
flogo build
cd bin
export FLOGO_LOG_LEVEL=ERROR
./flowappcrash

Step-2:

Start new terminal & run ./crash.sh
Start 2nd terminal & run ./crash.sh

You should able see flow app is crashing in 1-2 mins.

app build error - undefined: ipamutils.NetworkToSplit

I'm submitting a ... (check one with "x")

[X] bug report => search github for a similar issue or PR before submitting
[] enhancement request
[] feature request
[] support request
[] general question

Current behavior (how does the issue manifest):
When building an app using a new activity that depends on a Go package "github.com/hyperledger/fabric/core/chaincode/shim", I got the following error:

2019-02-18T22:02:17.517Z - error: # flogo-web/vendor/github.com/docker/docker/opts
vendor/github.com/docker/docker/opts/address_pools.go:15:12: undefined: ipamutils.NetworkToSplit

See the same error in flogo-web when adding the same activity from Flogo UI. We cannot add this activity because "flogo build" failed to build flogo-web.

Expected behavior:
"flogo build" may need a better way to reset dependencies, and so build will succeed. My steps to work around the issue is documented below.

Minimal steps to reproduce the problem (not required if feature enhancement):
add dependency by importing the following in an app or a trigger/activity, then try to build it.

    _ "github.com/hyperledger/fabric/core/chaincode/shim"

What is the motivation / use case for changing the behavior?

Please tell us about your environment (Operating system, docker version, browser & verison if webui, etc):
OSX, Docker desktop, Chrome

Flogo version (CLI & contrib/lib. If unknown, leave empty or state unknown): 0.X.X

Additional information you deem important (e.g. issue happens only occasionally):
To work-around the issue, I had to reset the Go dep by the following steps:

cd myapp/src/myapp
rm -Rf Gopkg.* vendor
dep init

To fix the same build issue in flogo-web, I had to do the same in the flogo-docker container. In addition, I had to add an extra lib to the docker container for UI:

apk add --no-cache musl-dev

Consider migrating from dep to go modules.

I'm submitting a ... (check one with "x")

[] bug report => search github for a similar issue or PR before submitting
[x] enhancement request
[] feature request
[] support request
[] general question

Current behavior (how does the issue manifest):
Flogo uses dep.
Expected behavior:
Flogo could use go modules instead.

Minimal steps to reproduce the problem (not required if feature enhancement):

What is the motivation / use case for changing the behavior?
Modules are the future of package management in Go, well for now at least. :)
Please tell us about your environment (Operating system, docker version, browser & verison if webui, etc):

Flogo version (CLI & contrib/lib. If unknown, leave empty or state unknown): 0.X.X

Additional information you deem important (e.g. issue happens only occasionally):

Cannot create project with shared Actions

I'm submitting a ... (check one with "x")

[] bug report => search github for a similar issue or PR before submitting
[] enhancement request
[] feature request
[] support request
[] general question

Current behavior (how does the issue manifest):
When using a shared action the CLI cannot create the project

Expected behavior:

Minimal steps to reproduce the problem (not required if feature enhancement):

What is the motivation / use case for changing the behavior?

Please tell us about your environment (Operating system, docker version, browser & verison if webui, etc):

Flogo version (CLI & contrib/lib. If unknown, leave empty or state unknown): 0.X.X

Additional information you deem important (e.g. issue happens only occasionally):

Separate flogo cli into two executables targeting distinct uses

Separate flogo cli into two executables. One that for a high-level flogo user that only addresses app creation. And another that is for a contribution developer that used to create scaffolding to assist in the development of flogo contributions (triggers, actions, activities, etc..).

MacOS/Sierra flogo-cli getting started issue...

Following the readme:

Installed Go latest
Set Go Path - export PATH=$PATH:/usr/local/go/bin
Installed gb - go get github.com/constabulary/gb/...
Installed Flogo - go get github.com/TIBCOSoftware/flogo-cli/...
Download myflow.json to work folder
run - ./flogo create myApp

Error: Cannot create flogo project [myApp], gb is not installed

Am I missing something here? Thanks!

flogo install fails

Hi,
I am trying to install activities through cli but getting below errors.
Any suggestions?

flogo install github.com/TIBCOSoftware/flogo-contrib/activity/log

skipping insecure protocol: git://github.com/TIBCOSoftware/flogo-contrib
skipping insecure protocol: http://github.com/TIBCOSoftware/flogo-contrib
FATAL: command "fetch" failed: vcs probe failed, tried: https://github.com/TIBCOSoftware/flogo-contrib,ssh://github.com/TIBCOSoftware/flogo-contrib
FATAL: command "vendor" failed: exit status 1
FATAL: command "install" failed: exit status 1

Getting started not working => myflow.json files missing

I try to do the getting started step-by-step. I installed everything successfully. However, the command "flogo add flow myflow.json" fails.
I assume the reason is that there is no file "myflow.json". Do I have to create this file first? The readme does not give any additional hints.

In addition, it would be great if the readme explains how flogo-cli and flogo-web are related. Or can you use either one to build the same flows ?!

Missing trigger in sample

Hi,

importing the following app:
https://github.com/TIBCOSoftware/flogo-cli/blob/master/docs/samples/devices/device-l0x.json

gives me an error because the trigger "has not been installed"

Actually, it seems that it is just because the path to the trigger is not correct.

Instead of:
{ "id": "l0x_trigger", "name": "Read From VL53L0X", "ref": "github.com/TIBCOSoftware/flogo-contrib/device/trigger/vl53l0x_stream", "actionId": "monitor_dist", "settings": { "interval": "500" } }

it should be:
{ "id": "l0x_trigger", "name": "Read From VL53L0X", "ref": "github.com/TIBCOSoftware/flogo-contrib/device/trigger/vl53l0xstream", "actionId": "monitor_dist", "settings": { "interval": "500" } }

Philippe

Flogo CLI Mac OS X Setup Problem

I have a problem when I was trying to get the Flogo cli on my Mac OS:

Joesans-MacBook-Pro:~ jothi$ go get github.com/TIBCOSoftware/flogo-cli/...
package github.com/TIBCOSoftware/flogo-cli/cli
imports bufio: unrecognized import path "bufio" (import path does not begin with hostname)
package github.com/TIBCOSoftware/flogo-cli/cli
imports flag: unrecognized import path "flag" (import path does not begin with hostname)
package github.com/TIBCOSoftware/flogo-cli/cli
imports encoding/json: unrecognized import path "encoding/json" (import path does not begin with hostname)
package github.com/TIBCOSoftware/flogo-cli/cli
imports fmt: unrecognized import path "fmt" (import path does not begin with hostname)
package github.com/TIBCOSoftware/flogo-cli/cli
imports io: unrecognized import path "io" (import path does not begin with hostname)
package github.com/TIBCOSoftware/flogo-cli/cli
imports io/ioutil: unrecognized import path "io/ioutil" (import path does not begin with hostname)
package github.com/TIBCOSoftware/flogo-cli/cli
imports net/http: unrecognized import path "net/http" (import path does not begin with hostname)
package github.com/TIBCOSoftware/flogo-cli/cli
imports net/url: unrecognized import path "net/url" (import path does not begin with hostname)
package github.com/TIBCOSoftware/flogo-cli/cli
imports os: unrecognized import path "os" (import path does not begin with hostname)
package github.com/TIBCOSoftware/flogo-cli/cli
imports os/exec: unrecognized import path "os/exec" (import path does not begin with hostname)
package github.com/TIBCOSoftware/flogo-cli/cli
imports path/filepath: unrecognized import path "path/filepath" (import path does not begin with hostname)
package github.com/TIBCOSoftware/flogo-cli/cli
imports runtime: unrecognized import path "runtime" (import path does not begin with hostname)
package github.com/TIBCOSoftware/flogo-cli/cli
imports strings: unrecognized import path "strings" (import path does not begin with hostname)
package github.com/TIBCOSoftware/flogo-cli/cli
imports text/template: unrecognized import path "text/template" (import path does not begin with hostname)
package github.com/TIBCOSoftware/flogo-cli/cli
imports unicode: unrecognized import path "unicode" (import path does not begin with hostname)
package github.com/TIBCOSoftware/flogo-cli/cli
imports unicode/utf8: unrecognized import path "unicode/utf8" (import path does not begin with hostname)
package github.com/TIBCOSoftware/flogo-cli/cli
imports sort: unrecognized import path "sort" (import path does not begin with hostname)
package github.com/TIBCOSoftware/flogo-cli/cli
imports sync: unrecognized import path "sync" (import path does not begin with hostname)
package github.com/TIBCOSoftware/flogo-cli/flogo
imports bytes: unrecognized import path "bytes" (import path does not begin with hostname)
package github.com/TIBCOSoftware/flogo-cli/flogo
imports compress/gzip: unrecognized import path "compress/gzip" (import path does not begin with hostname)
package github.com/TIBCOSoftware/flogo-cli/flogo
imports encoding/base64: unrecognized import path "encoding/base64" (import path does not begin with hostname)
package github.com/TIBCOSoftware/flogo-cli/flogo
imports errors: unrecognized import path "errors" (import path does not begin with hostname)
package github.com/TIBCOSoftware/flogo-cli/flogo
imports reflect: unrecognized import path "reflect" (import path does not begin with hostname)
package github.com/TIBCOSoftware/flogo-cli/flogo
imports strconv: unrecognized import path "strconv" (import path does not begin with hostname)
package github.com/TIBCOSoftware/flogo-cli/flogo
imports log: unrecognized import path "log" (import path does not begin with hostname)
package github.com/TIBCOSoftware/flogo-cli/flogo
imports math: unrecognized import path "math" (import path does not begin with hostname)
package github.com/TIBCOSoftware/flogo-cli/flogo
imports net: unrecognized import path "net" (import path does not begin with hostname)
package github.com/TIBCOSoftware/flogo-cli/flogo
imports regexp: unrecognized import path "regexp" (import path does not begin with hostname)
package github.com/TIBCOSoftware/flogo-cli/flogo
imports time: unrecognized import path "time" (import path does not begin with hostname)

I would therefore need some help please!

Ability to specify flogo-lib @version to pull a controlled source during engine creation and operations

When flogo create or add issued , the cli does go get from github and it will pick the latest code which is uncontrolled from a build perspective.

On the "add" it can partially address it by supporting "@Version" for example flogo add activity github.com/.../[email protected], but it is not possible control the versions of that activity's dependencies at the moment.
Dave Cheney(creator of gb) have been contacted concerning this, and gb is working on adding support for this. Hopefully Go can figure out some basic dependency management in the near future.

I can add 2 activities to the engine config with same name

We should prevent 2 activities with the same name to be added to the engine using the command:

flogo add activity myActivity

If you call this command twice, two activities with the same name will be added to engine configuration 'flogo.json' file.

Better help on the CLI

When entering a cmd with an incorrect syntax we should display the correct syntax again. For example the following cmd:

flogo create -f SampleApp2 ~/Downloads/SampleApp.json

Simply yields the following error. The correct syntax should be displayed again after the error.

Error: Error loading app file 'SampleApp2' - open SampleApp2: no such file or directory

Flogo version throws an error if GOPATH is not set

I'm submitting a ... (check one with "x")

[X] bug report => search github for a similar issue or PR before submitting
[] enhancement request
[] feature request
[] support request
[] general question

Current behavior (how does the issue manifest): If the GOPATH environment variable is not set, flogo version will throw an error chdir src/github.com/TIBCOSoftware/flogo-cli: no such file or directory

Expected behavior: No error

Minimal steps to reproduce the problem (not required if feature enhancement):

  • Start a shell and either unset the GOPATH variable or simply make sure it isn't set
  • Run flogo version

What is the motivation / use case for changing the behavior? No error

Please tell us about your environment (Operating system, docker version, browser & verison if webui, etc): 0.5.4

Flogo version (CLI & contrib/lib. If unknown, leave empty or state unknown): 0.5.4

flogo create fails when using the -flv option and latest dep

When running the command

flogo create -flv github.com/TIBCOSoftware/flogo-lib@master,github.com/TIBCOSoftware/flogo-contrib@master -f /path/to/my/flogo.json myengine

It fails saying Solving failure: No versions of github.com/TIBCOSoftware/flogo-lib met constraints

It used to work when using dep v0.3.2 and it is failing after I upgraded to dep 0.4.1

I'm using go 1.9.3 and the latest dep v0.4.1 in mac, also go 1.9.4 and dep v0.4.1 combination fails on alpine.

These are the logs:

Solving failure: No versions of github.com/TIBCOSoftware/flogo-lib met constraints:
	v0.5.1: Could not introduce github.com/TIBCOSoftware/[email protected], as it is not allowed by constraint master from project flogo-web.
	v0.5.0: Could not introduce github.com/TIBCOSoftware/[email protected], as it is not allowed by constraint master from project flogo-web.
	v0.4.1: Could not introduce github.com/TIBCOSoftware/[email protected], as it is not allowed by constraint master from project flogo-web.
	v0.4.0: Could not introduce github.com/TIBCOSoftware/[email protected], as it is not allowed by constraint master from project flogo-web.
	v0.3.4: Could not introduce github.com/TIBCOSoftware/[email protected], as it is not allowed by constraint master from project flogo-web.
	v0.3.3: Could not introduce github.com/TIBCOSoftware/[email protected], as it is not allowed by constraint master from project flogo-web.
	v0.3.2: Could not introduce github.com/TIBCOSoftware/[email protected], as it is not allowed by constraint master from project flogo-web.
	v0.3.1: Could not introduce github.com/TIBCOSoftware/[email protected], as it is not allowed by constraint master from project flogo-web.
	v0.3.0: Could not introduce github.com/TIBCOSoftware/[email protected], as it is not allowed by constraint master from project flogo-web.
	v0.2.3: Could not introduce github.com/TIBCOSoftware/[email protected], as it is not allowed by constraint master from project flogo-web.
	v0.2.1: Could not introduce github.com/TIBCOSoftware/[email protected], as it is not allowed by constraint master from project flogo-web.
	v0.2.2-beta1: Could not introduce github.com/TIBCOSoftware/[email protected], as it is not allowed by constraint master from project flogo-web.
	v0.2.0-Final: Could not introduce github.com/TIBCOSoftware/[email protected], as it is not allowed by constraint master from project flogo-web.
	master: Could not introduce github.com/TIBCOSoftware/flogo-lib@master, as its subpackage github.com/TIBCOSoftware/flogo-lib does not contain usable Go code (*build.NoGoError).. (Package is required by (root).)
	activity_output: Could not introduce github.com/TIBCOSoftware/flogo-lib@activity_output, as it is not allowed by constraint master from project flogo-web.
	dep: Could not introduce github.com/TIBCOSoftware/flogo-lib@dep, as it is not allowed by constraint master from project flogo-web.
	entrypoint: Could not introduce github.com/TIBCOSoftware/flogo-lib@entrypoint, as it is not allowed by constraint master from project flogo-web.
	expr-mapper: Could not introduce github.com/TIBCOSoftware/flogo-lib@expr-mapper, as it is not allowed by constraint master from project flogo-web.
	fireweed: Could not introduce github.com/TIBCOSoftware/flogo-lib@fireweed, as it is not allowed by constraint master from project flogo-web.
	flogo-service-go: Could not introduce github.com/TIBCOSoftware/flogo-lib@flogo-service-go, as it is not allowed by constraint master from project flogo-web.
	property-resolver-support: Could not introduce github.com/TIBCOSoftware/flogo-lib@property-resolver-support, as it is not allowed by constraint master from project flogo-web.
	property-support-contrib: Could not introduce github.com/TIBCOSoftware/flogo-lib@property-support-contrib, as it is not allowed by constraint master from project flogo-web.
	state-flow-service-refactoring: Could not introduce github.com/TIBCOSoftware/flogo-lib@state-flow-service-refactoring, as it is not allowed by constraint master from project flogo-web.
	subflow_support: Could not introduce github.com/TIBCOSoftware/flogo-lib@subflow_support, as it is not allowed by constraint master from project flogo-web.
	wi-1.14.0: Could not introduce github.com/TIBCOSoftware/[email protected], as it is not allowed by constraint master from project flogo-web.
	wi-1.15.0: Could not introduce github.com/TIBCOSoftware/[email protected], as it is not allowed by constraint master from project flogo-web.
FATAL: command "create" failed: exit status 1

(node:39449) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1):
Solving failure: No versions of github.com/TIBCOSoftware/flogo-lib met constraints:
	v0.5.1: Could not introduce github.com/TIBCOSoftware/[email protected], as it is not allowed by constraint master from project flogo-web.
	v0.5.0: Could not introduce github.com/TIBCOSoftware/[email protected], as it is not allowed by constraint master from project flogo-web.
	v0.4.1: Could not introduce github.com/TIBCOSoftware/[email protected], as it is not allowed by constraint master from project flogo-web.
	v0.4.0: Could not introduce github.com/TIBCOSoftware/[email protected], as it is not allowed by constraint master from project flogo-web.
	v0.3.4: Could not introduce github.com/TIBCOSoftware/[email protected], as it is not allowed by constraint master from project flogo-web.
	v0.3.3: Could not introduce github.com/TIBCOSoftware/[email protected], as it is not allowed by constraint master from project flogo-web.
	v0.3.2: Could not introduce github.com/TIBCOSoftware/[email protected], as it is not allowed by constraint master from project flogo-web.
	v0.3.1: Could not introduce github.com/TIBCOSoftware/[email protected], as it is not allowed by constraint master from project flogo-web.
	v0.3.0: Could not introduce github.com/TIBCOSoftware/[email protected], as it is not allowed by constraint master from project flogo-web.
	v0.2.3: Could not introduce github.com/TIBCOSoftware/[email protected], as it is not allowed by constraint master from project flogo-web.
	v0.2.1: Could not introduce github.com/TIBCOSoftware/[email protected], as it is not allowed by constraint master from project flogo-web.
	v0.2.2-beta1: Could not introduce github.com/TIBCOSoftware/[email protected], as it is not allowed by constraint master from project flogo-web.
	v0.2.0-Final: Could not introduce github.com/TIBCOSoftware/[email protected], as it is not allowed by constraint master from project flogo-web.
	master: Could not introduce github.com/TIBCOSoftware/flogo-lib@master, as its subpackage github.com/TIBCOSoftware/flogo-lib does not contain usable Go code (*build.NoGoError).. (Package is required by (root).)
	activity_output: Could not introduce github.com/TIBCOSoftware/flogo-lib@activity_output, as it is not allowed by constraint master from project flogo-web.
	dep: Could not introduce github.com/TIBCOSoftware/flogo-lib@dep, as it is not allowed by constraint master from project flogo-web.
	entrypoint: Could not introduce github.com/TIBCOSoftware/flogo-lib@entrypoint, as it is not allowed by constraint master from project flogo-web.
	expr-mapper: Could not introduce github.com/TIBCOSoftware/flogo-lib@expr-mapper, as it is not allowed by constraint master from project flogo-web.
	fireweed: Could not introduce github.com/TIBCOSoftware/flogo-lib@fireweed, as it is not allowed by constraint master from project flogo-web.
	flogo-service-go: Could not introduce github.com/TIBCOSoftware/flogo-lib@flogo-service-go, as it is not allowed by constraint master from project flogo-web.
	property-resolver-support: Could not introduce github.com/TIBCOSoftware/flogo-lib@property-resolver-support, as it is not allowed by constraint master from project flogo-web.
	property-support-contrib: Could not introduce github.com/TIBCOSoftware/flogo-lib@property-support-contrib, as it is not allowed by constraint master from project flogo-web.
	state-flow-service-refactoring: Could not introduce github.com/TIBCOSoftware/flogo-lib@state-flow-service-refactoring, as it is not allowed by constraint master from project flogo-web.
	subflow_support: Could not introduce github.com/TIBCOSoftware/flogo-lib@subflow_support, as it is not allowed by constraint master from project flogo-web.
	wi-1.14.0: Could not introduce github.com/TIBCOSoftware/[email protected], as it is not allowed by constraint master from project flogo-web.
	wi-1.15.0: Could not introduce github.com/TIBCOSoftware/[email protected], as it is not allowed by constraint master from project flogo-web.
FATAL: command "create" failed: exit status 1

Note that for @master tag it says

	master: Could not introduce github.com/TIBCOSoftware/flogo-lib@master, as its subpackage github.com/TIBCOSoftware/flogo-lib does not contain usable Go code (*build.NoGoError).. (Package is required by (root).)

flogo-clicd missing

I get an error when I try to update flogo-cli with this command :
go get -u github.com/TIBCOSoftware/flogo-cli/...

mbp-de-eric-2:go ericcarlier$ go get -u github.com/TIBCOSoftware/flogo-cli/...
# cd /Users/ericcarlier/Development/go/src/github.com/TIBCOSoftware/flogo-cli; git submodule update --init --recursive
Submodule 'submodules/flogo-cicd' (https://github.com/TIBCOSoftware/flogo-cicd.git) registered for path 'submodules/flogo-cicd'
Cloning into 'submodules/flogo-cicd'...
remote: Repository not found.
fatal: repository 'https://github.com/TIBCOSoftware/flogo-cicd.git/' not found
fatal: clone of 'https://github.com/TIBCOSoftware/flogo-cicd.git' into submodule path 'submodules/flogo-cicd' failed
package github.com/TIBCOSoftware/flogo-cli/cli: exit status 128

And indeed I can not see this dir in TIBCOSoftware github repo

Eric

app name in flogo json not matching dir name

When the app name specified in flogo json does not match the dir name, the app fails to execute after being built.

2017-11-21 08:44:37.070 DEBUG [engine] - Registering action factory: 'github.com/TIBCOSoftware/flogo-contrib/action/flow'
2017-11-21 08:44:37.071 DEBUG [engine] - Registering activity: 'github.com/TIBCOSoftware/flogo-contrib/activity/log'
2017-11-21 08:44:37.071 DEBUG [engine] - Registering trigger factory: 'github.com/TIBCOSoftware/flogo-contrib/trigger/rest'
2017-11-21 08:44:37.071 INFO [engine] - Engine: Starting...
2017-11-21 08:44:37.071 ERROR [engine] - Engine: Error Creating trigger instances - Trigger Factory 'github.com/ecarlier-tibco/flogo/trigger/syslogs' not registered
panic: Engine: Error Creating trigger instances - Trigger Factory 'github.com/ecarlier-tibco/flogo/trigger/syslogs' not registered

goroutine 1 [running]:
github.com/TIBCOSoftware/flogo-lib/engine.(*EngineConfig).Init(0xc420016820, 0x0, 0x1, 0xc420011e20)
/Users/mellis/flogo-apps/sysapp1/vendor/src/github.com/TIBCOSoftware/flogo-lib/engine/engine.go:85 +0x804
github.com/TIBCOSoftware/flogo-lib/engine.(*EngineConfig).Start(0xc420016820, 0x15a6260, 0xc420016820)
/Users/mellis/flogo-apps/sysapp1/vendor/src/github.com/TIBCOSoftware/flogo-lib/engine/engine.go:126 +0x143
main.main()
/Users/mellis/flogo-apps/sysapp1/src/sysapp1/main.go:37 +0xaa

Flogo app not working when exported from flogo web

I have created flogo app using flogo web. It contains simple Rest trigger with Rest invoker and Reply to trigger legacy one. I am not getting output in browser. Attached flogo.json for reference.

Steps to reproduce:

  1. Create flogo app with attached json and start the binary.
  2. Open browser hit the "url http://localhost:9096/pet/1"
  3. I am getting empty page check the attached error.jpg

Observation:
I have changed output params value to null instead of empty array in metadata section. I can see the response in browser.
flogo-err.zip

flogo build fails in windows environment

I have took latest flogo-cli with go get -u github.com/TIBCOSoftware/flogo-cli/... command and also installed dep using go get -u github.com/golang/dep/cmd/dep in my windows environment.

When I try to build a basic flogo application I get the following error:

C:\***\flogo-web>flogo build
imports.go:5:2: cannot find package "github.com/TIBCOSoftware/flogo-contrib/action/flow" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-contrib\action\flow (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-contrib\action\flow (from $GOPATH)
main.go:9:2: cannot find package "github.com/TIBCOSoftware/flogo-lib/app" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-lib\app (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-lib\app (from $GOPATH)
main.go:10:2: cannot find package "github.com/TIBCOSoftware/flogo-lib/engine" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-lib\engine (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-lib\engine (from $GOPATH)
main.go:11:2: cannot find package "github.com/TIBCOSoftware/flogo-lib/logger" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-lib\logger (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-lib\logger (from $GOPATH)
vendor\github.com\Sirupsen\logrus\terminal_check_notappengine.go:9:2: cannot find package "golang.org/x/crypto/ssh/terminal" in any of:
        C:\Go\src\golang.org\x\crypto\ssh\terminal (from $GOROOT)
        C:\***\goworkspace\src\golang.org\x\crypto\ssh\terminal (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\action.go:12:2: cannot find package "github.com/TIBCOSoftware/flogo-contrib/action/flow/definition" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-contrib\action\flow\definition (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-contrib\action\flow\definition (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\action.go:13:2: cannot find package "github.com/TIBCOSoftware/flogo-contrib/action/flow/extension" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-contrib\action\flow\extension (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-contrib\action\flow\extension (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\action.go:14:2: cannot find package "github.com/TIBCOSoftware/flogo-contrib/action/flow/instance" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-contrib\action\flow\instance (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-contrib\action\flow\instance (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\action.go:15:2: cannot find package "github.com/TIBCOSoftware/flogo-contrib/action/flow/model" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-contrib\action\flow\model (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-contrib\action\flow\model (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\action.go:16:2: cannot find package "github.com/TIBCOSoftware/flogo-contrib/action/flow/provider" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-contrib\action\flow\provider (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-contrib\action\flow\provider (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\action.go:17:2: cannot find package "github.com/TIBCOSoftware/flogo-contrib/action/flow/tester" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-contrib\action\flow\tester (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-contrib\action\flow\tester (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\action.go:18:2: cannot find package "github.com/TIBCOSoftware/flogo-lib/core/action" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-lib\core\action (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-lib\core\action (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\action.go:19:2: cannot find package "github.com/TIBCOSoftware/flogo-lib/core/data" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-lib\core\data (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-lib\core\data (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\action.go:21:2: cannot find package "github.com/TIBCOSoftware/flogo-lib/util" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-lib\util (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-lib\util (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\definition\definition_ser.go:8:2: cannot find package "github.com/TIBCOSoftware/flogo-lib/core/activity" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-lib\core\activity (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-lib\core\activity (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\definition\mapper.go:6:2: cannot find package "github.com/TIBCOSoftware/flogo-lib/core/mapper" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-lib\core\mapper (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-lib\core\mapper (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\extension\extension.go:9:2: cannot find package "github.com/TIBCOSoftware/flogo-contrib/model/simple" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-contrib\model\simple (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-contrib\model\simple (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\instance\recorder.go:9:2: cannot find package "github.com/TIBCOSoftware/flogo-contrib/action/flow/service" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-contrib\action\flow\service (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-contrib\action\flow\service (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\instance\exec.go:4:2: cannot find package "github.com/TIBCOSoftware/flogo-contrib/action/flow/support" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-contrib\action\flow\support (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-contrib\action\flow\support (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\provider\provider.go:8:2: cannot find package "github.com/TIBCOSoftware/flogo-contrib/action/flow/script/fggos" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-contrib\action\flow\script\fggos (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-contrib\action\flow\script\fggos (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\script\fggos\linkexpr.go:9:2: cannot find package "github.com/japm/goScript" in any of:
        C:\Go\src\github.com\japm\goScript (from $GOROOT)
        C:\***\goworkspace\src\github.com\japm\goScript (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\tester\request.go:10:2: cannot find package "github.com/TIBCOSoftware/flogo-lib/core/trigger" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-lib\core\trigger (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-lib\core\trigger (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\tester\request.go:11:2: cannot find package "github.com/TIBCOSoftware/flogo-lib/engine/runner" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-lib\engine\runner (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-lib\engine\runner (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\tester\service.go:11:2: cannot find package "github.com/julienschmidt/httprouter" in any of:
        C:\Go\src\github.com\julienschmidt\httprouter (from $GOROOT)
        C:\***\goworkspace\src\github.com\julienschmidt\httprouter (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-lib\app\config.go:5:2: cannot find package "github.com/TIBCOSoftware/flogo-lib/config" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-lib\config (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-lib\config (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-lib\logger\logfactory.go:7:2: cannot find package "github.com/Sirupsen/logrus" in any of:
        C:\Go\src\github.com\Sirupsen\logrus (from $GOROOT)
        C:\***\goworkspace\src\github.com\Sirupsen\logrus (from $GOPATH)
vendor\golang.org\x\crypto\ssh\terminal\util_windows.go:22:2: cannot find package "golang.org/x/sys/windows" in any of:
        C:\Go\src\golang.org\x\sys\windows (from $GOROOT)
        C:\***\goworkspace\src\golang.org\x\sys\windows (from $GOPATH)
FATAL: command "build" failed: exit status 1

Unable to install flogo on Windows

I followed the README.md steps and did not manage to install flogo on Windows:

  1. I installed a clean Go instance and set PATH env variable (go version yields go version go1.8.3 windows/amd64)
  2. Created a directory called C:\Users\MY_USER\Go\src as suggested by Go
  3. Executed go get github.com/constabulary/gb/.... Two directories were created, C:\Users\MY_USER\Go\src\constabulary and C:\Users\MY_USER\Go\src\pkg
  4. Executed go get github.com/TIBCOSoftware/flogo-cli/.... Two directories were created, C:\Users\MY_USER\Go\src\TIBCOSoftware and C:\Users\MY_USER\Go\src\xeipuuv

The README.md file starts using flogo commands afterwards but it is not being recognized as a comand. Do I need to build something? Or set some other path to PATH?

If the value of the "name" property in the flogo.json file differs from the directory created by flogo create (in src dir) then "flogo build" will panic.

I used "flogo create" to create an instance of an app. I then copied over the flogo.json file with a version containing the kafka trigger (rather than hand editing the file) and then attempted the build:

__wcn00@bilbo:~/go/src/github.com/wnichols/testkafkab> flogo build
panic: invalid argument

goroutine 1 [running]:
github.com/TIBCOSoftware/flogo-cli/util.RenderTemplate(0x8984e0, 0x0, 0x755001, 0x63b, 0x6cc1a0, 0xc4202ae6a0)
/home/wcn00/go/src/github.com/TIBCOSoftware/flogo-cli/util/text.go:36 +0x22d
github.com/TIBCOSoftware/flogo-cli/app.createMainGoFile(0xc420015200, 0x3f, 0x0, 0x0)
/home/wcn00/go/src/github.com/TIBCOSoftware/flogo-cli/app/files.go:27 +0x118
github.com/TIBCOSoftware/flogo-cli/app.PrepareApp(0x89e980, 0xc4200183c0, 0xc4200d0c60, 0x0, 0x0)
/home/wcn00/go/src/github.com/TIBCOSoftware/flogo-cli/app/api.go:146 +0x39c
github.com/TIBCOSoftware/flogo-cli/app.BuildApp(0x89e980, 0xc4200183c0, 0xc420055e10, 0xc4200183c0, 0x2)
/home/wcn00/go/src/github.com/TIBCOSoftware/flogo-cli/app/api.go:166 +0x21d
github.com/TIBCOSoftware/flogo-cli/app.(*cmdBuild).Exec(0xc4200130a0, 0xc42000c860, 0x0, 0x0, 0x0, 0x0)
/home/wcn00/go/src/github.com/TIBCOSoftware/flogo-cli/app/build.go:58 +0xf2
github.com/TIBCOSoftware/flogo-cli/cli.ExecCommand(0xc420018360, 0x89bd20, 0xc4200130a0, 0xc42000c860, 0x0, 0x0, 0x0, 0x744351)
/home/wcn00/go/src/github.com/TIBCOSoftware/flogo-cli/cli/command.go:114 +0xa9
main.main()
/home/wcn00/go/src/github.com/TIBCOSoftware/flogo-cli/cmd/flogo/main.go:42 +0x122__

wcn00@bilbo:~/go/src/github.com/wnichols/testkafkab> vi flogo.json
I edit the flogo.json file to correct the name:

__wcn00@bilbo:/go/src/github.com/wnichols/testkafkab> flogo build
/home/wcn00/go/src/github.com/wnichols/testkafkab
github.com/TIBCOSoftware/flogo-contrib/action/flow/service
github.com/pierrec/xxHash/xxHash32
github.com/TIBCOSoftware/flogo-lib/config
github.com/eapache/queue
github.com/eapache/go-resiliency/breaker
github.com/TIBCOSoftware/flogo-lib/core/data
github.com/golang/snappy
github.com/julienschmidt/httprouter
github.com/eapache/go-xerial-snappy
github.com/davecgh/go-spew/spew
github.com/pierrec/lz4
github.com/Sirupsen/logrus
github.com/TIBCOSoftware/flogo-lib/logger
github.com/TIBCOSoftware/flogo-lib/core/property
github.com/TIBCOSoftware/flogo-lib/core/action
github.com/TIBCOSoftware/flogo-lib/util
github.com/TIBCOSoftware/flogo-lib/core/activity
github.com/TIBCOSoftware/flogo-lib/engine/runner
github.com/TIBCOSoftware/flogo-contrib/trigger/rest/cors
github.com/TIBCOSoftware/flogo-contrib/activity/log
github.com/TIBCOSoftware/flogo-lib/core/trigger
github.com/TIBCOSoftware/flogo-contrib/action/flow/definition
github.com/TIBCOSoftware/flogo-lib/app
github.com/TIBCOSoftware/flogo-contrib/action/flow/model
github.com/TIBCOSoftware/flogo-contrib/model/simple
github.com/TIBCOSoftware/flogo-contrib/action/flow/support
github.com/rcrowley/go-metrics
github.com/TIBCOSoftware/flogo-contrib/trigger/rest
github.com/TIBCOSoftware/flogo-lib/engine
github.com/japm/goScript
github.com/TIBCOSoftware/flogo-contrib/action/flow/script/fggos
github.com/TIBCOSoftware/flogo-contrib/action/flow/provider
github.com/TIBCOSoftware/flogo-contrib/action/flow/instance
github.com/TIBCOSoftware/flogo-contrib/action/flow/tester
github.com/TIBCOSoftware/flogo-contrib/action/flow/extension
github.com/TIBCOSoftware/flogo-contrib/action/flow
github.com/Shopify/sarama
github.com/TIBCOSoftware/flogo-contrib/trigger/kafkasub
testkafkab
wcn00@bilbo:
/go/src/github.com/wnichols/testkafkab> __

Reviewers:
@fm-tibco
@torresashjian

"Slice bounds out of range" Issue building project in Windows

Following issue building flogo project in Windows:

C:\GoFlogoWorkspace\bin\test>flogo build
panic: runtime error: slice bounds out of range

goroutine 1 [running]:
github.com/TIBCOSoftware/flogo-cli/app.refPath(0xc0420dd140, 0x27, 0xc04202da40, 0x66, 0x1, 0xc0420694e0)
C:/GoFlogoWorkspace/src/github.com/TIBCOSoftware/flogo-cli/app/api.go:304 +0xa4
github.com/TIBCOSoftware/flogo-cli/app.ListDependencies.func1(0xc04202da40, 0x66, 0x89daa0, 0xc0420f7320, 0x0, 0x0, 0x0, 0x66)
C:/GoFlogoWorkspace/src/github.com/TIBCOSoftware/flogo-cli/app/api.go:247 +0x496
path/filepath.walk(0xc04202da40, 0x66, 0x89daa0, 0xc0420f7320, 0xc0420dd230, 0x0, 0x0)
C:/Go/src/path/filepath/path.go:351 +0x88
path/filepath.walk(0xc0420f6c60, 0x5a, 0x89daa0, 0xc0420f6cc0, 0xc0420dd230, 0x0, 0x0)
C:/Go/src/path/filepath/path.go:376 +0x41b
path/filepath.walk(0xc0420f6960, 0x55, 0x89daa0, 0xc0420f69c0, 0xc0420dd230, 0x0, 0x0)
C:/Go/src/path/filepath/path.go:376 +0x41b
path/filepath.walk(0xc0420dfcc0, 0x4e, 0x89daa0, 0xc0420f65a0, 0xc0420dd230, 0x0, 0x0)
C:/Go/src/path/filepath/path.go:376 +0x41b
path/filepath.walk(0xc0420d5780, 0x40, 0x89daa0, 0xc0420f6480, 0xc0420dd230, 0x0, 0x0)
C:/Go/src/path/filepath/path.go:376 +0x41b
path/filepath.walk(0xc0420d5200, 0x32, 0x89daa0, 0xc0420e03c0, 0xc0420dd230, 0x0, 0x0)
C:/Go/src/path/filepath/path.go:376 +0x41b
path/filepath.walk(0xc0420dd140, 0x27, 0x89daa0, 0xc0420e02a0, 0xc0420dd230, 0x0, 0x30)
C:/Go/src/path/filepath/path.go:376 +0x41b
path/filepath.Walk(0xc0420dd140, 0x27, 0xc0420dd230, 0xc042069c28, 0x4f475e)
C:/Go/src/path/filepath/path.go:398 +0x153
github.com/TIBCOSoftware/flogo-cli/app.ListDependencies(0x89e440, 0xc0420342a0, 0x0, 0x1, 0x746810, 0x2, 0xc0420de140, 0xc0420e0240)
C:/GoFlogoWorkspace/src/github.com/TIBCOSoftware/flogo-cli/app/api.go:294 +0xfc
github.com/TIBCOSoftware/flogo-cli/app.generateGoMetadatas(0x89e440, 0xc0420342a0, 0xc04209fd80, 0x20)
C:/GoFlogoWorkspace/src/github.com/TIBCOSoftware/flogo-cli/app/api.go:320 +0x49
github.com/TIBCOSoftware/flogo-cli/app.PrepareApp(0x89e440, 0xc0420342a0, 0xc04209ed40, 0x0, 0x0)
C:/GoFlogoWorkspace/src/github.com/TIBCOSoftware/flogo-cli/app/api.go:113 +0x90
github.com/TIBCOSoftware/flogo-cli/app.BuildApp(0x89e440, 0xc0420342a0, 0xc042069e10, 0xc0420342a0, 0x2)
C:/GoFlogoWorkspace/src/github.com/TIBCOSoftware/flogo-cli/app/api.go:166 +0x224
github.com/TIBCOSoftware/flogo-cli/app.(*cmdBuild).Exec(0xc042008e10, 0xc042002760, 0x0, 0x0, 0x0, 0x0)
C:/GoFlogoWorkspace/src/github.com/TIBCOSoftware/flogo-cli/app/build.go:58 +0xf9
github.com/TIBCOSoftware/flogo-cli/cli.ExecCommand(0xc042034240, 0x89b920, 0xc042008e10, 0xc042002760, 0x0, 0x0, 0x0, 0x748246)
C:/GoFlogoWorkspace/src/github.com/TIBCOSoftware/flogo-cli/cli/command.go:114 +0xb0
main.main()
C:/GoFlogoWorkspace/src/github.com/TIBCOSoftware/flogo-cli/cmd/flogo/main.go:42 +0x129

flogogen trigger creates template with deprecated interface

flogogen trigger test will create template code that has:

trigger.go
// Init implements trigger.Trigger.Init
func (t *udpTrigger) Init(runner action.Runner) {
t.runner = runner
}
rather than Initialize

trigger_test.go

runner := &TestRunner{}
tgr.Init(runner)

is Init correct ?

flogogen makes trigger code that does not conform to current trigger interfaces.

Create a trigger:
flogogen trigger wcntrigger
Attempt to build the new trigger and you get:
github.com/wnichols/wcntrigger
trigger.go:16: undefined: jsonMetadata

There is no declaration for jsonMetadata. Comment the "init" method out and check the code into github.

make a test flo: flogo create testtrigger
flogo build works and creates a rest service as usual.
Now install the previously created trigger:
flogo install github.com/wnichols/wcntrigger
trigger is installed in the vendor folder.
flogo build now fails with:
trigger_metadata.go:31: undefined: NewFactory
github.com/TIBCOSoftware/flogo-contrib/activity/log
github.com/TIBCOSoftware/flogo-contrib/action/flow
github.com/TIBCOSoftware/flogo-contrib/trigger/rest
FATAL: command "build" failed: exit status 2
FATAL: command "build" failed: exit status 1

flogo Build failing on freshly created activity using cli

I'm submitting a ... (check one with "x")

[x] bug report => search github for a similar issue or PR before submitting
[] enhancement request
[] feature request
[] support request
[] general question

Current behavior (how does the issue manifest):
The flogo build is giving the following issue

[error] Encountered error while installing the 'https://github.com/pradyuz3rocool/flogo-workspace/activity/dhtxx' to the engine:
2018-12-05T10:18:00.268Z - error: # flogo-web/vendor/github.com/pradyuz3rocool/flogo-workspace/activity/dhtxx
vendor/github.com/pradyuz3rocool/flogo-workspace/activity/dhtxx/activity_metadata.go:36:20: undefined: NewActivity
FATAL: command "build" failed: exit status 2

Expected behavior:

Minimal steps to reproduce the problem (not required if feature enhancement):

What is the motivation / use case for changing the behavior?

Please tell us about your environment (Operating system, docker version, browser & verison if webui, etc):

OSX Mojave, Docker engine 18.09.0, chrome, logo v0.5.6
Flogo version (CLI & contrib/lib. If unknown, leave empty or state unknown): 0.X.X

Additional information you deem important (e.g. issue happens only occasionally):

Error at "flogo build" step; please refer to comments for more details.

After adding trigger, and the activity to app, the "flogo build" step gives following error:

github.com/TIBCOSoftware/flogo-lib/core/data
coercion.go:38: undefined: MAP
github.com/TIBCOSoftware/flogo-lib/util
github.com/julienschmidt/httprouter
github.com/op/go-logging
FATAL: command "build" failed: exit status 2

Looks like, the MAP type needs to be defined in https://github.com/TIBCOSoftware/flogo-lib/blob/master/core/data/types.go

Code synch up done on 04/19/2016, AM.

Add > flogo version command

We need a command that will tell us what version of the cli is currently run.

This will help us with issues and debug problems to make sure people are running the correct version.

Need to change trigger Stop() signature in templates

In github.com/TIBCOSoftware/flogo-cli/tools/trigger/files.go template the Stop() method is missing error as return value to match the Managed interface in github.com/TIBCOSoftware/flogo-lib/util/managed.go.

This creates an error when building a custom Trigger.

Struggling to get started with flogo-cli

Hi there,
probably more a documentation issue at this point, and a request for guidance to get an first app running.
What i wanted to do is take the weather app example from flogo-web and run it using flogo-cli
I ran the app successfully on flogo-web and exported the flow using "Export for CLI" (generated file : "weather_flow.json")

Here is what I did:

flogo create weather_app
cd weather_app
flogo add activity github.com/TIBCOSoftware/flogo-contrib/activity/log
flogo add activity github.com/TIBCOSoftware/flogo-contrib/activity/rest
flogo add activity github.com/TIBCOSoftware/flogo-contrib/activity/twilio
flogo add trigger github.com/TIBCOSoftware/flogo-contrib/trigger/rest

I updated the bin/triggers.json to configure my rest trigger
so far so good.
then I tried to add my flow using the generated "weather_flow.json"

flogo add flow weather_flow.json 
Error: cannot embed 'weather_flow.json', validation of the flow's json failed:
  - model: model is required
  - type: type is required
  - rootTask: rootTask is required

This creates error as you can see above.
I don't mind updating manually my flow json file, but I cannot find anywhere a document that describes how to write it ? Did I miss it ?

One side remark: the Readme's sometimes mention the possibility to use Slack to ask questions. But this on a Slack team I don't belong to:

  1. either there is a process to join the Slack team, and then this should mentioned
  2. or this is a restricted Slack team, and then you should remove this from the Readme's

Thanks,
Eric
triggers.json.zip
weather_flow.json.zip

flogo build - shim

consider running dep ensure after the shim.go has been moved to main.go, in the event the shim imports packages that are not part of the original import tree

Getting started not working => flogo: command not found

I'm starting with Flogo. I've install Go 1.7.5 on a RaspeberryPi 3B and I can compile a Go app.

I've followed the pre-requisit steps without any error, but I'm getting an error when I try to create the project:
$ go get github.com/constabulary/gb/...
$ go get github.com/TIBCOSoftware/flogo-cli/...
$ ls $GOPATH/pkg/linux_arm/github.com
constabulary pkg TIBCOSoftware xeipuuv
$ pwd
/home/pi/work/src
$ flogo create helloflogo
bash: flogo: command not found

Do I need to manually add flogo bin to the path? If yes, please add this to the get started steps.

Flogogen trigger does not create a workable trigger OOB

I'm submitting a ... (check one with "x")

[x] bug report => search github for a similar issue or PR before submitting
[] enhancement request
[] feature request
[] support request
[] general question

Current behavior (how does the issue manifest):
flogogen trigger generates an incomplete _test.go Currently it is possible to take the trigger as generated and test it.

Expected behavior:
Similar to activity. Would have expected the generated trigger to 'work'
Minimal steps to reproduce the problem (not required if feature enhancement):
flogogen trigger testTrigger
cd testTrigger
go test
What is the motivation / use case for changing the behavior?

Please tell us about your environment (Operating system, docker version, browser & verison if webui, etc):

Flogo version (CLI & contrib/lib. If unknown, leave empty or state unknown): 0.X.X

Additional information you deem important (e.g. issue happens only occasionally):

flogo build fails

System: macOS. go version go1.8.1 darwin/amd64

When running flogo build without -sp the following error occurs. The build succeeds when running with -sp.

Matts-MacBook-Pro:deviceinfo mellis$ flogo build
panic: invalid argument

goroutine 1 [running]:
github.com/TIBCOSoftware/flogo-cli/util.RenderTemplate(0x1498400, 0x0, 0x13538f1, 0x4d, 0x12ccfa0, 0xc420179c20)
/Users/mellis/go/src/github.com/TIBCOSoftware/flogo-cli/util/text.go:36 +0x22d
github.com/TIBCOSoftware/flogo-cli/app.createImportsGoFile(0xc420012ec0, 0x37, 0xc4201790a0, 0x4, 0x4)
/Users/mellis/go/src/github.com/TIBCOSoftware/flogo-cli/app/files.go:133 +0x123
github.com/TIBCOSoftware/flogo-cli/app.PrepareApp(0x149ebe0, 0xc420018300, 0xc4200c65e0, 0x0, 0x0)
/Users/mellis/go/src/github.com/TIBCOSoftware/flogo-cli/app/api.go:141 +0x306
github.com/TIBCOSoftware/flogo-cli/app.BuildApp(0x149ebe0, 0xc420018300, 0xc42004de10, 0xc420018300, 0x2)
/Users/mellis/go/src/github.com/TIBCOSoftware/flogo-cli/app/api.go:166 +0x21d
github.com/TIBCOSoftware/flogo-cli/app.(*cmdBuild).Exec(0xc420011110, 0xc42000c220, 0x0, 0x0, 0x0, 0x0)
/Users/mellis/go/src/github.com/TIBCOSoftware/flogo-cli/app/build.go:58 +0xf2
github.com/TIBCOSoftware/flogo-cli/cli.ExecCommand(0xc4200182a0, 0x149be40, 0xc420011110, 0xc42000c220, 0x0, 0x0, 0x0, 0x13444e8)
/Users/mellis/go/src/github.com/TIBCOSoftware/flogo-cli/cli/command.go:114 +0xa9
main.main()
/Users/mellis/go/src/github.com/TIBCOSoftware/flogo-cli/cmd/flogo/main.go:42 +0x122

GOPATH incorrect

I'm submitting a ... (check one with "x")

[x] bug report => search github for a similar issue or PR before submitting
[] enhancement request
[] feature request
[] support request
[] general question

Current behavior (how does the issue manifest):
The code adds an additional GOPATH entry to cmd and under certain circumstances it does not work

Expected behavior:
Only one GOPATH entry in the env when running "cmd"

Minimal steps to reproduce the problem (not required if feature enhancement):

What is the motivation / use case for changing the behavior?

Please tell us about your environment (Operating system, docker version, browser & verison if webui, etc):

Flogo version (CLI & contrib/lib. If unknown, leave empty or state unknown): 0.X.X

Additional information you deem important (e.g. issue happens only occasionally):

Ability to specify the version of activity/trigger on "flogo add" during engine creation and operations

When flogo create or add issued , the cli does go get from github and it will pick the latest code which is uncontrolled from a build perspective.

On the "add" it is possible to partially address it by supporting "@Version" for example flogo add activity github.com/.../[email protected], but it is not possible to control the versions of that activity's dependencies at the moment. Dave Cheney(creator of gb) has been concerning this, and gb is working on adding support for this. Hopefully Go can figure out some basic dependency management in the near future.

For the create we can also add a "-libVersion" or something to allow you to specify the specific version of flogo-lib

Cleanup the shim code

Clean up the shim build code. Specifically the ensure and regeneration of metadata

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.