papyrus-lang icon indicating copy to clipboard operation
papyrus-lang copied to clipboard

Symbol display texts are incomplete

Open joelday opened this issue 6 years ago • 6 comments
trafficstars

Non-native flags are not appended to symbol display texts.

joelday avatar Mar 21 '19 01:03 joelday

What do you mean with this? I can help you with issues. Give me an example of your problem.

minkir014 avatar May 09 '19 20:05 minkir014

Anything that is not native to the language itself, but is only declared in the flags file, is filtered out of the AST by the compiler, so the only way to get those is to look at the neighboring text. Unfortunately a lot of text ranges get mangled by the ANTLR generated parser, so it's not super straightforward.

As far as "display text" is concerned, this is used by Hover support to show a textual representation of the symbol that is generated from the semantic information rather than the actual text from the original definition of the symbol as a matter of consistency.

joelday avatar May 10 '19 00:05 joelday

You said by the compiler. If so, this is not your problem. But if you mean the parser, so you can make it understand non native declaration by adding it to symbols.

minkir014 avatar May 10 '19 08:05 minkir014

@minkir014 Sorry, yeah, what I'm really referring to is "PCompiler.dll" in its entirety.

joelday avatar May 10 '19 16:05 joelday

Did you made that or it is installed with the compiler?? I mean PCompiler.dll

minkir014 avatar May 10 '19 21:05 minkir014

I searched for it on nexus site and found it your provider to the extension provider. It must be an issue in it not in your extension. You can find another provider.

minkir014 avatar May 11 '19 11:05 minkir014