NoteHighlight2016 icon indicating copy to clipboard operation
NoteHighlight2016 copied to clipboard

An Exception: Unspecified error

Open mrsWolowitz opened this issue 8 years ago • 14 comments

using (PXRecord rec = PXBase.SelectSingle<APSetup>( new PXField("Param"))) { Param = false; }

When I select that code to convert I get the error:

an exception unspecified error

mrsWolowitz avatar Jan 09 '18 11:01 mrsWolowitz

I will look into it.

elvirbrk avatar Jan 10 '18 08:01 elvirbrk

I'm receiving the same error, but not the same way. I just highlighted 1 line in OneNote and attempted to set to PHP, then received the error image

ryleeferguson avatar Jan 17 '18 02:01 ryleeferguson

Did some further troubleshooting and this issue seems to occur only when using Shift+Enter to continue on to the next line rather than just Enter. E.g. $foo = 'bar';(Shift+Enter) content not to be highlighted

Will throw an error when attempting to highlight, doesn't change whether there is content on the next line or not. Seems to be the Shift+Enter character that's causing the issues in my case. (maybe the character is \r instead of \r\n)

ryleeferguson avatar Jan 17 '18 02:01 ryleeferguson

@ryleeferguson Thanks for detailed analysis, that's probably why I couldn't reproduce issue with sample provided by @mrsWolowitz because those special characters were lost during process.

elvirbrk avatar Jan 17 '18 07:01 elvirbrk

Should be fixed in v3.3. It was not an issue with Shift+Enter character, problem was that in OneNote words separated with Shift+Enter are still considered as part of same sentence, and this plugin didn't support formating only part of sentence, only whole lines. In v3.3 it is supported to format only couple of words from line, so it should also fix this issue.

elvirbrk avatar Jan 18 '18 13:01 elvirbrk

same error occurs when there is a TAB used during writing code (not when it is pasted).

grizz-pl avatar Jan 26 '18 16:01 grizz-pl

I'm running 3.4 and this error still shows up @elvirbrk

image

OneNote 2016

ackimwilliams avatar Jan 28 '18 03:01 ackimwilliams

Please provide sample text or sample OneNote page that is triggering this issue, because I cannot find a way to reproduce it.

elvirbrk avatar Jan 29 '18 09:01 elvirbrk

The issue is with the \t tab character. When I switch to spaces it works fine. You probably need to do the same in a decorator.

ackimwilliams avatar Jan 30 '18 05:01 ackimwilliams

Still didn't manage to reproduce, no matter where I enter TAB or \t everything works fine. Please describe step by step what I need to do to get this error.

elvirbrk avatar Jan 30 '18 11:01 elvirbrk

notehighlighterror Same issue. I was able to fix it by changing the code that I would highlight to being tabless, then adding my indentation within the dialogue.

ContemplativeCoffeeCup avatar May 17 '18 05:05 ContemplativeCoffeeCup

If you can provide sample page that is causing this error, that would be great. I was trying to fix this, but I just coudn't reproduce this issue myself.

elvirbrk avatar May 17 '18 06:05 elvirbrk

Lab 5.zip A reproduction of it, manually going through and replacing the tabs with spaces again fixes it

SinZ163 avatar Apr 03 '19 23:04 SinZ163

Should be fixed in v3.6

elvirbrk avatar Apr 14 '19 22:04 elvirbrk