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?

0
4 comments

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.

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?


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

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? )

0

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.

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? )


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.