cucumber / cucumber/language-service

Not working. Too many features and steps?

Open
#113 2 comments 0 reactions 0 assignees View on GitHub
:bug: bug
Dominant language
TypeScript
Stars
29
Forks
44
PR merge metrics
No merged PRs in 30d

Description

### 👓 What did you see?

I just tried the extension for the first time and it doesn't seem to work properly. When reloading the window, the first `.feature` files has syntax highlight but all steps are marked as undefined:

![Screenshot 2022-11-18 at 08 55 24](https://user-images.githubusercontent.com/11672286/202650268-6ff3a544-8cfd-43bd-a27e-1fb510ba01a3.png)

However, opening a second file doesn't:

![Screenshot 2022-11-18 at 08 55 39](https://user-images.githubusercontent.com/11672286/202650295-27562a9a-1259-4cbc-9cfb-0686d0aaf638.png)

The Cucumber Language Server output is:
```
[Info - 8:38:54 AM] Initializing connection from Visual Studio Code 1.73.1
[Info - 8:38:54 AM] Root uri : file:///Users/jgallaso/projects/3scale/porta
[Info - 8:38:54 AM] Current dir : /
[Info - 8:38:54 AM] Registering request handler for workspace/didChangeConfiguration failed.
[Info - 8:38:54 AM] Client does not support client/registerCapability. This is OK.
[Info - 8:38:54 AM] Cucumber Language Server 1.1.1 initialized
[Info - 8:38:54 AM] Scheduling reindexing in 3000 ms
[Info - 8:38:54 AM] Scheduling reindexing in 3000 ms
[Info - 8:38:54 AM] Reindexing file:///Users/jgallaso/projects/3scale/porta
[Info - 8:38:56 AM] * Found 280 feature file(s) in ["src/test/**/*.feature","features/**/*.feature","tests/**/*.feature","*specs*/**/.feature"]
[Info - 8:38:56 AM] * Found 8292 steps in those feature files
[Info - 8:38:57 AM] Reindexing file:///Users/jgallaso/projects/3scale/porta
```

I suspected it would simply take some time but I've been waiting for a while and nothing changes.

### ✅ What did you expect to see?

I expected it working normally.

### 📦 Which tool/library version are you using?

```
macOS 13.0.1 (with m1 chip)
Visual Studio Code 1.73.1
ruby 2.6.10p210 (2022-04-12 revision 67958) [arm64-darwin21]
cucumber 7.0.0
cucumber/vscode 1.5.1
```

### 🔬 How could we reproduce it?

In order to reproduce, I guess you'd need to clone our repo (https://github.com/3scale/porta.git) since it has the big amount of features and steps. I know, it sucks, but I don't have an easier way to reproduce this at the moment.

----

*This text was originally generated from a [template](https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/about-issue-and-pull-request-templates), then edited by hand. [You can modify the template here.](https://github.com/cucumber/.github/edit/main/.github/ISSUE_TEMPLATE/bug_report.md)*

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the problem in the linked 3scale/porta repository with the reported VS Code, Ruby, Cucumber, and extension versions. Read the Cucumber Language Server output around indexing the 280 feature files and 8292 steps; the issue is done when reloading and opening feature files consistently provides syntax highlighting and defined steps.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby, typescript, vscode
Domain
devtools, testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.