Skip to content

Goto definition does not work for many symbols in #lang rhombus due to DrRacket/Rhombus #226

Description

@sidkshatriya

Shplait is a great test project for testing LSP functionality in Rhombus ( https://github.com/mflatt/shplait )

Lets take a simple-ish file private/boxval.rhm in the shplait source code

#lang rhombus/static/and_meta
import:
  meta:
    "type.rhm" as t
  "type_statinfo.rhm" as t_s
  "value.rhm".value
  "wrap.rhm" open
  "lazy.rhm" open

// etc OMITTED
// etc OMITTED

expr.macro 'make_box':
  ~op_stx self
  let tv = t.gen_tvar(self)
  t_s.wrap_type('box_wrap'.relocate(self),
                t.Poly(self, tv, t.Arrow(self, [tv], t.BoxOf(self, tv))))

In the expr.macro 'make_box'

  • Goto definition on t_s does not work
  • Goto definition on t (at t.gen_tvar) does not work
  • Goto definition on wrap_type does not work
  • Goto definition on gen_tvar does not work

EDIT: The information for these symbols is missing in DrRacket also (see #226 (comment) ) . The fix will need to be made upstream either in DrRacket or Rhombus itself ...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions