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

watchTriggers doesn't work as expected. #7130

Open
visortelle opened this issue Jan 13, 2023 · 0 comments
Open

watchTriggers doesn't work as expected. #7130

visortelle opened this issue Jan 13, 2023 · 0 comments
Labels

Comments

@visortelle
Copy link

visortelle commented Jan 13, 2023

I use ~ operator to restart my app automatically during development.

I want to exclude my src/main/resources directory from the watch.

I would expect that setting watchTriggers := Seq(baseDirectory.value.toGlob / "*.scala") // (or something like it) as it noted in the documentation would solve my problem. But ~ still triggers a restart if some js/css file is changed in the src/main/resources directory.

[debug] Received event for path /Users/myuser/projects/project-x/server/src/main/resources/ui/static/dist/entrypoint.js
[debug] Received event for path /Users/myuser/projects/project-x/server/src/main/resources/ui/static/dist/entrypoint.js.map
[debug] Received event for path /Users/myuser/projects/project-x/server/src/main/resources/ui/static/dist/entrypoint.js
[debug] root / reStart - Accepted event for /Users/myuser/projects/project-x/server/src/main/resources/ui/static/dist/entrypoint.js.map
[debug] Received Update(/Users/myuser/projects/project-x/server/src/main/resources/ui/static/dist/entrypoint.js.map,FileAttributes(isDirectory = false, isOther = false,isRegularFile = true, isSymbolicLink = false),FileAttributes(isDirectory = false, isOther = false,isRegularFile = true, isSymbolicLink = false))
[debug] root / reStart - Accepted event for /Users/myuser/projects/project-x/server/src/main/resources/ui/static/dist/entrypoint.js
[debug] Received Update(/Users/myuser/projects/project-x/server/src/main/resources/ui/static/dist/entrypoint.js,FileAttributes(isDirectory = false, isOther = false,isRegularFile = true, isSymbolicLink = false),FileAttributes(isDirectory = false, isOther = false,isRegularFile = true, isSymbolicLink = false))
[debug] Creating update event for modified /Users/myuser/projects/project-x/server/src/main/resources/ui/static/dist/entrypoint.js.map (previous stamp: Hash(farm(13713587051bb496)), current stamp: Hash(farm(548334929fffafa9)))
[debug] Creating update event for modified /Users/myuser/projects/project-x/server/src/main/resources/ui/static/dist/entrypoint.js (previous stamp: Hash(farm(25f86e8a4c758909)), current stamp: Hash(farm(c5706fc30c3d281f)))
[debug] Received file event actions: /Users/myuser/projects/project-x/server/src/main/resources/ui/static/dist/entrypoint.js.map -> Trigger, /Users/myuser/projects/project-x/server/src/main/resources/ui/static/dist/entrypoint.js -> Trigger. Returning: (Update(/Users/myuser/projects/project-x/server/src/main/resources/ui/static/dist/entrypoint.js.map, 2023-Jan-13 10:12:36.682 CET),Trigger)
[info] Build triggered by /Users/myuser/projects/project-x/server/src/main/resources/ui/static/dist/entrypoint.js.map. Running 'reStart'.

By setting watchTriggers := Seq(), I would expect that restart won't trigger at all, but it still triggers.

sbt version - 1.8.2

@visortelle visortelle added the Bug label Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant