Skip to content

Records invalid ProjectRoot #203

Description

@abitrolly

Input

No response

Undesirable behavior

The functionality for the feature(s):

  • Other: generated SCIP file

has undesirable behavior:

  • Has incorrect information

in the following contexts that I've seen:

  • Across functions within the same file

Expected behavior

Generated ProjectRoot File URI is missing one slash.

Metadata: &scip.Metadata{
    Version:  0,
    ToolInfo: &scip.ToolInfo{
      Name:      "scip-ruby",
      Version:   "0.5",
      Arguments: []string{
        "FIXME",
      },
    },
    ProjectRoot:          "file://data/s/gitlab-development-kit",
    TextDocumentEncoding: 1,
  },

scip-code/scip#98 (comment)

scip-ruby-debug indexing output

No response

Configuration

✗ /data/s/scip-ruby --version
scip-ruby 0.3.8 git 797dae83e1b8419f14fb2c9944d4f0357b88a16d debug_symbols=true clean=1
Based on Sorbet 0.5 0f6fd90cdf20d507f20dcbe928431dc16d3e1793

Additional info

The bug happens here.

metadata.set_project_root("file:/" + filesystem::current_path().string());

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions