Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An Exception: Unspecified error #34

Open
mrsWolowitz opened this issue Jan 9, 2018 · 14 comments
Open

An Exception: Unspecified error #34

mrsWolowitz opened this issue Jan 9, 2018 · 14 comments

Comments

@mrsWolowitz
Copy link

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

@elvirbrk elvirbrk added the bug label Jan 10, 2018
@elvirbrk
Copy link
Owner

I will look into it.

@ryleeferguson
Copy link

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
Copy link

ryleeferguson commented Jan 17, 2018

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)

@elvirbrk
Copy link
Owner

@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
Copy link
Owner

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.

@grizz-pl
Copy link

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

@ackimwilliams
Copy link

ackimwilliams commented Jan 28, 2018

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

image

OneNote 2016

@elvirbrk
Copy link
Owner

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

@ackimwilliams
Copy link

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.

@elvirbrk
Copy link
Owner

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.

@ContemplativeCoffeeCup
Copy link

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.

@elvirbrk
Copy link
Owner

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.

@SinZ163
Copy link

SinZ163 commented Apr 3, 2019

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

@elvirbrk
Copy link
Owner

Should be fixed in v3.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants