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

HELP no longer shows user words of a type #1155

Closed
Siskin-Bot opened this issue Feb 15, 2020 · 2 comments
Closed

HELP no longer shows user words of a type #1155

Siskin-Bot opened this issue Feb 15, 2020 · 2 comments
Labels
Oldes.resolved Bugs/wishes with Oldes' fixes/features Type.bug

Comments

@Siskin-Bot
Copy link
Collaborator

Siskin-Bot commented Feb 15, 2020

Submitted by: Sunanda

alpha-70:
b: copy []
help block!
block! is a datatype

It is defined as a series of values
It is of the general type block

Found these words:
   b               block!    length: 0
   datatypes       block!    length: 56

But alpha-76:

== []
>> help block!
block! is a datatype

It is defined as a series of values
It is of the general type block

Found these words:
   datatypes       block!    length: 56

Not sure exactly which version made the change. Probably related to the separation of user and system contexts,


Imported from: CureCode [ Version: alpha 76 Type: Bug Platform: All Category: Documentation Reproduce: Always Fixed-in:none ]
Imported from: metaeducation#1155

Comments:

Rebolbot commented on Jul 27, 2009:

Submitted by: BrianH

Note that only the user context words are not shown. The system context words are shown:

>> help char!
char! is a datatype

It is defined as a 8bit and 16bit character
It is of the general type scalar

Found these words:
   backslash       char!     #"\"
   backspace       char!     #"^H"
   bs              char!     #"^H"
   cr              char!     #"^M"
   escape          char!     #"^["
   lf              char!     #"^/"
   newline         char!     #"^/"
   newpage         char!     #"^L"
   null            char!     #"^@"
   slash           char!     #"/"
   sp              char!     #" "
   space           char!     #" "
   tab             char!     #"^-"

Given that the user context will mostly be made up of duplicate words from the system context, solving this is not an easy problem. Nonetheless, we will need a solution, especially once the system and exports contexts are split as well.

Perhaps a couple refinements to HELP would be in order: /user (to search the user context instead) and /module name (to search the exports of a module). Maybe something less awkward than the /module option would be better...


Rebolbot added the Type.bug on Jan 12, 2016


@Oldes Oldes added the Oldes.resolved Bugs/wishes with Oldes' fixes/features label Nov 18, 2021
@Oldes
Copy link
Owner

Oldes commented Nov 18, 2021

Current output looks like:

>> help block!
BLOCK! is a datatype.
It is defined as a series of values.
It is of the general type block.

Found these related words:
  datatypes       block!     length: 57 [end! unset! none! logic! integer! ...
Found these related words in user context:
  b               block!     length: 0 []

It should be noted, that above mentioned char! values are part of the library context (system/contexts/lib) and not system (system/contexts/sys).

The system context is not searchable from the help (and it is probably ok, as it is supposed to be low-level).

@Oldes
Copy link
Owner

Oldes commented Nov 18, 2021

In case that user's value is different than the lib's one, both are displayed now:

>> invalid-utf?: false
== false

>> help "invalid-utf?"    
Found these related matches:
  invalid-utf?    native!    Checks UTF encoding; if correct, returns none else position of error.
  lib             object!    [end! unset! none! logic! integer! ...
Found these related matches in the user context:
  invalid-utf?    logic!     false

Oldes added a commit to Oldes/Rebol3 that referenced this issue Nov 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Oldes.resolved Bugs/wishes with Oldes' fixes/features Type.bug
Projects
None yet
Development

No branches or pull requests

2 participants