Skip to content

Conversation

@shawn-hurley
Copy link
Contributor

@shawn-hurley shawn-hurley commented Apr 13, 2025

@shawn-hurley shawn-hurley force-pushed the feature/add-pipe-connection branch from fcb4d4f to 4ff1546 Compare April 14, 2025 16:15
@shawn-hurley shawn-hurley marked this pull request as ready for review April 14, 2025 18:56
@shawn-hurley shawn-hurley force-pushed the feature/add-pipe-connection branch 2 times, most recently from c1d222d to fdb94fd Compare April 16, 2025 16:56
@shawn-hurley shawn-hurley force-pushed the feature/add-pipe-connection branch from 5047c15 to 5cbbd80 Compare April 16, 2025 19:23
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.")
Copy link
Contributor

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))
Copy link
Contributor

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)
Copy link
Contributor

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)
Copy link
Contributor

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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

Copy link
Contributor

@pranavgaikwad pranavgaikwad left a 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

Copy link
Member

@djzager djzager left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK

@pranavgaikwad pranavgaikwad merged commit 92d5c11 into konveyor:main Apr 30, 2025
13 checks passed
djzager added a commit to konveyor/editor-extensions that referenced this pull request May 1, 2025
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants