It is a bug in gradle. If you look at the stack trace, it's clearly
just happily logging a missing output and returns null:

https://github.com/gradle/gradle/blob/v7.3.3/subprojects/platform-native/src/main/java/org/gradle/nativeplatform/toolchain/internal/msvcpp/version/CommandLineToolVersionLocator.java#L86-L89

which then propagates up as NPE in parseJson:

https://github.com/gradle/gradle/blob/v7.3.3/subprojects/platform-native/src/main/java/org/gradle/nativeplatform/toolchain/internal/msvcpp/version/CommandLineToolVersionLocator.java#L59-L60

I filed an issue here - https://github.com/gradle/gradle/issues/21993
- but I really don't have high hopes - my other issues pointing at
clear bugs have been pretty much ignored.

What's worse, I'm not even sure how to help you... you need to figure
out why that 'vswhere' script is returning an error on your machine.

Dawid

On Tue, Sep 13, 2022 at 9:21 PM Robert Muir <rcm...@gmail.com> wrote:
>
> Looks to me like a gradle bug, detecting and trying to run some visual
> studio command (vswhere.exe) elsewhere on your system, and it does the
> wrong thing parsing its output.
>
> On Tue, Sep 13, 2022 at 3:00 PM Rahul Goswami <rahul196...@gmail.com> wrote:
> >
> > Hi Dawid,
> > I believe you. Just that for some reason I have never been able to get it
> > to work on Windows. Also, being a complete newbie to gradle doesn't help
> > much. So would appreciate some help on this while I find my footing. Here
> > is the link to the diagnostics that you requested (since attachments/images
> > won't make it through):
> >
> > https://drive.google.com/file/d/15pt9Qt1H98gOvA5e0NrtY8YYHao0lgdM/view?usp=sharing
> >
> >
> > Thanks,
> > Rahul
> >
> > On Tue, Sep 13, 2022 at 1:18 PM Dawid Weiss <dawid.we...@gmail.com> wrote:
> >
> > > Hi Rahul,
> > >
> > > Well, that's weird.
> > >
> > > > "releases/lucene/9.2.0"  -> Run "gradlew help"
> > > >
> > > > If you need additional stacktrace or other diagnostics I am happy to
> > > > provide the same.
> > >
> > > Could you do the following:
> > >
> > > 1) run: git --version so that we're on the same page as to what the
> > > git version is (I don't think this matters),
> > > 2) run: gradlew help --stacktrace
> > >
> > > Step (2) should provide the exact place that fails. Something is
> > > definitely wrong because I'm on Windows and it works for me like a
> > > charm.
> > >
> > > Dawid
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
> > > For additional commands, e-mail: java-user-h...@lucene.apache.org
> > >
> > >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
> For additional commands, e-mail: java-user-h...@lucene.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to