NoteHighlight2016 icon indicating copy to clipboard operation
NoteHighlight2016 copied to clipboard

Exception from InsertHighLightCodeToCurrentSide

Open ghost opened this issue 7 years ago • 4 comments

Hello,

I get the following issue when highlighting the text: Schema.DescribeFieldResult dfr = Account.Description.getDescribe(); and clicking the "Java" button. It worked fine for the code above (as shown in image)

1

Kind Regards,

Sam

ghost avatar Feb 15 '18 10:02 ghost

Could you export that page and attach it, so I can analyze it further. In these cases it's usually some invisible character causing problems.

elvirbrk avatar Feb 15 '18 11:02 elvirbrk

Hi @elvirbrk

Please see attached.

3.1.5 - Obtaining Field Describe Results from Tokens.one.zip

It works when I click java and then input the text I want to highlight, but not when I highlight and click java.

ghost avatar Feb 15 '18 13:02 ghost

Thanks, I found out what is causing this problem, but I'm not sure if I will be able to fix it. The thing is that page already contains some parameters which are not allowed (like larger than 1000000), meaning OneNote should complain about this page as not being valid, but it only complains after this addin tries to put everything back in place as it was. Workaround is to cut offending text and paste it to different place. I'll see if I can check page for invalid values and remove them without messing up with formatting.

elvirbrk avatar Feb 16 '18 09:02 elvirbrk

Should be fixed in v3.6

elvirbrk avatar Apr 14 '19 22:04 elvirbrk