-
-
Notifications
You must be signed in to change notification settings - Fork 12.1k
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
ltex-ls 15.2.0 (new formula) #95817
ltex-ls 15.2.0 (new formula) #95817
Conversation
b878174
to
120ce1c
Compare
CI raises the following error: Error: Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:3.0.0:run (add-ltex-cli) on project ltexls: An Ant BuildException has occured: Execute failed: java.io.IOException: Cannot run program "python" (in directory "/tmp/ltex-ls-20220225-20481-8duwhb/ltex-ls-15.2.0"): error=2, No such file or directory
Error: around Ant part ...<exec executable="python">... @ 4:31 in /tmp/ltex-ls-20220225-20481-8duwhb/ltex-ls-15.2.0/target/antrun/build-main.xml
Error: -> [Help 1] However, I'm not able to reproduce it in my local machine as the formula builds with no problem. |
Formula/ltex-ls.rb
Outdated
depends_on "openjdk@11" | ||
|
||
def install | ||
ENV["JAVA_HOME"] = Formula["openjdk@11"].opt_prefix |
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.
it seems this relies on a python
executable being available: https://github.com/valentjn/ltex-ls/blob/4954220ebd34df6c032ca646fd9bab5bb4d8231e/pom.xml#L376
we can add one to PATH
:
ENV["JAVA_HOME"] = Formula["openjdk@11"].opt_prefix | |
ENV.prepend_path "PATH", Formula["python@3.9"].opt_libexec/"bin" | |
ENV["JAVA_HOME"] = Formula["openjdk@11"].opt_prefix |
Formula/ltex-ls.rb
Outdated
head "https://github.com/valentjn/ltex-ls.git", branch: "develop" | ||
|
||
depends_on "maven" => :build | ||
depends_on "python@3.9" => :build |
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.
can this use python@3.10
?
depends_on "python@3.9" => :build | |
depends_on "python@3.10" => :build |
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.
Thanks for your suggestion, they were very illuminating. I've implemented them. Let's see whether CI passes now.
120ce1c
to
f4d5cd1
Compare
f4d5cd1
to
d2b7e92
Compare
The problem with the new build is that the command system Formula["python@3.10"].bin/"python3", "-u", "tools/createCompletionLists.py" Attempt to write completion lists in a temporary folder which is then unwrittable in CI. The source code is here Invalid argument: Path is not writable: /var/folders/07/mmpkd6_x7fvbpl_msv10c7fh0000gp/T Since the completion lists fail to write, the maven unit test that requires it then fails. I'm not sure if the completion lists are required for the application to work or it's only temporarily created for the unit tests. In any case, I am pushing a build that does not execute the tests. Let's see how it does. |
7e4fb35
to
7182fb4
Compare
It turns out the completion list is necessary, but I figure out that by changing the environment variable |
4faff1b
to
fe555fe
Compare
The problem in CI seems to be unrelated with the build process: Error: ltex-ls: no bottle available!
You can try to install from source with:
brew install --build-from-source ltex-ls
Please note building from source is unsupported. You will encounter build
failures with some formulae. If you experience any issues please create pull
requests instead of asking for help on Homebrew's GitHub, Twitter or any other
official channels. I'm not sure how to overcome this. Any help would be appreciated. |
The two CI processes fail because there is no bottle available. How can I create a bottle @branchvincent? |
hmm, this is a confusing error but the reason is that |
853d7a8
to
939ad3f
Compare
@branchvincent thanks for your comment. It was super helpful. I've made the modifications and the formula can build with |
It's trying to write outside of the install prefix |
I forgot to fix |
39c7d20
to
1b22a5a
Compare
I'm just wondering if there is any expectation for review of this PR? |
Co-authored-by: Sean Molenaar <SMillerDev@users.noreply.github.com>
Co-authored-by: Sean Molenaar <SMillerDev@users.noreply.github.com>
Thanks for revision! I closed the issue by mistake (the page refreshed with the mouse right on top of the close button :( ) and then re-opened. |
Co-authored-by: Sean Molenaar <SMillerDev@users.noreply.github.com>
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.
Thanks @gzagatti ! Without contributions like yours it'd be impossible to keep homebrew going with the high standards that users have come to expect from the project. You can feel good knowing that you've made the world a tiny bit better for homebrew users around the world! 👍 🎉
That's great news! Thanks for taking the time of reviewing the new formula and for maintaining Homebrew for the benefit of all. This is one piece of software that has followed me through my whole computer journey. |
brew install --build-from-source <formula>
, where<formula>
is the name of the formula you're submitting?brew test <formula>
, where<formula>
is the name of the formula you're submitting?brew audit --strict <formula>
(after doingbrew install --build-from-source <formula>
)? If this is a new formula, does it passbrew audit --new <formula>
?