I've downloaded zip file (instead of repo cloning) from Karate´s gitlab home page (0.9.6 version) and also configured VS Code with java recommended stuff, but some imports are failing ...
This one from DemoLogModifier.java when trying
import com.intuit.karate.http.HttpLogModifier;
With the error
The import com.intuit.karate.http.HttpLogModifier cannot be resolvedJava(268435846)
When using Intellij these errors are not there
I have 19 extensions installed
- Cloudfoundry Manifest YML Support
- Concourse CI Pipeline Editor
- Cucumber (Gherkin) Full Support
- Debugger for Java
- ESLint
- Java Extension Pack
- Java Test Runner
- Karate Runner
- Language Support for Java(TM) by Red Hat
- Maven for Java
- Project Manager for Java
- Python
- SonarLint
- Spring Boot Dashboard
- Spring Boot Extension Pack
- Spring Boot Tools
- Spring Initializr Java Support
- Visual Studio IntelliCode
- XML
This is my settings json
{
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"java.configuration.checkProjectSettingsExclusions": false,
"terminal.integrated.shell.osx": "/bin/zsh",
"java.home": "/Library/Java/JavaVirtualMachines/jdk-11.0.9.jdk/Contents/Home",
"java.configuration.runtimes": [
{
"name": "JavaSE-11",
"path": "/Library/Java/JavaVirtualMachines/jdk-11.0.9.jdk/Contents/Home",
"sources" : "/Library/Java/JavaVirtualMachines/jdk-11.0.9.jdk/Contents/Home/lib/src.zip",
"javadoc" : "https://docs.oracle.com/en/java/javase/11/docs/api",
"default": true
}
],
"maven.executable.preferMavenWrapper": false,
"maven.pomfile.autoUpdateEffectivePOM": true,
"maven.terminal.useJavaHome": true,
"java.maven.downloadSources": true
}
And this is my .zshrc
##JAVA
export JAVA_HOME="$(/usr/libexec/java_home)"
export PATH=$PATH:$JAVA_HOME/bin
export M2_HOME=/Users/agilcoto/Work/apache-maven-3.6.3
export MAVEN_HOME=$M2_HOME
export M2=$M2_HOME/bin
export MAVEN_OPTS="-Xms256m -Xmx512m"
export PATH=$PATH:$M2
Any clue? what's missing?