\documentclass[tikz, border=1cm]{standalone}
\usetikzlibrary{intersections}
\begin{document}
%
\begin{tikzpicture}
\node[name=w, rectangle, fill=darkgray, minimum width=3mm, minimum height = 6cm]{};
\path[name path=wnw] (w.north west)--++(-6, 0);
\path[name path=wv] (w.west)--++(128:6);
\path [name intersections={of=wnw and wv, by={B}}];
\draw (w.west)--(B);
\end{tikzpicture}
%
\end{document}
Question
Why the below approach does not work? (I get "undefined node" error.)
\documentclass[tikz, border=1cm]{standalone}
\usetikzlibrary{intersections}
\begin{document}
%
\begin{tikzpicture}
\node[name=w, rectangle, fill=darkgray, minimum width=3mm, minimum height = 6cm]{};
\path[name path=wnw] (w.north west)--++(-6, 0);
\path[name path=wv] (w.west)--++(128:6);
\coordinate (B) at (intersection of wnw and wv);
\draw (w.west)--(B);
\end{tikzpicture}
%
\end{document}


intersectionlibrary andname path. (If you're interested, download the source from https://sourceforge.net/projects/pgf/files/pgf/version%202.00/, findpgfmanual.pdfindoc/generic/pgf/, and look in section 12.2.4.) I would think that it doesn't work because it's not intended to work, but I don't know anything about the implementation. – Torbjørn T. Aug 03 '17 at 19:57