question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

build is triggered multiple times when editing library code

See original GitHub issue

Unisay: I have a problem with plugin, and I suspect it wasn’t there before. And here it is: if my project not in the state when it could be build without errors (say, stack build runs fine) then plugin says “Haskell support is not available when Stack repl is not running” and then for any change in project files it re-tries to build it and fails. And because it does it for every change (I edited 1 character) it makes it harder to bring project back to the buildable state because it slows down IDE by continuously re-building it and failing. What I expect it to do is not to re-trigger build automatically (on change) but rather let me first fix it and then press “compile” button ☝️ 17. August 2017 17:31

rikvdkleij: So what I want to make clear, fixing library code would not trigger rebuild. Only when you navigate to test, exe or benchmark code. If you are experience also rebuilds in library code, it is a bug and I need some example project to reproduce this issue ☝️ 18. August 2017 11:12

I experienced the same issue in my project. A moment after I edit one of my library files in the src directory a rebuild is triggered. If I wait a few seconds and edit again another rebuild is triggered even though the previous build might still be running. This can be done multiple times. Once I had 12 processes running at the same time. I don’t have this issue when I edit my exe main file.


Linux Stack 1.5.0 Intellij-Haskell 1.0.0-beta10 Intellij IDEA 2017.2.2

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
maiermiccommented, Sep 14, 2017

@rikvdkleij When I tried it before, I somehow managed to trigger the start of multiple processes. However, it didn’t happen on the first tries. I’m not sure if they were build processes. I tried to reproduce the issue again to check it, but I didn’t trigger any unexpected processes this time. I would say the main issue is fixed and you can do a regular release/upload. If I run into the problem again, I will reopen the issue again and add more details. Thanks for your efforts 👍

0reactions
rikvdkleijcommented, Sep 14, 2017

@maiermic Thanks for testing!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Creating and managing build triggers - Google Cloud
A Cloud Build trigger automatically starts a build whenever you make any changes to your source code. You can configure the trigger to...
Read more >
Configure pipeline triggers - Azure - Microsoft Learn
If the two pipelines are in different repositories, the triggered pipeline version in the branch specified by Default branch for manual and ...
Read more >
Configuring Retry Build Triggers - TeamCity On-Premises
Triggering Settings​​ Specify how many times the trigger will try to rerun the failing build. Leave blank to retry unlimited times until the...
Read more >
Edit AWS CodeBuild triggers
Edit AWS CodeBuild triggers (console) You can edit a trigger on a project to schedule a build once every hour, day, or week....
Read more >
Repository triggers the build when changes are committed
See Triggering a Bamboo build from Bitbucket Cloud using Webhooks. 1. Configuring your source repository. Configure your source code management ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found