Skip to content

Unrecognised tokens in step definition in php (Behat) filesΒ #223

Open
@MolbioUnige

Description

@MolbioUnige

πŸ‘“ What did you see?

LSP don't recognize context having token defined. This is a scenario I have:

      Scenario: User is an committee member
          Given user is an committee
          And I authenticate
          Then I get redirected to "/committee"     β–  Undefined step: I get redirected to "/committee"

And here the related contexts:

      /**
       * @Given user is an committee
       */
      public function userIsAnCommittee()
      {
          throw new PendingException();
      }
      /**
       * @Given I authenticate
       */
      public function iAuthenticate()
      {
          throw new PendingException();
      }
      /**
       * @Then I get redirected to :arg1
       */
     public function iGetRedirectedTo($arg1)
      {
          throw new PendingException();
      }

βœ… What did you expect to see?

The first two contexts are recognised by the lsp and I can jump to their definition, but not the third one. I tried without the surrounding double quotes but it has the same effect.

πŸ“¦ Which tool/library version are you using?

Cucumber Language Server 1.6.0

πŸ”¬ How could we reproduce it?

No response

πŸ“š Any additional context?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions