Having this problem for a while now while using TexStudio:
I write a paper in TeXstudio and use the "Build & View" button, no problems, code works and example view appears on the right side.
However, as soon as I save my .tex-file, I can no longer watch the example view, nor will it create a .pdf.
When I look into the folder, there isn't even a .pdf-file there. When clicking on the error it brings me to a pgflibraryfadings.code.tex file, giving me a red line at:
\pgfdeclarehorizontalshading{pgf@lib@fade@east}{100bp}
{color(0bp)=(pgftransparent!0); color(25bp)=(pgftransparent!0);
color(75bp)=(pgftransparent!100); color(100bp)=(pgftransparent!100)}
Anyone got any ideas? This issue turned up out of nowhere and happens with literally every file I have.

(source: fbcdn.net)
As you can see the only error i get is about writing on the pdf, which is not opened at the time and actually does not exist: here is a picture of the folder:

(source: fbcdn.net)
cdto the folder containing the problematicdocument.texfile and runpdflatex document.tex, do you get a pdf? Any error messages? – Troy Jun 27 '18 at 17:59Alt+D, copy the folder path withCtrl+C. Open command prompt, typecd "<path>"including the quotes, where<path>should be replaced with the one you copied earlier. Click enter. Then typepdflatex document.texand pressEnter. – Troy Jun 27 '18 at 18:10