[racket] What is "inferred package scope"? [was: raco pkg install/remove problem]
I've been meaning to ask a dumb question.
The term "package scope" is defined as one of "user", "installation",
or "shared", here:
http://docs.racket-lang.org/pkg/Package_Concepts.html?q=scope#%28tech._package._scope%29
But:
1. What is the "inferred" bit?
2. Why do `raco pkg` messages about "inferred package scope" show a
path, and not "user", "installation", or "shared'?
3. Is this information that a casual user of `raco pkg` needs to
know/understand?
- If so, is there an alternative or additional way to phrase the
message that might be more meaningful to a casual user?
- If not, should the message be omitted or `--verbose`d?
On Sun, Aug 18, 2013 at 3:39 PM, Matthew Flatt <mflatt at cs.utah.edu> wrote:
> At Sat, 17 Aug 2013 20:16:02 -0400, Tony Garnock-Jones wrote:
>> Hi all,
>>
>> I just installed a package with raco pkg install:
>>
>> $ raco pkg install
>> github://github.com/tonyg/racket-pretty-printing-combinators/master
>>
>> ... and then removed it with raco pkg remove:
>>
>> raco pkg remove racket-pretty-printing-combinators
>>
>> ... only to be told:
>>
>> Inferred package scope: /home/tonyg/src/racket/racket/share/pkgs
>
> The inferred scope is where things went wrong.
>
> It's the same problem that Vincent reported --- and that I was having
> trouble replicating, but Lorry figured out what I was missing:
>
> At Fri, 16 Aug 2013 09:38:53 +0100, Lawrence Woodman wrote:
>> The problem only appears when using a package link to a directory when
>> no packages have been installed under the user's .racket folder. As soon
>> as I installed a package for the user, the problem went away.
>
> With the hint, I was able to replicate the above problem, and I've
> pushed a repair.
>
> ____________________
> Racket Users list:
> http://lists.racket-lang.org/users