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

2013-10-22 Thread John Clements

On Sep 9, 2013, at 5:34 PM, William J. Bowman 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.

It looks like this is fixed now.  In particular, pasting a string with a 
newline signals an error right away. Apologies if you already knew that; I 
don't see a response to this e-mail in particular.

Best,

John Clements


_
  Racket Developers list:
  http://lists.racket-lang.org/dev


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

2013-09-09 Thread William J. Bowman
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


signature.asc
Description: Digital signature
_
  Racket Developers list:
  http://lists.racket-lang.org/dev


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

2013-09-09 Thread Robby Findler
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 
w...@williamjbowman.comwrote:

 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


_
  Racket Developers list:
  http://lists.racket-lang.org/dev