i am using pycharm with intellibot and robot framework plugins. one of a sudden, keywords turned undefined like "click element". but other robot framework libraries works well.
com.intellij.diagnostic.PluginException: getComponentAdapterOfType is used to get com.intellij.psi.impl.PsiManagerImpl (requestorClass=com.millennialmedia.intellibot.psi.RobotPsiManager, requestorConstructor=public com.millennialmedia.intellibot.psi.RobotPsiManager(com.intellij.psi.impl.PsiManagerImpl)).
Probably constructor should be marked as NonInjectable. [Plugin: com.millennialmedia.intellibot]
at com.intellij.serviceContainer.ConstructorParameterResolver.findTargetAdapter(ConstructorParameterResolver.kt:111)
at com.intellij.serviceContainer.ConstructorParameterResolver.resolveInstance(ConstructorParameterResolver.kt:59)
at com.intellij.serviceContainer.ConstructorInjectionKt.instantiateUsingPicoContainer(constructorInjection.kt:45)
at com.intellij.serviceContainer.PlatformComponentManagerImpl.instantiateClassWithConstructorInjection(PlatformComponentManagerImpl.kt:505)
at com.intellij.serviceContainer.MyComponentAdapter.doCreateInstance(MyComponentAdapter.kt:35)
at com.intellij.serviceContainer.BaseComponentAdapter.getInstanceUncached(BaseComponentAdapter.kt:110)
at com.intellij.serviceContainer.BaseComponentAdapter.getInstance(BaseComponentAdapter.kt:72)
at com.intellij.serviceContainer.BaseComponentAdapter.getInstance$default(BaseComponentAdapter.kt:65)
at com.intellij.serviceContainer.PlatformComponentManagerImpl.createComponents(PlatformComponentManagerImpl.kt:177)
at com.intellij.openapi.project.impl.ProjectImpl.init(ProjectImpl.java:295)
at com.intellij.openapi.project.impl.ProjectManagerImpl.initProject(ProjectManagerImpl.java:315)
at com.intellij.openapi.project.impl.ProjectManagerImpl.convertAndLoadProject(ProjectManagerImpl.java:624)
at com.intellij.platform.PlatformProjectOpenProcessor.prepareProject(PlatformProjectOpenProcessor.java:315)
at com.intellij.platform.PlatformProjectOpenProcessor.lambda$openExistingProject$0(PlatformProjectOpenProcessor.java:241)
at com.intellij.platform.ProjectUiFrameAllocator$run$1$1.run(ProjectFrameAllocator.kt:77)
at com.intellij.openapi.progress.impl.CoreProgressManager$2.run(CoreProgressManager.java:247)
at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:888)
at com.intellij.openapi.progress.impl.CoreProgressManager$5.run(CoreProgressManager.java:441)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:163)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:585)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:531)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:59)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:150)
at com.intellij.openapi.application.impl.ApplicationImpl.lambda$null$4(ApplicationImpl.java:441)
at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:221)
at com.intellij.util.ConcurrencyUtil.lambda$underThreadNameRunnable$3(ConcurrencyUtil.java:209)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:238)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
I am facing same issue but it got resolved by the following steps.
Go to https://github.com/lte2000/intellibot/blob/develop/intellibot.jar
Download the jar file
Open PyCharm -> Settings -> Plugins -> Click on Setting Icon (Right side from the Installed tab) -> Select Install plugin from Disk
Import the jar file in PyCharm editor
Click on Restart
Intellibot plugin exception still continue, but I fixed undefined keyword problem by installing "IntelliBot #SeleniumLibrary Patched" plugin.
This answer might be too late, but here we go
I faced the same issue. additionally, pycharm wasn't recognizing some of the keywords.
My plug-in was version IntelliBot 0.10.143.381 (pycharm plugin marketplace)
On Intellibot GitHub the latest version is 0.13.191.8026
So.
I uninstall the old plugin.
Download the release version on Github
https://github.com/lte2000/intellibot/releases/tag/v0.13.191.8026
Install the new version
Now everything is working, no more error notifications and no more problems with the syntax highlight
I'm trying to configure Run/Debug configurations in IntelliJ (v2017.2.5) to run cucumber tests written in Groovy (v2.4) using Geb (v1.1.1) in a Gradle project. I need to use InternetExplorerDriver (v3.6)
I tried:
- Installing Cucumber for Groovy plugin and did following in Edit Configurations for IntelliJ:
Main Class: cucumber.api.cli.Main
Glue: C:\automation\Project\src\cucumber\resources\steps C:\automation\Project\src\cucumber\resources\env
Feature or folder path: C:/automation/Project/src/cucumber/features
Program Arguments: --plugin org.jetbrains.plugins.cucumber.java.run.CucumberJvmSMFormatter --monochrome
I'm getting following error when I run/debug a feature file:
geb.driver.DriverCreationException: failed to create driver from callback 'script15077602688031015554790$_run_closure2#55d58825'
I have tried looking for solutions for similar problem on stackoverflow which suggested upgrading selenium/groovy versions (i'm using latest version
groovyVersion = '2.4'
gebVersion = '1.1.1'
seleniumVersion = '3.6.0'
I'm new to Groovy, Geb and Gradle (I know Java and Maven) hence I suspect it could be a configuration issue.
FYI, the tests run fine through commandline. I need to get debugging in intellij working.
Figured out the answer:
In my case the configuration in IntelliJ was wrong:
I used:
Main Class: cucumber.api.cli.Main
Glue: C:\automation\Project\src\cucumber\resources\steps
C:\automation\Project\src\cucumber\resources\env
Feature or folder path: C:/automation/Project/src/cucumber/features
Program Arguments: --plugin org.jetbrains.plugins.cucumber.java.run.CucumberJvmSMFormatter --monochrome
module: Project_cucumber
Before launch: Build, Gradle task, Activate tool window:
Run Gradle task 'Project: compileCucumberGroovy'
Activate tool window [checked]
I tried to
start IntelliJ in normal mode,
open my existing projects
check out my projects from Version Controls
but all said activities gives me this error:
Cannot load project:
com.intellij.ide.plugins.PluginManager$StartupAbortedException:
com.intellij.diagnostic.PluginException: TOPIC[Plugin:
com.alayouni.ansiHighlight]
Version:
IntelliJ Community Edition 2016.1.4
logs: Suggest me where do I get logs from
Plugins can be removed manually from the plugins directory or directly from IDE settings.
In your case ansiHighlight plug-in should be removed/disabled.
While using AppiumLibrary with RobotFramework, I am getting below error.
Error: importing test library 'AppiumLibrary' failed:
ImportError: No module named switch_to
Here,PYTHONPATH: /usr/local/lib/python2.7/dist-packages/selenium-2.44.0-py2.7.egg
To resolve above error I want to try solution mentioned at link "https://github.com/appium/appium/issues/2625" which asks to remove the lower version of selenium.
I have two selenium folders at below location.
Selenium folders:
1)/usr/local/lib/python2.7/dist-packages/selenium
2)/usr/local/lib/python2.7/dist-packages/selenium-2.44.0.egg-info
How can I remove the the selenium other than 2.44?
No process was required to uninstall Selenium.
I simply deleted the directory "/usr/local/lib/python2.7/dist-packages/selenium". This resolved my error with Robot Framework.
I'm trying to follow this article to match Cucumber specs with step definitions in IntelliJ.
When I press Alt+Enter, I see Inspection 'Undefined Step' options. However, I should see the intention action Create Step Definition.
I thought I had the Cucumber IntelliJ plugin installed, so that shouldn't be a problem. Any help is greatly appreciated.
Turns out I had the Gherkin plugin but not the Cucumber for Java plugin.
I wasted around an hour to solve this. My issue was, Idea was able to navigate from feature to step file. But when I wanted to execute one cucumber test from feature file (Right click and Run Scenario), it was giving error as undefined steps.
Solution: In the Edit Configuration -> provide the Glue for the cucumber which should be absolute path till steps folder. Please see below screen shot
This fixed my problem of running feature file from Idea.
Hope this helps others.
Most probably you need to install the cucumber for java plugin, if already installed then you need to enable from File>>Settings>>pugins.
I had to uncheck the "Create separate module per source set" checkbox under the "Build, Execution, Deployment" -> "Build Tools" -> "Gradle" settings, and then rebuild the project.
"Undefined" step error message would appear if you import a new BDD project.
This error could appear due to two reasons.
If you have not installed the "Cucumber for Java" plugin.
If you import any BDD projects then it will not detect step definition file.
Solution:
1. If the plugin is not found then you need to install from the below location.
File->Settings->Plugins->MarketPlace->Cucumber for Java
2. After Importing the project disable the plugin and enable once again in the Installed section under Installed.
For me there was a collision between Sidesteps plugin and Cucumber plugin in Intellij and as a result *.feature file extension was taken over by the Sidesteps plugin and was expecting Sidesteps step definitions ignoring Cucumber step definitions. No clue what Sidesteps actually is. So went to IntelliJ settings and reassigned the *.feature extension to Cucumber Scenario type and then everything worked fine and Cucumber steps are recognized by Intellij now.
I had the same issue where all of a sudden my feature to step definition glue was missing. All i did was goto Run->Edit Configurations->and removed the cucumber java
configuration and restarted IntelliJ. it worked fine.
I found that even with the Cucumber for Java plugin installed it was still generating only one step. I eventually uninstalled the Cucumber for Java plugin and reinstalled it and all step definitions were generated.
The issue was fixed after updating the Intelij to the latest version and after updating the cucumber and gherkin intelij plugins
Me not help not one of suggestions above.
But i find if you start one test from runner the problem goes on (it is worked if you have runner for some tests( Runner is class that have line #CucumberOptions(
features = "src/test/resources/stability_*****_features/",
glue = "steps"
)
And may be the next line in config helped you^
in configurations i put line: --plugin org.jetbrains.plugins.cucumber.java.run.CucumberJvm4SMFormatter
in Programm arguments line - it help me
If still not working, you can add runner class
add -> runner package -> Main Runner class
-test
-runner - Create this package
-stepPackage
-resources
-features
#CucumberOptions(features = {"classpath:features"}, glue = {"stepDefinition"},
monochrome = false,dryRun = false)
public class MainRunner extends AbstractTestNGCucumberTests {
}
That is it. Just run this class first. Right mouse click and Run'MainRunner'
Then it will work if you just go back and run Scenarios as well
I had the same issue and was resolved by going to Run> Edit configuration> Before Launch then click on the add option "+" and add Build Project option.
enter image description here