andriyko / sublime-robot-framework-assistant

Robot Framework plugin for Sublime Text3
MIT License
109 stars 43 forks source link

Feature request: attribute auto-completion for variables #220

Open frostming opened 6 years ago

frostming commented 6 years ago

I wonder if it is possible to trigger auto-completion when user types "." inside a variable brace.

I am sorry to raise several requests this often but I have no time looking into the code base. I would be glad to donate, can you provide a donation link?

Thanks in advance.

aaltat commented 6 years ago

That I do not actually know. Plugin relies on Robot Framework API to parse test data and I think it only returns the variable names. The advanced variable syntax are in practice Python class instances. To know what attributes the class has, plugin would need to create such instances. But it's possible and I also think that it's common, to create advanced variables in such way that they require access to the Robot Framework running context. And trying to create the advanced variables without the Robot Framework running context would result in an error.

But as said, I am not sure about the matter. Also it might be possible to resolve the problem with different ways than the above assumption.