-
Notifications
You must be signed in to change notification settings - Fork 540
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
Auto Build breaks if files get changed externally #2053
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Sorry, I was busy last week, but now I had time to reproduce the behaviour. With this setup the test is performed like this:
I can reproduce that behaviour using macOS or windows, I havn't tested in a linux environment. LaTeX Workshot log output of the described test:
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Set |
Well, I believe this is related to paulmillr/chokidar#237 The issue is that Adding this.fileWatcher.on('raw', (type, _filename, details) => {
if (type === 'rename') {
this.fileWatcher?.unwatch(details.watchedPath)
this.fileWatcher?.add(details.watchedPath)
}
}) seems to fix everything. |
I am not sure whether the code works fine on all the platforms. The word, |
I also fear this. I had the impression that using polling was a kind of last resort but if it works, let us just leave it like this. Maybe we could ask the chokidar guys if they have a suggestion. |
Is your feature request related to a problem? Please describe.
I'm working on a multi-file LaTex document and my LaTeX sources are managed in a git repository with multiple branches.
When I switch the git branch, some latex files get changed in the filesystem externally (by git). This unfortunately breaks the auto build feature of Latex Workshop, it is not triggered any more. When I close VS Code and reopen it and everything works fine again.
Describe the solution you'd like
I'd like auto build to automatically detect file changes, additions, deletions, etc. that are caused externally.
Alternatively a key-board shortcut for manually reinitializing the auto build file-watcher / latex workshop would work as well.
The text was updated successfully, but these errors were encountered: