intellij-idea

libraryDependencies Spark in build.sbt error (IntelliJ)

☆樱花仙子☆ 提交于 2021-02-11 16:50:29
问题 I am trying to learning Scala with Spark. I am following a tutorial but I am having an error, when I try to import the library dependencies of Spark : libraryDependencies += "org.apache.spark" %% "spark-core" % "2.4.3" I am getting the following error : And I have 3 Unkwons artifacts. What could be the problem here? My code is so simple, it is just a Hello World. 回答1: Probably you need to add to your build.sbt : resolvers += "spark-core" at "https://mvnrepository.com/artifact/org.apache.spark

WebStorm incorrectly marking source files as excluded when going from TS to JS

末鹿安然 提交于 2021-02-11 14:55:06
问题 I have a React project that is a mix of JavaScript+Flow and TypeScript -- and I am in the process of iteratively refactoring the JS files to TS/TSX. In my workflow I'm sometimes going to-and-fro between Git branches, and in these branches, I may have renamed a specific JS file like App.js to App.tsx and in another unrelated branch, it is still called App.js . I've noticed that when I convert App.js to App.tsx , everything is fine, but when I toggle back to the branch that still has it set as

Is there a way to automatically compile using maven after code changes when using IntelliJ?

人走茶凉 提交于 2021-02-11 13:38:46
问题 When using intelliJ, is there a way to automatically run maven compile after code changes? running mvn compile is too tedious each time. 回答1: Access Settings (Preferences on macOS). Select Build, Execution, Deployment > Compiler. Enable Build project automatically. Press OK. Press Ctrl+Shift+A (Cmd+Shift+A on macOS) and search for Registry. Open it to find and enable compiler.automake.allow.when.app.running (IntelliJ IDEA 15 and newer). Source: https://zeroturnaround.com/software/jrebel

Calling Python script from Java code using Runtime.exec() : ImportError: No module named sklearn

孤者浪人 提交于 2021-02-11 12:48:59
问题 I Have a Java program that calls a python script. That python script has the following imports import numpy as np from sklearn import metrics On my mac, i already have python 2.7, i now installed python 3.7 I also installed numpy, scipy and sklearn modules using pip3. In Intellij, i selected the python 3.7 interpreter and Java1.8 for my project When i run the java program which calls python script using the command Process p = Runtime.getRuntime().exec("python /mydir/report.py"); i get this

How do I resolve dependency conflict for a Java file in IntelliJ IDEA?

蹲街弑〆低调 提交于 2021-02-11 07:10:55
问题 I have tried to search web for the problem I am facing but maybe I am not asking google the right question so here I am. I am using IntelliJ IDEA for my multi-module project. For one of my modules, one of the class file is using a static import - import static javax.ws.rs.core.Response.Status.Family.familyOf; Being a big project, there are a lot of dependencies downloaded from internal repo but for some reason IntelliJ refuses to use the dependency "javax.ws.rs-api-2.0" instead it is using

cannot resolve configuration property - intellij

非 Y 不嫁゛ 提交于 2021-02-11 01:53:57
问题 I created a bare-minimum springboot project and it keeps complaining about the application.properties entries not being resolved. I have tried lowering the sprintboot version from 2.2.5 to lower ones but still the same issue. My intelliJ version is 2019.3.3 (ultimate version). I do notice that standard spring config properties like below are picked up just fine from application.properties # Cache resources for a day spring.resources.cache.period=86400 Interestingly other projects that worked

Workable alternative to “Presentation Mode” in Intellij and Pycharm

流过昼夜 提交于 2021-02-10 18:28:25
问题 As detailed in this YouTrack issue https://youtrack.jetbrains.com/issue/PY-40008 Presentation Mode is basically a one-way ticket: you can check in but you just can't leave . One of the "misses" of returning to "normal" mode is that only the Editor panel is displayed: the Explorer, Debugger, etc. are all invisible. That's a hassle to rectify in real time when presenting to a group of people. When I am actually giving presentations that include code snippet walk-throughs going back and forth

IntelliJ Ultimate Kotlin Script REPL skips first printed lines - Scratch Output cut off

好久不见. 提交于 2021-02-10 17:58:07
问题 I enjoy using the REPL in intelliJ for coding problems like you would find on codesignal. I currently have the version: IntelliJ IDEA 2019.1.3 (Ultimate Edition) Build #IU-191.7479.19, built on May 27, 2019 JRE: 1.8.0_202-release-1483-b58 x86_64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o macOS 10.14.4 I have always been really confused by the fact that when running any of these scratch files, the first 5-9 lines I am trying to print output to will just, not exist. Below is an example

IntelliJ Ultimate Kotlin Script REPL skips first printed lines - Scratch Output cut off

拈花ヽ惹草 提交于 2021-02-10 17:54:16
问题 I enjoy using the REPL in intelliJ for coding problems like you would find on codesignal. I currently have the version: IntelliJ IDEA 2019.1.3 (Ultimate Edition) Build #IU-191.7479.19, built on May 27, 2019 JRE: 1.8.0_202-release-1483-b58 x86_64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o macOS 10.14.4 I have always been really confused by the fact that when running any of these scratch files, the first 5-9 lines I am trying to print output to will just, not exist. Below is an example

Is Gradle system property in gradle.properies not being used? (javacpp, intellij)

喜欢而已 提交于 2021-02-10 16:01:39
问题 According to the JavaCPP documentation, if we set the system property: javacpp.platform=linux-x86_64 it should not download the other platforms: This is from javacpp: ... This downloads binaries for all platforms, but to get binaries for only one platform we can set the javacpp.platform system property (via the -D command line option) to something like android-arm, linux-x86_64, macosx-x86_64, windows-x86_64, etc. The way to set system properties in Gradle: Using the -D command-line option,