-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
Got an error when equesting textDocument/codeAction #100
Comments
And the output is
|
Thanks for the detailed report! I'll look into this. |
@DouyuShinyruo can you please share your Java code where you define the parameter type? |
The embedded If you change your expression from Is there a particular reason why you want it to be case insensitive? |
I think the best we can do here is to strip away any Using the case insensitive flag in parameter type regexps is disallowed in the Ruby and JavaScript implementations of Cucumber Expressions: The reason for this is that the We don't have this limitation in the Java implementation of Cucumber Expressions. Do you think we should add a similar constraint there @mpkorstanje @mattwynne? |
This is a difficult one. It would definitely solve the problem for VS code, but also:
How does VS code currently handle Java regexes? I would be surprised if we are the first. Do we have JS libraries that support some of Javas Regex features that we could use? Could we do a "best effort" and only strip the case insensitive pattern in VS code? |
I agree. We'd have supported it in the JavaScript/Ruby implementations if
We parse them and hope for the best. We have done 0 work to make sure they work. We do some sanitisation of Python regexps - they also have some features that are unsupported in JavaScript. See language-service/src/language/pythonLanguage.ts Lines 12 to 26 in e6579c2
Maybe we could have used https://github.com/jmchilton/pyre-to-regexp here.
I found this:
I think the simplest solution for now is to just strip away any |
I see that this is closed, but I have a similar problem, but I am using C#, which should allow the following decorator:
|
Thanks for catching @leibson - yes a new ticket would be great! 🙌 |
👓 What did you see?
Got an error when equesting textDocument/codeAction.
I wrote
And 60 minutes have passed
in my feature file and wrote@When("{int} {time_unit} have/has passed")
in my *.steps.java and I hope the feature file should jump to the step definition, but it got a error.✅ What did you expect to see?
The feature file should jump to the step definition.
📦 Which tool/library version are you using?
Cucumber for Visual Studio Code V1.3.0
The text was updated successfully, but these errors were encountered: