How to diff directories from the command line?
I am using the command line to run the IDEA diff viewer and it works nicely for files.
When I pass directories as parameters to the command line runner then I get an error:
"Error showing diff: Argument 0 for @NotNull parameter of .... FileEditerProviderManagerImpl.getProviders must not be null"
My command line syntax is:
idea.sh diff ~/temp1/ ~/temp2/
Am I doing something wrong? Or is this not supported?
Please sign in to leave a comment.
Hello Hamlet,
This is not currently supported (directory diff is a new feature in IDEA
10.5 and isn't hooked to the command line runner yet). Please file a YouTrack
issue.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Ticket is at http://youtrack.jetbrains.net/issue/IDEA-69225
How do I invoke the directory diff tool from the UI ? I need to diff two directories not necessarily loaded as intellij projects or even source control. Can I do that (and still benefit from the nice diff tool? )
Hello Harry,
Select two directories in Project view and invoke the "Compare Directories"
action from the context menu. If the directories are not currently part of
your project, you can add them, for example, by adding them as content roots
to your module in the Project Structure dialog.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"