Skip to content

debugpy requires pathFormat in initialize request, according to spec it should be optional #116

Closed

Description

Environment data

  • PTVSD version: debugpy 1.0.0b6
  • OS and version: Archlinux; 5.6.4-arch1
  • Python version (& distribution if applicable, e.g. Anaconda): 3.8.2
  • Using VS Code or Visual Studio: Neither, trying to develop a DAP plugin for Neovim

Actual behavior

Sending a minimal initialize request:

arguments = {
  adapterID = "neovim",
  clientId = "neovim",
  clientname = "neovim",
  locale = "UTF-8"
},
command = "initialize",
seq = 0,
type = "request"
}

Results in the following response:

{
  command = "initialize",
  message = "Invalid message: \"pathFormat\" must be one of: ['path']",
  request_seq = 0,
  seq = 3,
  success = false,
  type = "response"
}

Expected behavior

A success or some other error.

According to the specification, pathFormat is optional:

  /**
   * Determines in what format paths are specified. The default is 'path', which is the native format.
   * Values: 'path', 'uri', etc.
   */
  pathFormat?: string;

Activity

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

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