Then you have the additional elements that investments come in big lumps, and it is thus hard sometimes to finetune capacity - so you end up with excess capacity or looming shortages in alternance. It also means that licensing and permitting procedures, and local hostility can have a big impact on a given project and thus on the overall balance of the market.
And, as I wrote before, some technologies are more sensitive to financing costs than others, so pushing for pure "market" solutions is de facto a technology choice - that of coal and natural gas-fired plants vs wind or nuclear. In the long run, we're all dead. John Maynard Keynes