[racket-dev] DrRacket's `Install Package' dies with long names/urls

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Mon Sep 9 21:47:22 EDT 2013

The Lord of heaven and earth bless your fine bug reporting skills with many
and happy days, that, as his heavenly hand hath enriched you with many
singular and extraordinary graces, so you may be the wonder of the world in
this latter age for happiness and true felicity, to the honour of that
great GOD, and the good of his Church, through Jesus Christ our Lord and
only Saviour.

Fix pushed.

Robby


On Mon, Sep 9, 2013 at 7:34 PM, William J. Bowman <wjb at williamjbowman.com>wrote:

> Hello devs,
>
> This week, at least 2 students destroyed the File -> Install Package
> feature of DrRacket on their machines. The students copied a URL into
> the Package Source field several times, resulting in this error.
> Appearently, the only way to solve this problem is to delete
> racket-prefs.rktd.
>
> Steps to reproduce:
>
> 1) Open DrRacket
> 2) Go to File -> Install a Package
> 3) Copy and paste a large chunk of text (such as [2]) into the Package
> Source field
> 4) Click install. An error message will ensue [1]
> 5) Go to File -> Install a Pacakge. An error message will ensue [1]
>
>
> [1]
>   set-label in control<%>: contract violation
>   expected: (or/c label-string? (is-a?/c bitmap%))
>   given: "raco pkg install --deps fail --link \"\n   Great and manifold
> were the blessings, most dread Sovereign, which\n   Almighty God, the
> Father of all mercies, bestowed upon us the people of\n   England, when
> first he sent Your Majesty's Royal Person to rul...
>   context...:
>    /workspace/racket/racket/collects/racket/private/more-scheme.rkt:264:2:
> call-with-exception-handler
>
>  /workspace/racket/pkgs/gui-pkg-manager-pkgs/gui-pkg-manager-lib/pkg/gui/by-source.rkt:64:2
>
>  /workspace/racket/racket/collects/racket/private/class-internal.rkt:4070:0:
> continue-make-object
>
>  /workspace/racket/racket/collects/racket/private/class-internal.rkt:4051:0:
> do-make-object
>
>  /workspace/racket/pkgs/gui-pkg-manager-pkgs/gui-pkg-manager-lib/pkg/gui/main.rkt:41:0:
> make-pkg-installer8
>    /workspace/racket/pkgs/gui-pkgs/gui-lib/mred/private/mrmenu.rkt:250:14:
> command method in basic-selectable-menu-item%
>    /workspace/racket/racket/collects/racket/private/more-scheme.rkt:147:2:
> call-with-break-parameterization
>    /workspace/racket/racket/collects/racket/private/more-scheme.rkt:264:2:
> call-with-exception-handler
>
>  /workspace/racket/pkgs/gui-pkgs/gui-lib/mred/private/wx/common/queue.rkt:451:6
>
>  /workspace/racket/pkgs/gui-pkgs/gui-lib/mred/private/wx/common/queue.rkt:502:32
>
>  /workspace/racket/pkgs/gui-pkgs/gui-lib/mred/private/wx/common/queue.rkt:650:3
> [2]
>    Great and manifold were the blessings, most dread Sovereign, which
>    Almighty God, the Father of all mercies, bestowed upon us the people of
>    England, when first he sent Your Majesty's Royal Person to rule and
>    reign over us. For whereas it was the expectation of many, who wished
>    not well unto our Sion, that, upon the setting of that bright
>    Occindental Star, Queen Elizabeth, of most happy memory, some thick and
>    palpable clouds of darkness would so have overshadowed this land, that
>    men should have been in doubt which way they were to walk, and that it
>    should hardly be known who was to direct the unsettled State; the
>    appearance of Your Majesty, as of the Sun in his strength, instantly
>    dispelled those supposed and surmised mists, and gave unto all that
>    were well affected exceeding cause of comfort; especially when we
>    beheld the Government established in Your Highness, and Your hopeful
>    Seed, by an undoubted Title; and this also accompanied with peace and
>    tranquillity at home and abroad.
>
> --
> William J. Bowman
>
> Northeastern University
> College of Computer and Information Science
>
> _________________________
>   Racket Developers list:
>   http://lists.racket-lang.org/dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/dev/archive/attachments/20130909/1aec8d6f/attachment.html>

Posted on the dev mailing list.