mickeypearce / vscode-oracle-format

PL/SQL formatter (using SQLcl)
https://marketplace.visualstudio.com/items?itemName=mp.vscode-oracle-format
11 stars 4 forks source link

Error loading extension #13

Closed mcardia closed 5 years ago

mcardia commented 5 years ago

When I ask vscode to format the document it asks for the formatter.

In then developer tools I got this error:

extensionService.ts:800 Activating extension 'mp.vscode-oracle-format' failed: Cannot read property '0' of undefined.
_logMessageInConsole @ extensionService.ts:800
log.ts:173   ERR An unknown error occurred. Please consult the log for more details.

image

image

mickeypearce commented 5 years ago

Can you try opening a folder not just a single file? Thanks for your feedback.

mcardia commented 5 years ago

Opening the folder seens to be working. Now I think the problema is my style.xml because I get the error:

Skipped formatting: parse error

But won't work opening just one file?

mickeypearce commented 5 years ago

I think there is an error in this line: https://github.com/mickeypearce/vscode-oracle-format/blob/baac6d9fefeff40976c9f45998b77a0c625e5c61/src/extension.ts#L38 , If you open only a single file. I will fix it.

mickeypearce commented 5 years ago

"parse error" should be about your .sql file content. Maybe try first compile it...