https://linen.dev logo
c

charles

05/20/2021, 10:01 PM
Does anyone else have trouble getting the build to reliably create new images on their local machine? My workflow:
Copy code
* make a change in some core module, e.g. add a print statement in the server
* ./gradlew :composeBuild
* VERSION=dev docker-compose up -V
* expect print statement to fire
I would expect the print statement to run, but this isn't reliably happening in this workflow. It seems like there's some series of steps I need to run to get it to pick up changes. Still trying to figure out what the exact steps are (maybe includes
./gradlew clean
). Anyone else experiencing similar?
u

user

05/20/2021, 10:02 PM
this problem is getting expensive for me, because every time i run into it, i auto lose like 30-45 min of dev time.
u

user

05/20/2021, 10:22 PM
I tried this and the print statement worked without ./`gradlew clean`.
u

user

05/20/2021, 10:24 PM
Where exactly did you add the print statement? I added the statement in
ServerApp.java
by the way.
u

user

05/20/2021, 10:25 PM
line 181 of ServerApp.java
u

user

05/20/2021, 10:25 PM
first line in the main method.
u

user

05/20/2021, 10:33 PM
Adding the line in line 181 also works for me. No idea what is the root cause. Is it possible that you are running another server in the background already?
u

user

05/20/2021, 10:33 PM
nah. this has happened a few times now.
u

user

05/20/2021, 10:33 PM
my hunch is that something in gradle or docker is getting cached sometimes.
u

user

05/20/2021, 10:34 PM
i just gotta figure out what 🙃
u

user

05/20/2021, 10:45 PM
Is the workflow you posted complete?
u

user

05/20/2021, 10:46 PM
or do you also run
docker-compose down
u

user

05/20/2021, 10:46 PM
i generally just run airbyte in non detached mode.
u

user

05/20/2021, 10:46 PM
so i just kill the process
u

user

05/20/2021, 10:46 PM
and then start again
u

user

05/20/2021, 10:47 PM
(unless i need to clear out airbyte docker volumes)
u

user

06/03/2021, 12:35 PM
I just ran into this too
u

user

06/03/2021, 12:46 PM
how did you fix this charles?
u

user

06/03/2021, 4:08 PM
i think it's restarting docker that fix this for me.
u

user

06/03/2021, 4:08 PM
i don't think ./gradlew clean did it in this cas.e
u

user

06/04/2021, 12:02 AM
I had to restart my computer
4 Views