Skip to content
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

sync jars does not pick up changes made to file #30

Open
maxandersen opened this issue Jan 27, 2022 · 2 comments
Open

sync jars does not pick up changes made to file #30

maxandersen opened this issue Jan 27, 2022 · 2 comments

Comments

@maxandersen
Copy link
Contributor

I start with afile with:

//DEPS info.picocli:picocli:4.6.2
//FILES 5letterwords.txt
//JAVA 17

I run sync and get picocli in dependencies. Great!

if I then add dependency:

//DEPS info.picocli:picocli:4.6.2
//DEPS com.microsoft.playwright:playwright:1.18.0
//FILES 5letterwords.txt
//JAVA 17

and run sync again it keeps just adding picocli.

even delete all deps and it still add it.

so somehow it does not get dependencies correcly.

@maxandersen
Copy link
Contributor Author

p.s. restarting idea or reopen project sync works. So some kind of state is not updated right.

@maxandersen
Copy link
Contributor Author

found the culprit - jetbrains save on focus change thus if you don't click into another file or view the content of file is not changed thus when jbang runs it can't yet see the files changes.

We should ensure that the files being editr
are actually saved before trying to calculate dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant