I don't really understand how I solve ii) in the problem linked. I'm quite sure that it involves splitting up the integral in i) to parts over $C_R$ and $[-R,R]$, but I don't know how to solve the latter. Since it's just along the real axis, I can take the real part of the integral and get $$\int_{-R}^{R}\frac{e^{i\pi x}}{x^2+2x+2}dx.$$
Taking the limit as $R \rightarrow \infty$ (if what I'm thinking is correct) should give me the same answer as i), but I'm not sure how to evaluate this integral.
Thanks.