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

Quarks install on Windows fails in parseQuarkName #1346

Closed
crucialfelix opened this issue Mar 19, 2015 · 6 comments
Closed

Quarks install on Windows fails in parseQuarkName #1346

crucialfelix opened this issue Mar 19, 2015 · 6 comments
Assignees
Labels
bug Issues that relate to unexpected/unwanted behavior. Don't use for PRs. comp: class library SC class library os: Windows
Milestone

Comments

@crucialfelix
Copy link
Member

Rainer reports that Quarks on Windows nearly worked, but failed to find the Quark after it was checked out.

Quarks.install("UnitLib")

Fetching https://raw.githubusercontent.com/supercollider-quarks/quarks/master/directory.txt
writing: C:\Users\Rainer\AppData\Local\SuperCollider\downloaded-quarks\directory.txt
-> a QuarksGui
Adding path: C:\Users\Rainer\AppData\Local\SuperCollider\downloaded-quarks\UnitLib
UnitLib installed
ERROR: C:\Users\Rainer\AppData\Local\SuperCollider\downloaded-quarks\UnitLib not found
CALL STACK:
        Exception:reportError   307266f0
                arg this = <instance of Error>
        Nil:handleError   30720bd0
                arg this = nil
                arg error = <instance of Error>
        Thread:handleError   30720870
                arg this = <instance of Thread>
                arg error = <instance of Error>
        Object:throw   30722df0
                arg this = <instance of Error>
        Meta_Quark:parseQuarkName   3001c9b0
                arg this = <instance of Meta_Quark>
                arg name = "C:\Users\Rainer\AppData\Loca..."
                arg refspec = nil
                var directoryEntry = nil
        Meta_Quark:new   307250d0
                arg this = <instance of Meta_Quark>
                arg name = "C:\Users\Rainer\AppData\Loca..."
                arg refspec = nil
        Meta_Quarks:quarkNameAsLocalPath   307257f0
                arg this = <instance of Meta_Quarks>
                arg name = "C:\Users\Rainer\AppData\Loca..."
        Meta_Quark:fromLocalPath   3001ca50
                arg this = <instance of Meta_Quark>
                arg path = "C:\Users\Rainer\AppData\Loca..."
                var name = nil
                var url = nil
                var refspec = nil
        < FunctionDef in Method Meta_Quarks:all >   30721fb0
                arg path = "C:\Users\Rainer\AppData\Loca..."
        ArrayedCollection:do   30722070
                arg this = [*2]
                arg function = <instance of Function>
                var i = 1
        Meta_Quarks:all   2f19ac10
                arg this = <instance of Meta_Quarks>
                var all = <instance of Dictionary>
                var f = <instance of Function>
        QuarksGui:update   2fee4430
                arg this = <instance of QuarksGui>
                var recompile = false
        QuarkRowView:install   32d540d0
                arg this = <instance of QuarkRowView>
                arg bool = true
                var prev = nil
                var ok = true
        Button:doAction   2f253eb0
                arg this = <instance of Button>
                arg modifiers = 0
        Button:prDoAction   2feef110
                arg this = <instance of Button>
                arg mods = 0
^^ The preceding error dump is for ERROR: C:\Users\Rainer\AppData\Local\SuperCollider\downloaded-quarks\UnitLib not found
@crucialfelix crucialfelix self-assigned this Mar 19, 2015
@crucialfelix crucialfelix added this to the 3.7 milestone Mar 19, 2015
@crucialfelix
Copy link
Member Author

the correct name is Unit-Lib not UnitLib but it was listed in the directory incorrectly and the quark file was named wrong. So it checks out the copy but then throws a failure because there is no folder called UnitLib.

Miguel spotted this and fixed it.

@bagong
Copy link
Contributor

bagong commented May 5, 2015

Sorry, need to reopen.
This is an unlucky overlap of different issues. The basic parse error is still there. Currently is it as follows:

  • if no folder is in sc's include path (manually in preferences or via Quarks.install) it is possible to install one Quark like so: Quarks.install("Mathlib"). The install ends cleanly.
  • the second install will complain:
    ERROR: C:\Users\Rainer\AppData\Local\SuperCollider\downloaded-quarks\MathLib not found
  • starting Quarks.gui from a completely clean install will make Quarks fetch directory.txt (the quarks
    folder is created and populated properly) and then fail as posted below.

It seems Quarks can't read path's on Windows. Including/Excluding folders in preferences works as expected.

init_OSC
empty
compiling class library...
initPassOne started
    NumPrimitives = 691
initPassOne done
    compiling dir: 'C:\Users\Rainer\Projects\jenkins\SCWin\workspace\buildVS64\Install\SuperCollider\SCClassLibrary'
    pass 1 done
    numentries = 812525 / 11246520 = 0.072
    5066 method selectors, 2220 classes
    method table size 12354592 bytes, big table size 89972160
    Number of Symbols 11560
    Byte Code Size 349088
    compiled 315 files in 0.43 seconds

Info: 2 methods are currently overwritten by extensions. To see which, execute:
MethodOverride.printAll

compile done
Class tree inited in 0.02 seconds
Cleaning up temp synthdefs...


*** Welcome to SuperCollider 3.7alpha0. *** For help press Ctrl-D.
file "C:\Users\Rainer\AppData\Local\SuperCollider\Help\scdoc_version" does not exist.
SCDoc: Indexing help-files...
SCDoc: Indexed 1339 documents in 1.79 seconds
Interpreter has crashed or stopped forcefully. [Exit code: -1073741819]
init_OSC
empty
compiling class library...
initPassOne started
    NumPrimitives = 691
initPassOne done
    compiling dir: 'C:\Users\Rainer\Projects\jenkins\SCWin\workspace\buildVS64\Install\SuperCollider\SCClassLibrary'
    pass 1 done
    numentries = 812525 / 11246520 = 0.072
    5066 method selectors, 2220 classes
    method table size 12354592 bytes, big table size 89972160
    Number of Symbols 11560
    Byte Code Size 349088
    compiled 315 files in 0.39 seconds

Info: 2 methods are currently overwritten by extensions. To see which, execute:
MethodOverride.printAll

compile done
Class tree inited in 0.02 seconds
Cleaning up temp synthdefs...


*** Welcome to SuperCollider 3.7alpha0. *** For help press Ctrl-D.
Fetching https://github.com/supercollider-quarks/quarks.git
ERROR: C:\Users\Rainer\AppData\Local\SuperCollider\downloaded-quarks\quarks not found
CALL STACK:
    Exception:reportError   0000000143FA3E68
        arg this = <instance of Error>
    Nil:handleError   0000000102B08C88
        arg this = nil
        arg error = <instance of Error>
    Thread:handleError   0000000102A96B68
        arg this = <instance of Thread>
        arg error = <instance of Error>
    Object:throw   0000000143F7A658
        arg this = <instance of Error>
    Meta_Quark:new   0000000144F90598
        arg this = <instance of Meta_Quark>
        arg name = "C:\Users\Rainer\AppData\Loca..."
        arg refspec = nil
        var args = nil
    Meta_Quarks:quarkNameAsLocalPath   000000014413B2D8
        arg this = <instance of Meta_Quarks>
        arg name = "C:\Users\Rainer\AppData\Loca..."
    Meta_Quark:fromLocalPath   0000000144F63998
        arg this = <instance of Meta_Quark>
        arg path = "C:\Users\Rainer\AppData\Loca..."
        var name = nil
        var url = nil
        var refspec = nil
    < FunctionDef in Method Meta_Quarks:all >   000000014413BB18
        arg path = "C:\Users\Rainer\AppData\Loca..."
    ArrayedCollection:do   000000014413C988
        arg this = [*1]
        arg function = <instance of Function>
        var i = 0
    Meta_Quarks:all   000000014532BBD8
        arg this = <instance of Meta_Quarks>
        var all = <instance of Dictionary>
        var f = <instance of Function>
    QuarksGui:update   000000014532C318
        arg this = <instance of QuarksGui>
        var recompile = false
    QuarksGui:init   0000000145414F68
        arg this = <instance of QuarksGui>
        var bounds = <instance of Rect>
        var btnUpdateDirectory = <instance of Button>
        var btnQuarksHelp = <instance of Button>
        var btnInstallFolder = <instance of Button>
        var btnOpenFolder = nil
        var btnClear = <instance of Button>
        var btnLoad = <instance of Button>
        var btnSave = <instance of Button>
    Interpreter:interpretPrintCmdLine   00000001454159D8
        arg this = <instance of Interpreter>
        var res = nil
        var func = <instance of Function>
        var code = "Quarks.gui"
        var doc = nil
        var ideClass = <instance of Meta_ScIDE>
    Process:interpretPrintCmdLine   00000001453A8958
        arg this = <instance of Main>
^^ The preceding error dump is for ERROR: C:\Users\Rainer\AppData\Local\SuperCollider\downloaded-quarks\quarks not found

@bagong bagong reopened this May 5, 2015
@bagong bagong added the bug Issues that relate to unexpected/unwanted behavior. Don't use for PRs. label May 5, 2015
@crucialfelix
Copy link
Member Author

Technically this is a different error. You should open a new bug for it, not reopen this one.

"Quarks install on Windows fails in parseQuarkName" is not what is happening here.

ERROR: C:\Users\Rainer\AppData\Local\SuperCollider\downloaded-quarks\quarks not found

Why is it looking for "quarks" inside of the quarks folder ?

Could you post a new issue and include:

  1. the contents of language config path.
  2. the directory listing of what is actually there in downloaded-quarks

@bagong
Copy link
Contributor

bagong commented May 5, 2015

I have reedited my report to make it a bit easier to see why I still believe it's the same error. Look specifically at point two. The rest is additional info (man, I have time constraints too. Please understand)

@crucialfelix
Copy link
Member Author

I can't read the stack trace. All the paths are cut off.

But I can already tell that this is not related to the previous issue at all.

I need your language config and the listings of your directory.

    Meta_Quark:new   0000000144F90598
        arg this = <instance of Meta_Quark>
        arg name = "C:\Users\Rainer\AppData\Loca..."
        arg refspec = nil
        var args = nil
    Meta_Quarks:quarkNameAsLocalPath   000000014413B2D8
        arg this = <instance of Meta_Quarks>
        arg name = "C:\Users\Rainer\AppData\Loca..."
    Meta_Quark:fromLocalPath   0000000144F63998
        arg this = <instance of Meta_Quark>
        arg path = "C:\Users\Rainer\AppData\Loca..."
        var name = nil
        var url = nil
        var refspec = nil

@crucialfelix
Copy link
Member Author

see #1451

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues that relate to unexpected/unwanted behavior. Don't use for PRs. comp: class library SC class library os: Windows
Projects
None yet
Development

No branches or pull requests

2 participants