spring-cloud-dataflow-ui icon indicating copy to clipboard operation
spring-cloud-dataflow-ui copied to clipboard

Code-assist doesn't work on existing DSL definitions

Open sabbyanandan opened this issue 5 years ago • 2 comments

As a user, I created the following stream definitions by copy+pasting it in the textual DSL section; however, on ctrl+tab over the DSL portion for an app, I don't see any code-assist results, and a part of the stream definition vanishes.

  1. Original:

image

  1. Now, hit ctrl+tab on the 2nd stream after the transform app — nothing happens. No dropdown with options to select:

image

  1. Now, hit ctrl+tab on the 2nd stream after the transform next to the --, then it breaks the stream definitions.

image

sabbyanandan avatar Jan 14 '20 16:01 sabbyanandan

FWIW, I see this error on the backend when the operation failed:

2020-01-14 08:32:50.456 ERROR 18588 --- [nio-9393-exec-3] o.s.c.d.s.c.RestControllerAdvice         : Caught exception while handling a request

java.lang.IllegalArgumentException: did not tigger after dash-dash
	at org.springframework.util.Assert.isTrue(Assert.java:118)

sabbyanandan avatar Jan 14 '20 17:01 sabbyanandan

There doesn't seem to be any CA supported for minutes and seconds streams... I do see the exception above but no text is inserted by the CA... Looks like with channels CA isn't supported... I couldn't get it to insert garbage text though. @sabbyanandan I'd say we should fix this on the server side as CA for channel case DSL isn't working... you'd probably get the same in the shell...

BoykoAlex avatar Jan 14 '20 18:01 BoykoAlex