Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot generate step implementation issue #685

Open
jberumen3 opened this issue Jun 30, 2021 · 2 comments
Open

Cannot generate step implementation issue #685

jberumen3 opened this issue Jun 30, 2021 · 2 comments

Comments

@jberumen3
Copy link

Describe the bug

When I am implementing a new step in my Spec, it gives me a light bulb asking to help generate a step:
image

Then, I click on create a new file
image

After clicking on new file, there is an error message:
image

Only options seems to work is add to existing StepImplementation.ts file but only that one works, the clipboard doesn't work either.

One thing I am trying out is specifying a nested directory in the ts.properties file.

What command(s) did you run when you found the bug?

None. In VSCode.

Output, stack trace or logs related to the bug

Error message:

Unable to generate implementation. Error: error while connecting to runner : rpc error: code = Internal desc = Cannot read property 'end' of null
TypeError: Cannot read property 'end' of null
    at StubImplementationCodeProcessor.diffForImplementationInExistingClass (c:\Users\Gilfoyle\Repos\Extension\node_modules\gauge-ts\dist\processors\StubImplementationCodeProcessor.js:41:69)
    at StubImplementationCodeProcessor.process (c:\Users\Gilfoyle\Repos\Extension\node_modules\gauge-ts\dist\processors\StubImplementationCodeProcessor.js:23:33)
    at RunnerServiceImpl.implementStub (c:\Users\Gilfoyle\Repos\Extension\node_modules\gauge-ts\dist\RunnerServiceImpl.js:193:73)
    at handleUnary (c:\Users\Gilfoyle\Repos\Extension\node_modules\@grpc\grpc-js\src\server.ts:667:11)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)

Versions

"gauge-ts": "^0.1.0",

Gauge (Output of gauge -v)

Gauge version: 1.2.1
Commit Hash: fa7918b

Plugins
-------
html-report (4.0.12)
screenshot (0.0.1)
ts (0.1.0)

Node.js/Java/Python/.Net/Ruby version

Node.Js v14.17.1

Operating System information

Windows 10

IDE information

VSCode

@jberumen3 jberumen3 changed the title Cannot submit issue Cannot generate step implementation issue Jun 30, 2021
@sriv
Copy link
Member

sriv commented Jul 5, 2021

This might have something to do with gauge-ts. Please, can you report this issue at https://github.com/BugDiver/gauge-ts

@sriv
Copy link
Member

sriv commented Jul 5, 2021

/cc @BugDiver

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

No branches or pull requests

2 participants