https://pantsbuild.org/ logo
#general
Title
# general
c

cuddly-quill-74991

09/11/2019, 5:16 PM
running
./pants compile mather/src/main/scala:adder
works
a

aloof-angle-91616

09/11/2019, 5:17 PM
what happens when you run
./pants list ::
in that directory?
also, what happens when you run
./pants export ::
-- does it print out a big json object?
c

cuddly-quill-74991

09/11/2019, 5:18 PM
Copy code
$ patns-demo >  ./pants list ::                                                                                                                                                                                         
mather/src/main/scala:adder
Copy code
17:18:39 [WARN] No default jvm platform is defined.
{
    "version": "1.0.10",
    "targets": {
        "mather/src/main/scala:adder": {
            "targets": [],
            "libraries": [],
            "roots": [
                {
                    "source_root": "/absolute/path/to/pants-demo/mather/src/main/scala/com/kaoruk",
                    "package_prefix": "com.kaoruk"
                }
            ],
            "id": "mather.src.main.scala.adder",
            "target_type": "SOURCE",
            "is_code_gen": false,
            "is_synthetic": false,
            "pants_target_type": "jvm_binary",
            "globs": {
                "globs": [
                    "mather/src/main/scala/**/*.scala"
                ]
            },
            "transitive": true,
            "scope": "default",
            "is_target_root": true,
            "excludes": [],
            "platform": "(DistributionLocator.cached().version 1.8)"
        }
    },
    "jvm_platforms": {
        "default_platform": "(DistributionLocator.cached().version 1.8)",
        "platforms": {}
    },
    "preferred_jvm_distributions": {},
    "libraries": {}
}
a

aloof-angle-91616

09/11/2019, 5:20 PM
which version of the intellij plugin are you using?
also, what happens if you try
./pants idea-plugin ::
?
c

cuddly-quill-74991

09/11/2019, 5:20 PM
1.13.0
that command sends me over to intellj
a

aloof-angle-91616

09/11/2019, 5:20 PM
is it possible for you to try a newer version in this project? there have been lots of changes since then
yes, i want to see whether the import that happens from the
idea-plugin
command somehow works even if the dialog doesn't
c

cuddly-quill-74991

09/11/2019, 5:21 PM
oh wait it's doing stuff now
oh nice okay, looks like that worked
a

aloof-angle-91616

09/11/2019, 5:21 PM
the
idea-plugin
one?
c

cuddly-quill-74991

09/11/2019, 5:21 PM
yah
a

aloof-angle-91616

09/11/2019, 5:21 PM
awesome!!
i don't know why that didn't work at the start though
if this happens again and
idea-plugin
doesn't work, please try asking this channel again!
c

cuddly-quill-74991

09/11/2019, 5:22 PM
yeah, I was following the instructions here: https://github.com/pantsbuild/intellij-pants-plugin
different question, what does
::
mean?
a

aloof-angle-91616

09/11/2019, 5:23 PM
it is a recursive target glob! everything under that directory -- without a prefix, just every target in the repo
c

cuddly-quill-74991

09/11/2019, 5:23 PM
ah great, thank you for your help!
a

aloof-angle-91616

09/11/2019, 5:23 PM
no problem!!!
3 Views