Hi everyone! I’m having some issues trying to set ...
# announcements
a
Hi everyone! I’m having some issues trying to set up a dev environment. as suggested by @Chris (deprecated profile) i am following this guide: https://docs.airbyte.io/contributing-to-airbyte/developing-locally When i do
./gradlew clean build
the build fails with error:
Copy code
> Task :spotlessStyling FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':spotlessStyling'.
> Running npm command 'npm install --no-audit --no-package-lock' failed with exit code: 254
My npm version is
6.14.10
c
which version of
node
do you have ?
a
node
v14.15.4
c
@Artem Astapenko maybe you would have an idea on how to investigate these npm errors?
a
Are there any errors or logs except the one above? I have quite the same versions of npm an node. Spotless is a plugin we use for styling of code - it is not about frontend
@Alberto Costa How is your npm installed? Nvm, locally or some other tool?
Also 1 more thing - what os are you using?
a
Hey @Artem Astapenko OS is Ubuntu 20.04, npm is already part of the distribution
a
Could you please print here all output for
./gradlew :spotlessStyling
?
a
Copy code
Starting a Gradle Daemon (subsequent builds will be faster)
/vagrant/airbyte/airbyte-integrations/connectors
> Task :spotlessStyling FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':spotlessStyling'.
> Running npm command 'npm install --no-audit --no-package-lock' failed with exit code: 254

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at <https://help.gradle.org>

BUILD FAILED in 21s
1 actionable task: 1 executed
a
yay, I expected to see more info in logs 🙂 Let me check few things
a
let me send you the output when i do
--degbug
👍 1
spotlessstyling.log
any clue on this? it is a big blocker 😕
a
I can’t give proper answer why it’s failing - according to debug logs it’s also not evident at all. The whole team will be available a bit later today and I am quite sure we will have better progress on this issue.
a
thank you Artem!
a
btw Alberto, if its sort of blocker - could you try just to disable those rule for now? I suppose it does nothing except of formatting code.
c
Actually today is a US holiday so they may not be active until tomorrow..
s
@Alberto Costa can you post the output of
./gradlew clean build --console verbose --stacktrace
?
j
Also, does running
npm install --no-audit --no-package-lock
directly in the
airbyte-webapp
directory work?
a
@Jared Rhizor (Airbyte) But spotless is not part of webapp. Do you just want to check if npm is working correctly for other parts?
j
I didn’t realize this was installing from spotless
a
Hey @Artem Astapenko , disabling the rules be totally fine for me if possible. I have zero experience with gradle, so i’m not entirely sure how to do that
c
you can try to run the
./gradlew
command but you add
-x spotlessStyling
for example to exclude the failiing task
since this is just to reformat the code, it shouldn't be a critical piece
it might still fail with another spotless task (parent/children that depends on it) but if you find the right one to exclude,.. (maybe something like
-x spotless
)
a
-x spotless won’t work as I remember - there is no such command
c
-x :spotlessCheck -x spotlessApply
?
👍 1
a
ah ok perfect! i’m going to try it now! thanks a lot guys! 🙌