Play Project Not Recognizing Protractor and Gherkin/Cucumber Objects
Howdy I have a Play2 project, which I imported as an SBT project from eclipse I believe back in the day.
The project contains many things assorted play/java file and folders. Angular files and folders. Gherkin and protractor files and folders.
My project contains an node_modules folder with npm packages for cucumber, protractor and gherkin.
I have installed the cucumber for Java, cucumber.js, Gherkin and NodeJs plugins kinda hoping things would just start working.... worth a try right?
In my JS test files where I am using protractor it tells me my by.cssContaingText methods etc.. are all unresolved functions or methods. In the same JS files I have some cucumber/gherkin statments i.e This.When(******,function(arg1,callback){... which are also unresolved functions or methods.
In my feature files it tells me I have undefined step references.
I can launch my protractor tests manually using the terminal and pointing to the node modules folder then executing with set parameters.
It looks like I need to do some configuration jiggery to get things working or is this just not possible to get IntelliJ recognizing things in a Play/sbt project?
If this isn't possible perhaps I can disable these errors warnings?
A note which may help; intelliJ excluded the node_modules folder by default in the project structure I assume because play/sbt doesn't need it.
Please sign in to leave a comment.
Hello,
Could you please share idea.log ("Help | Show Log in...") after restarting IDE? You could use any online sharing servise. Also it would be great if you could provide sample project example for investigation.
Sorry I am not really able to share this information.
For anyone playing at home I've had some success with going to the project structure and un-marking files in the node modules folder as excluded. IntelliJ then seems to search these folders when compiling/indexing and recognize for example LoDash methods after unmarking that folder as not excluded.