I am trying to draw an arrowhead inside a curved path named uu that is crossed by a vertical line named vert, and two nodes placed at the intersections of these two paths. Here is my minimal example:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{intersections,decorations.markings}
\tikzset{->-/.style={decoration={
markings,
mark=at position #1 with {\arrow{>}}},
postaction={decorate}}
}
\begin{document}
\begin{tikzpicture}
\path[draw, name path=vert] (0,-1)--(0,1);
\path[draw, ->-=0.8, name path=uu] (-1,-0.7) to[out=0,in=-90] (0.3,0)
to[out=90,in=0] (-1,0.7);
\draw [name intersections={of=vert and uu}] (intersection-1) node {o};
\draw [name intersections={of=vert and uu}] (intersection-2) node {o};
\end{tikzpicture}
\end{document}
Compiling it produces the following error message:
! Package tikz Error: I do not know the path named `uu'. Perhaps you misspelt it.
The ->-=0.8 option in the uu path somehow kills the name uu. How can I solve this problem?

standalonedocument class your code throws no errors in overleaf! – Hafid Boukhoulda Jul 22 '19 at 14:19articleorstandalone, this doesn't matter. One gets the error messagePackage tikz Error: I do not know the path named \uu'. Perhaps you misspelt it.` – frougon Jul 22 '19 at 14:37