[racket-dev] DrRacket's `Install Package' dies with long names/urls
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.racket-lang.org/dev/archive/attachments/20130909/b5d40e43/attachment-0001.sig>