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

Reports all time as "building" when running npm start #305

Closed
Maxim-Mazurok opened this issue Sep 27, 2022 · 5 comments
Closed

Reports all time as "building" when running npm start #305

Maxim-Mazurok opened this issue Sep 27, 2022 · 5 comments

Comments

@Maxim-Mazurok
Copy link

I have a typical use-case for npm start - it runs vue-cli-service serve which automatically rebuilds the project and serves it.
This is an infinitely-running task. So it reports all the time as "building", which isn't correct. I write code, it re-compiles, I check the result, and go back to code.
I do realize that this plugin probably has no way of knowing if I'm waiting for build to finish or just running the server script.
Probably the easiest thing to do would be to check if the code editor is active and/or if the terminal is shown/hidden. However, these are pretty weak indicators...
The best solution would be to somehow integrate with vue-cli-service...
For now, as a workaround, I'll probably resort to running npm start manually in the terminal instead of using npm scripts feature of VS Code.

@GlutenBoy
Copy link

I have the same problem running my API (dotnet run --watch) and running vite continually in VS Code terminals. Wakatime reports 99% of building time instead of coding. Maybe there's a work around, but I didn't find anything useful in the documentation.

@Jaeiya
Copy link

Jaeiya commented Feb 1, 2023

I have the same problem. I use the built-in build task for watching my typescript file changes and waka time reports basically an infinite build time if I leave my vscode running in the background. Makes this extension worthless to me.

Uninstalling until this issue is addressed. I'm actually surprised more people aren't reporting this. I would imagine that a large amount of projects use some kind of automated build/transpiling task.

@alanhamlett
Copy link
Member

Would a config in your ~/.wakatime.cfg file to disable tracking builds fix it for you?

@alanhamlett
Copy link
Member

Possibly fixed with 02a4eaa. I'll comment here after the next plugin release when it's ready to test.

@alanhamlett
Copy link
Member

Released with v24.0.0.

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

4 participants