Question: I updated Spyder to the version 5 on Linux Mint 20.
The outline panel won't show modules, code cells etc. It used to work with Spyder4. Spyder3 shows outlines of the same scripts. Do you know how resolve this?

Thank you in advance

Answer: 
I had the same problem, outline showed no structure.

Spyder 5 was being really slow as I was editing. I worked out it was the completion and linting churning away as I was typing so I started turning features off. I turned it all off and the outline stopped working. So I resent and went about turning things off systematically.

Finally got a responsive Spyder and outline workign with just "Enable basic linting" and "Enable code completion and basic linting in the editor" turned on
There were already bugfixing attempts going on at [GitHub](https://github.com/spyder-ide/spyder/issues/15139)
and it seemed as if the root cause had been on Kite and the problem resolved on Spyder v5.0.2. Whereas in my understanding it came back in v5.0.3 in which I also experienced it.

Downgrading Spyder to v4.2.5 via

`conda install spyder=4.2.5`

helped in my case.