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

Some reserved words cannot be ?d #24871

Closed
yurivish opened this issue Dec 1, 2017 · 1 comment · Fixed by #30754
Closed

Some reserved words cannot be ?d #24871

yurivish opened this issue Dec 1, 2017 · 1 comment · Fixed by #30754
Labels
docsystem The documentation building system REPL Julia's REPL (Read Eval Print Loop)

Comments

@yurivish
Copy link
Contributor

yurivish commented Dec 1, 2017

?abstract and ?type in the REPL both throw an error on 0.7, though ?struct and ?return and ?end and many others all print out helpful documentation.

help?> struct
search: struct mutable struct unsafe_trunc

  struct

  The most commonly used kind of type in Julia is a struct, specified as a
  name and a set of fields.

help?> abstract
ERROR: LoadError: Invalid @var syntax `incomplete: premature end of input`.
Stacktrace:
 [1] bindingexpr(::String) at ./docs/bindings.jl:17
 [2] docm(::LineNumberNode, ::Module, ::Expr) at ./docs/Docs.jl:736
 [3] @doc(::LineNumberNode, ::Module, ::Vararg{Any,N} where N) at ./boot.jl:406
in expression starting at docs/utils.jl:206

Update: Just learned from help mode autocomplete that abstract type works. Maybe this just needs an alias somewhere?

@yurivish yurivish changed the title Some reserved words cannot be helped Some reserved words cannot be ?d Dec 1, 2017
@JeffBezanson JeffBezanson added docsystem The documentation building system REPL Julia's REPL (Read Eval Print Loop) labels Dec 2, 2017
@KristofferC
Copy link
Member

KristofferC commented Jan 5, 2018

I think this will be automatically fixed when the deprecation for `abstract´ is removed.

Edit: Actually the deprecation is removed but abstract still doesn't parse as an identifier.

fredrikekre added a commit that referenced this issue Jan 18, 2019
fredrikekre added a commit that referenced this issue Jan 18, 2019
fredrikekre added a commit that referenced this issue Jan 19, 2019
KristofferC pushed a commit that referenced this issue Feb 4, 2019
…30754)

fixes #22013, fixes #24871, fixes #26933, fixes #29282,
fixes #29361, fixes #30348 and fixes #30506.

(cherry picked from commit b8c0ec8)
KristofferC pushed a commit that referenced this issue Feb 11, 2019
…30754)

fixes #22013, fixes #24871, fixes #26933, fixes #29282,
fixes #29361, fixes #30348 and fixes #30506.

(cherry picked from commit b8c0ec8)
KristofferC pushed a commit that referenced this issue Feb 11, 2019
…30754)

fixes #22013, fixes #24871, fixes #26933, fixes #29282,
fixes #29361, fixes #30348 and fixes #30506. 

(cherry picked from commit b8c0ec8)
KristofferC pushed a commit that referenced this issue Apr 20, 2019
…30754)

fixes #22013, fixes #24871, fixes #26933, fixes #29282,
fixes #29361, fixes #30348 and fixes #30506.

(cherry picked from commit b8c0ec8)
KristofferC pushed a commit that referenced this issue Feb 20, 2020
…30754)

fixes #22013, fixes #24871, fixes #26933, fixes #29282,
fixes #29361, fixes #30348 and fixes #30506.

(cherry picked from commit b8c0ec8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docsystem The documentation building system REPL Julia's REPL (Read Eval Print Loop)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants