scztt / vscode-supercollider

MIT License
56 stars 6 forks source link

CodeFormatter class missing? #11

Closed iTerentius closed 1 year ago

iTerentius commented 1 year ago

Hey folks,

I thought I'd check this out as I've been using VSCode more often for pretty much everything.

When I follow the install and run build and run with or without debugging the Quark throws this error:

Execution warning: Class 'CodeFormatter' not found
ERROR: Message 'new' not understood.
RECEIVER:
   nil
ARGS:
CALL STACK:
    DoesNotUnderstandError:reportError
        arg this = <instance of DoesNotUnderstandError>
    Nil:handleError
        arg this = nil
        arg error = <instance of DoesNotUnderstandError>
    Thread:handleError
        arg this = <instance of Thread>
        arg error = <instance of DoesNotUnderstandError>
    Object:throw
        arg this = <instance of DoesNotUnderstandError>
    Object:doesNotUnderstand
        arg this = nil
        arg selector = 'new'
        arg args = [*0]
    Meta_TextDocumentFormattingProvider:initClass
        arg this = <instance of Meta_TextDocumentFormattingProvider>
    Meta_Class:initClassTree
        arg this = <instance of Meta_Class>
        arg aClass = <instance of Meta_TextDocumentFormattingProvider>
        var implementsInitClass = nil
    ArrayedCollection:do
        arg this = [*18]
        arg function = <instance of Function>
        var i = 12
    Meta_Class:initClassTree
        arg this = <instance of Meta_Class>
        arg aClass = <instance of Meta_LSPProvider>
        var implementsInitClass = nil
    ArrayedCollection:do
        arg this = [*2]
        arg function = <instance of Function>
        var i = 0
    Meta_Class:initClassTree
        arg this = <instance of Meta_Class>
        arg aClass = <instance of Meta_LSPFeature>
        var implementsInitClass = nil
    ArrayedCollection:do
        arg this = [*271]
        arg function = <instance of Function>
        var i = 180
    Meta_Class:initClassTree
        arg this = <instance of Meta_Class>
        arg aClass = <instance of Meta_Object>
        var implementsInitClass = nil
    Process:startup
        arg this = <instance of Main>
        var time = 0.424566667
    Main:startup
        arg this = <instance of Main>
        var didWarnOverwrite = false
^^ ERROR: Message 'new' not understood.
RECEIVER: nil

I can see the line where that class is called on line 10 of TextDocumentFormattingProvider.sc .

Forgive me too as I know virtually nothing about the innards of quarks or dependencies. Just wondered if this is a build issue on my part or something else.

scztt commented 1 year ago

Thanks for the heads up! This was an oversight, I haven't published that class yet - I'll fix shortly.

iTerentius commented 1 year ago

No worries. I'm honestly abusing the abilities of all of those contributing. The OTHER existing extension doesn't quite cut it. I've been using Neovim in a VScode terminal window or just using Neovim, but would love to see this all working VSCode, so many kudos. If I learn some LSP and otherwise maybe I can help.

scztt commented 1 year ago

This is resolved now, you should have no problems compiling. The CodeFormatter class is still disabled, since it require some special setup steps for the time being.

iTerentius commented 1 year ago

Thanks @scztt!