LiveRamp / reslang

A language for describing resource-oriented APIs & turning them into Swagger or resource diagrams. Oriented around the concepts we want to expose in the APIs.
Apache License 2.0
23 stars 7 forks source link

Reslang Container Errors #79

Closed njaczko closed 4 years ago

njaczko commented 4 years ago

The Reslang container always prints errors, even if the same Reslang command works fine with the uncontainerized ./reslang script. It also warns about absolute paths even if an absolute path is provided.

Here's the output when I use the container:

$ ./reslang-docker.sh /Users/njaczk/code/reslang/models/direct2dist > foo.yaml
This only accepts absolute paths e.g. /User/a/b/models/
Reslang files to read: /Users/njaczk/code/reslang/models/direct2dist
/app/reslang/direct2dist
Reslang error:  Both xsel and fallback failed
$

And the same command uncontainerized:

$ ./reslang /Users/njaczk/code/reslang/models/direct2dist --stdout > bar.yaml
$

The container errors seem to be false positives. The OpenAPI output is the same from the containerized and uncontainerized scripts.

cjea commented 4 years ago

Reslang error: Both xsel and fallback failed

That is because it tries accessing the clipboard (https://github.com/LiveRamp/reslang/issues/82)