Thanks, sorry.Only 1 is correct. Example - I intended to write you a private message quietdandelion on the subject of incessantly changing your threads but I then I thought better of it.
All the native English speakers seem to be against this rule.
# 1 is fine. So is a variant on it:1. I intended to call on you last night, but it rained.
2. I intended to have called on you last night, but it rained.