-
Notifications
You must be signed in to change notification settings - Fork 45
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
✨ Generic Provider #266
Conversation
external-providers/generic-external-provider/pkg/generic/dependency.go
Outdated
Show resolved
Hide resolved
external-providers/generic-external-provider/pkg/generic/dependency.go
Outdated
Show resolved
Hide resolved
Signed-off-by: Chanakya Thirumala Setty <[email protected]>
9a96b4c
to
46a52cf
Compare
Signed-off-by: Chanakya Thirumala Setty <[email protected]>
Signed-off-by: Chanakya Thirumala Setty <[email protected]>
Signed-off-by: Chanakya Thirumala Setty <[email protected]>
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 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]>
external-providers/generic-external-provider/pkg/generic/provider.go
Outdated
Show resolved
Hide resolved
…ncorrect copying, updated documentation Signed-off-by: Chanakya Thirumala Setty <[email protected]>
7642680
to
1186c0e
Compare
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.
nice!
…rovider Signed-off-by: Chanakya Thirumala Setty <[email protected]>
docs/experimental/python-provider.md
Outdated
pip install jedi-langauge-server | ||
``` | ||
|
||
It will be installed in `/home/<user_name>/.local/bin/jedi-language-server` |
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.
you could also add the example config/sample main.py/example rule just for the sake of completeness
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.
looks good overall, small concern
return nil, nil | ||
} | ||
m := map[uri.URI][]*provider.Dep{} | ||
json.Unmarshal([]byte(data), &m) |
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.
Handle unmarshal error
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.
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) |
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.
why not yaml?
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.
okay, ignore above, just spoke with Fabian
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.