Skip to content

Adding starpls. WIP - #14

Closed
MaximilianSoerenPollak wants to merge 1 commit into
mainfrom
MSP_add_starpls
Closed

MaximilianSoerenPollak wants to merge 1 commit into
mainfrom
MSP_add_starpls

Conversation

@MaximilianSoerenPollak

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread starpls/README.md
starpls/
├── BUILD
├── MODULE.bazel
├── MODULE.bazel.lock

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

remove

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ahh good eye.
Will do so.

I think some files have some comments as well that should be removed.

Comment thread starpls/README.md
├── integration_tests
│   ├── BUILD
│   ├── MODULE.bazel
│   ├── MODULE.bazel.lock

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

remove

Comment thread starpls/starpls.bzl
Comment on lines +37 to +62
# load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
#
# def _starpls_binary_impl(ctx):
# """Implementation of the starpls_binary rule."""
# # Download the binary
# ctx.download(
# url = "https://github.com/withered-magic/starpls/releases/download/0.1.21/starpls-linux-amd64",
# output = "starpls",
# executable = True,
# sha256 = "45692ecb9d94a19a15b1e7b240acdff5702f78cd22188dac41e1879cb8bdcdcf",
# )
#
# # Create a BUILD file that exposes the binary
# ctx.file("BUILD.bazel", """
# load("@rules_shell//shell:sh_binary.bzl", "sh_binary")
#
# sh_binary(
# name = "starpls",
# srcs = ["starpls"],
# visibility = ["//visibility:public"],
# )
# """)
#
# starpls_binary = rule(
# implementation = _starpls_binary_impl,
# )

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Remove, no longer needed.

Comment on lines +30 to +33
local_path_override(
module_name = "score_starpls",
path = "../"
)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@dcalavrezo-qorix should this be removed once the tool is in the bazel registry?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

yes

@@ -0,0 +1,88 @@
import subprocess

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

As starpls is a language sever, testing here if it can recieve and send language server signals with the expected outcome.

@@ -0,0 +1,8 @@
def my_rule():

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Make it golden file input/output

@MaximilianSoerenPollak

Copy link
Copy Markdown
Contributor Author

Has been merged by #24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants