It seems like for whatever reason they just haven't been able to get off the drawing board and onto active service anywhere.
The barrel erosion issue and the fact that current tech dont seem able to get small enough pulsed power source (e.g super capacitor) Is the main technological barrier.
The pulsed power source is especially important and not much discussed. Railguns does not directly draw power from battery or generator, but from a power source that can rapidly unleash power in say milisecond or microsecond time, this is where capacitor or other source e.g homopolar generator or marx generator play. Those pulsed power source in return be charged with the generator.