question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bazel Language Server : Depend on the Bazel Starlark source code

See original GitHub issue

Description of the problem / feature request:

Hello!

A few of my friends and I are working on developing a language server for bazel, built in java, for our university capstone project. We would like to use the java implementation of the starlark parser provided in this repo at the following location:

src/main/java/net/starlark/java/**/*.java

Our project is built using bazel, however we are unable to import these source files because many of them are marked as private. My question is, how would we best go about depending on these source files? Is this possible?

Thanks in advance for any help 😃

Feature requests: what underlying problem are you trying to solve with this feature?

Being able to depend on and use the bazel implementation of starlark so we can develop a language server that is consistent with the Bazel build system.

What operating system are you running Bazel on?

Linux

What’s the output of bazel info release?

release 3.7.1

What’s the output of git remote get-url origin ; git rev-parse master ; git rev-parse HEAD ?

git@github.com:bazelbuild/bazel.git 3c685b6d2d34cd24450c11a902f1abfc3716d093 3c685b6d2d34cd24450c11a902f1abfc3716d093

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:18 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
alandonovancommented, Dec 16, 2020

could we reach out to you both in the future with any starlark/bazel specific questions as they come up?

Of course. Good luck!

0reactions
josiahsrccommented, Jan 25, 2021

When we started this project, we weren’t very familiar with the Bazel ecosystem, language server protocol, or the different implementations of Starlark. We thought it best to use java for the language server for a few reasons.

We’re not needlessly trying to use Java. We picked it because, to the best of our knowledge, it would integrate well with Bazel. Given that you both don’t like the idea of a Java language server, I could speak with my team about switching to Go. Again, we want to build this to be used by the community, so we’re open to switching our design to what would work best. Switching would, of course, slow us down quite a bit because we would have to translate all of our existing code and infrastructure to Go.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Depend on the Bazel Starlark source code - Google Groups
Hello! A few of my friends and I are working on developing a language server for bazel, built in java, for our university...
Read more >
Starlark Language - Bazel
This page is an overview of Starlark, formerly known as Skylark, the language used in Bazel. For a complete list of functions and...
Read more >
bazel-stack-vscode - Visual Studio Marketplace
Extension for Visual Studio Code - Bazel Support for Visual Studio Code. ... The starlark language server provides LSP support for the bazel...
Read more >
Building with Bazel, Episode 7: Learn Starlark - Kodeco
Meet the Starlark language that you'll use to write your workspaces and build files. This episode will give you an overview of it....
Read more >
What's New in Bazel 5.0 - BuildBuddy
BuildBuddy provides enterprise features for Bazel — the open source build system that allows you to build and test software 10x faster.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found