-
Notifications
You must be signed in to change notification settings - Fork 53
✨ Feature/add pipe connection #763
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨ Feature/add pipe connection #763
Conversation
7b4ae34 to
fcb4d4f
Compare
Signed-off-by: Shawn Hurley <[email protected]>
Signed-off-by: Shawn Hurley <[email protected]>
Signed-off-by: Shawn Hurley <[email protected]>
Signed-off-by: Shawn Hurley <[email protected]>
fcb4d4f to
4ff1546
Compare
Signed-off-by: Shawn Hurley <[email protected]>
Signed-off-by: Shawn Hurley <[email protected]>
Signed-off-by: Shawn Hurley <[email protected]>
Signed-off-by: Shawn Hurley <[email protected]>
Signed-off-by: Shawn Hurley <[email protected]>
c1d222d to
fdb94fd
Compare
Signed-off-by: Shawn Hurley <[email protected]>
Signed-off-by: Shawn Hurley <[email protected]>
5047c15 to
5cbbd80
Compare
| bundles := flag.String("bundles", "", "Comma separated list of path to java analyzer bundles") | ||
| depOpenSourceLabelsFile := flag.String("depOpenSourceLabelsFile", "", "Path to the dep open source labels file") | ||
| pipePath := flag.String("pipePath", "", "Path to the pipe to use for bi-directional communication") | ||
| logVerbosity := flag.Int("verbosity", -4, "how verbose would you like the logs to be, error logs are 8, warning logs are 4 info logs are 0 and debug logs are -4, going more negative gives more logs.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just FYI, I have another PR which uses levels strings, so that we can expose it directly in vscode config. This is fine for now. I will rebase my PR
| // Read implements io.ReadWriteCloser. | ||
| func (c Connection) Read(p []byte) (n int, err error) { | ||
| r, err := c.Input.Read(p) | ||
| c.Logger.Info("read from connection", "bytes read", r, "error", err, "bytes", string(p)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we should bump this level because we are already logging this in the codec
| p := extjava.NewJavaProvider(log, "java", contextLines, provider.Config{ | ||
| Name: "java", | ||
| }) | ||
| log.Info("logger", "v", p) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change text and bump level?
| p := extjava.NewJavaProvider(log, "java", contextLines, provider.Config{ | ||
| Name: "java", | ||
| }) | ||
| log.Info("logger", "v", p) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change text and bump level?
| p := extjava.NewJavaProvider(log, "java", contextLines, provider.Config{ | ||
| Name: "java", | ||
| }) | ||
| log.Info("logger", "v", p) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
pranavgaikwad
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ill address my comments after this is merged. They are minor
djzager
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK
Signed-off-by: Shawn Hurley <[email protected]> Needs: konveyor/kai#763 Fixes #471 Fixes #469 --------- Signed-off-by: Shawn Hurley <[email protected]> Signed-off-by: David Zager <[email protected]> Co-authored-by: Shawn Hurley <[email protected]> Co-authored-by: David Zager <[email protected]>
needs: konveyor/analyzer-lsp#815