Maven is a dependency management system and build tool for Java applications.
If the app you're working on is using maven, there should be a pom.xml file in the project root directory.
Community or Enterprise?
Plugins:
Other than that it depends on what frameworks you're using on whether a plugin is available or not.
As far as where to start learning why not use Intellij's Quick Start Guide?
It includes sections for newbies like:
It looks like it's under Edit > Find > Replace (Ctrl+R). In the window there's a radio box for 'In Selection'.
HTH.
So there are two types of things that will cause those squiggly lines to appear inside your editor. One of which are explicit errors, which will display a squiggly red line - these must be fixed before your code will compile. In order to view a list of all errors in your project, you can select Problems from the dropdown box in your Project View window. To jump to the next highlighted error, there is also a dedicated navigation action.
The second thing that will cause a squiggly line are warnings - these are triggered by inspections. In order to view a list of all warnings inside your project, select Analyze | Inspect Code, and specify the desired scope (ie. "Whole Project") where IntelliJ IDEA should analyze your code. To configure which inspections are activated in your project by default, you can open File | Settings | Editor | Inspections and enable or disable them from the menu.
Hi /u/tails1515, welcome to /r/IntelliJIDEA! There is a way to do this, but you're going to have to rethink how "Projects" work. In IntelliJ IDEA, "Projects" are similar to "Workspaces" in Eclipse. Inside an IntelliJ IDEA Project, there are one or more "Modules".
So you already have your base Project set up in IntelliJ IDEA, and now you're going to add a new Module to that Project by importing existing sources (under File -> Import Module), which will convert the source folder to an IntelliJ IDEA Module and add it to the current project.
This process will also add an IDEA module (.iml) file to the remote directory (which in your case, is on Dropbox). Later, if you need to share that Module between any other IntelliJ IDEA Projects, you can do so by simply adding it under the Project Structure dialog (File -> Project Structure -> Modules -> +).
Not necessarily. https://git-scm.com/docs/git-reset has a ton of docs on the command and examples of what it will do.
git reset —-hard
will lose any uncommitted changes in your local copy of the repo. So if you’ve just cloned the repo and done a load of changes that have broken things, but not committed anything, it’ll do what you want. But if you’ve run git commit
or used the IntelliJ git/VCS commit interface to commit any of your changes, then it’ll have reverted to the last one of those commits you did. If you also ran git push
/used the IntelliJ interface to push those changes to the server, then they’ll be up there too not just on your local copy.
If you just want a fresh copy of the version on the server, delete the entire local directory and re-run git clone $REPO_URL
. If you’ve not done any of your own commits+pushes, that’s enough (even if you had local commits. It’s the pushes that are important here).
If you have pushed some bad commits up to the server then check the web interface or output of git log
to work out the latest commit you want to check out, then run git checkout -b $BRANCH_NAME $COMMIT_SHA
. That will create for you a new branch, with the base of it set to the commit sha you worked out from the log/web interface. You can do new commits, push them to the server etc. But they will be on a branch named what you chose, and people will be able to see which commit you are using as a base and might require you to merge in the latest updates from the master
/main
branch to accept your changes. That’s the point of tools like git. You can’t easily ‘lose’ history like commits others have made, even if you don’t want to include them in your version. If you want anyone apart from you to use your changes, you’ll need to justify why you’re ignoring other work that has already been OK’d.
If you have some local commits you want to keep as well, you can do the same as above without a fresh clone
.
You can use an older version of IntelliJ IDEA. IntellJ IDEA 2019.1, available for download from https://www.jetbrains.com/idea/download/other.html, should be compatible with Gradle 2.14.
I would have thought the same initially.. however it seems like the adoption of modules is pretty low since there is no good tooling around it as well .. IDEs have a hard time with them and build tools as well.. assuming you can't just start a fresh new project...
https://searchcode.com/?q=requires+java.sql%3B yields roughly 500 results and
https://searchcode.com/?q=requires+mysql yields 0
so i wouldn't assume there are too many libs out there doing that - hopefully they don't - the whole jakarta extraction renaming was botched in this way...
i mean there are solutions to everything .. but that depends on your situation ^^
if you are allowed to mess with the repo's hooks you can probably use something like post-checkout to check for new branches, or maybe there is a better hook for it.
here is a good place to start reading about hooks if you need info, https://git-scm.com/docs/githooks and after that Google some githooks tutorials.
I created the file in the screenshot with the "new>HTML file" method. I also tried it the other way but it doesn't seem to work.
Here is a screenshot of my entire screen, https://snipboard.io/oKTFWc.jpg, maybe the problem wasn't visible in the screenshot in my post.
Even if you don't see anything else I appreciate the help.
There are:
Source: https://code.visualstudio.com/docs/languages/java
Event with this facilities I still prefer IntelliJ.
Change the channel to your current version and it won't update to any newer version. Though if you want to update just change the channel Tot the preferred release and you're done. You can also change the channel to candidate, beta or edge to receive eap versions.
Switching channels documentation: https://snapcraft.io/docs/channels
For example pin 2019.3: sudo snap refresh --channel=2019.3/stable intellij-idea-community
Have you tried using JetBrains IDE Ruby Mine? https://www.jetbrains.com/ruby/
If not you might be using a Ruby Plugin in IntelliJ IDEA (the (primarily) Java/JVM langauges IDE)
Typically refactoring options are under the "Refactor" menu at the top Either "Rename..." or "Move Class" might get you part way to updating all references in a single command, in the way you want. Good Luck.
This question is nothing IntelliJ specific. Everything you needs to know is in the maven documentation: http://maven.apache.org/guides/mini/guide-creating-archetypes.html
Im thinking you could have a Java version mismatch when running the jar in osx or your application is relying on a Windows env variable that os x doesn't have or is called someone else. Did you build the app in Windows and just moved the jar or did you try building in osx and running the jar?
Not sure if these are the best resources, but pretty good to give you an idea of them. They are a must if you're planning on working on Java applications. Git is a must in general, gonna standard in source code management. Git: https://www.freecodecamp.org/news/what-is-git-and-how-to-use-it-c341b049ae61/
Gradle: https://www.tutorialspoint.com/gradle/gradle_build_a_java_project
Make sure that an official version of IntelliJ is being used.
Contact support if the issue persists.
This is not an issue that I have seen before. Screenshots and log files will be helpful for support.
in IDEA, you can use the command line to open file in the editor, I believe pycharm will behave the same:
<IntelliJ IDEA> <path1> --line<number> <path2>
where: <IntelliJ IDEA> is the platform-specific product launcher <path1> is the path to the project that contains the desired file <number> is the number of the line, where the caret should rest <path2> is the path to the file to be opened
but hey, the text editor like sublime will be a LOT faster when opening a single file.
Yes, you can use the default hotkey to expand and collapse a code block. You can also configure how IntelliJ IDEA folds blocks of code in your IDE settings.
> There is no global list of errors.
To view a list of all compiler errors in your project, you can use the Problems Scope in the Project View. There is also the Inspection Tool which will allow you to group results by severity. There, you will be able to find a complete list of all errors and warnings inside your entire project.
Yep...
So now I see that on this page when I have the keymap set to "Mac OS X 10.5+", it tells me the wrong thing. Setting it to the selection that just says "OS X" does say cmd-y for that.
Java for Small Teams from Henry Coles, linked in the post, is a small goldmine. Reminiscent of the type of discussion in Effective Java, but a bit broader (decent focus on testing for example) and more up to date (talks about Java 7 & 8, Guava, etc.).