Skip to content
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

✨ Generic Provider #266

Merged
merged 13 commits into from
Aug 3, 2023
Merged

✨ Generic Provider #266

merged 13 commits into from
Aug 3, 2023

Conversation

Chanakya-TS
Copy link
Contributor

@Chanakya-TS Chanakya-TS commented Jul 19, 2023

A generic provider that can be used to create an external provider for any language that is compliant with LSP 3.17 specifications.

Adds go provider that is initialized using the generic provider binary.

@Chanakya-TS Chanakya-TS changed the title ❇️ generic provider ✨ generic provider Jul 19, 2023
demo-output.yaml Outdated Show resolved Hide resolved
external-providers/golang-dependency-provider/main.go Outdated Show resolved Hide resolved
external-providers/golang-dependency-provider/main.go Outdated Show resolved Hide resolved
Signed-off-by: Chanakya Thirumala Setty <[email protected]>
@Chanakya-TS Chanakya-TS marked this pull request as ready for review July 24, 2023 17:11
Signed-off-by: Chanakya Thirumala Setty <[email protected]>
Signed-off-by: Chanakya Thirumala Setty <[email protected]>
Signed-off-by: Chanakya Thirumala Setty <[email protected]>
@Chanakya-TS Chanakya-TS changed the title ✨ generic provider ✨ Generic Provider Jul 24, 2023
Copy link
Contributor

@fabianvf fabianvf left a comment

Choose a reason for hiding this comment

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

I think you'll also want to remove the now-unused golang provider code

Signed-off-by: Chanakya Thirumala Setty <[email protected]>
Signed-off-by: Chanakya Thirumala Setty <[email protected]>
Signed-off-by: Chanakya Thirumala Setty <[email protected]>
Signed-off-by: Chanakya Thirumala Setty <[email protected]>
Signed-off-by: Chanakya Thirumala Setty <[email protected]>
demo.Dockerfile Outdated Show resolved Hide resolved
docs/providers.md Outdated Show resolved Hide resolved
…ncorrect copying, updated documentation

Signed-off-by: Chanakya Thirumala Setty <[email protected]>
Copy link
Contributor

@fabianvf fabianvf left a comment

Choose a reason for hiding this comment

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

nice!

@pranavgaikwad pranavgaikwad self-requested a review August 2, 2023 15:57
pip install jedi-langauge-server
```

It will be installed in `/home/<user_name>/.local/bin/jedi-language-server`
Copy link
Contributor

Choose a reason for hiding this comment

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

you could also add the example config/sample main.py/example rule just for the sake of completeness

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.

looks good overall, small concern

return nil, nil
}
m := map[uri.URI][]*provider.Dep{}
json.Unmarshal([]byte(data), &m)
Copy link
Contributor

Choose a reason for hiding this comment

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

Handle unmarshal error

Copy link
Contributor

Choose a reason for hiding this comment

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

nice catch

Signed-off-by: Chanakya Thirumala Setty <[email protected]>
Signed-off-by: Chanakya Thirumala Setty <[email protected]>
}

m := map[uri.URI][]*provider.Dep{}
for u, d := range ll {
m[u] = provider.ConvertDagItemsToList(d)
}

return m, err
jsonStr, err := json.Marshal(m)
Copy link
Contributor

Choose a reason for hiding this comment

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

why not yaml?

Copy link
Contributor

Choose a reason for hiding this comment

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

okay, ignore above, just spoke with Fabian

@fabianvf fabianvf merged commit 8b9d2f6 into konveyor:main Aug 3, 2023
6 checks passed
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