Giter VIP home page Giter VIP logo

Comments (10)

fkorotkov avatar fkorotkov commented on May 28, 2024

The plugin uses list goal to list all targets in a file. Could you please check if

./pants goal list java/gns/server/::

works for you. The plugin uses this command and then looks for lines starting with "java/gns/server/:"

from intellij-pants-plugin.

ericzundel avatar ericzundel commented on May 28, 2024

The root of the repo is ~/Development/java

Here's what I get:

./pants goal list gns/server/::
 [ INFO ] Checking to see if pants.pex version has changed ...
 [ INFO ] Checking to see if generated BUILD.* files are outdated in /Users/zundel/Development/java ...
[ INFO ] Finish checking BUILD.* health in 1.122 seconds.
(using pantsrc expansion: pants goal list gns/server/:: --exclude-target-regexp=:aux-)
gns/server/src/main/resources:resources
gns/server:server
gns/server:test
gns/server:lib
gns/server/src/main/java:lib
gns/server/src/test/java:lib
gns/server/src/test/java:test

from intellij-pants-plugin.

tejal29 avatar tejal29 commented on May 28, 2024

The only time i have seen this happen is when ./pants goal list <>:: failed.

Other thing i can think of is:
Do you by any chance have a file named "pants" in gns/server or gns?

Thanks
Tejal

from intellij-pants-plugin.

ericzundel avatar ericzundel commented on May 28, 2024

I just updated my pants wrapper script to make sure all logging went to stderr. Here's what I see when I try to import ':lib' in the idea.log file:

I'm still using version 0.7 of the plugin.

com.intellij.openapi.externalSystem.model.ExternalSystemException: Failed to update the project!
2014-09-05 17:10:58,892: Checking to see if pants.pex version has changed ...
2014-09-05 17:10:58,907: Checking to see if generated BUILD.* files are outdated in /Users/zundel/Development/java ...
2014-09-05 17:11:01,688: Finish checking BUILD.* health in 2.796 seconds.
(using pantsrc expansion: pants goal depmap --depmap-project-info --depmap-project-info-formatted --exclude-target-regexp=:aux-)

    at com.twitter.intellij.pants.service.project.PantsResolverBase.resolve(PantsResolverBase.java:51)
    at com.twitter.intellij.pants.service.project.PantsProjectResolver.resolveUsingNewAPI(PantsProjectResolver.java:48)
    at com.twitter.intellij.pants.service.project.PantsProjectResolver.resolveProjectInfo(PantsProjectResolver.java:32)
    at com.twitter.intellij.pants.service.project.PantsProjectResolver.resolveProjectInfo(PantsProjectResolver.java:20)
    at com.intellij.openapi.externalSystem.service.remote.RemoteExternalSystemProjectResolverImpl$1.produce(RemoteExternalSystemProjectResolverImpl.java:41)
    at com.intellij.openapi.externalSystem.service.remote.RemoteExternalSystemProjectResolverImpl$1.produce(RemoteExternalSystemProjectResolverImpl.java:37)
    at com.intellij.openapi.externalSystem.service.remote.AbstractRemoteExternalSystemService.execute(AbstractRemoteExternalSystemService.java:59)
    at com.intellij.openapi.externalSystem.service.remote.RemoteExternalSystemProjectResolverImpl.resolveProjectInfo(RemoteExternalSystemProjectResolverImpl.java:37)
    at com.intellij.openapi.externalSystem.service.remote.wrapper.ExternalSystemProjectResolverWrapper.resolveProjectInfo(ExternalSystemProjectResolverWrapper.java:49)
    at com.intellij.openapi.externalSystem.service.internal.ExternalSystemResolveProjectTask.doExecute(ExternalSystemResolveProjectTask.java:48)
    at com.intellij.openapi.externalSystem.service.internal.AbstractExternalSystemTask.execute(AbstractExternalSystemTask.java:137)
    at com.intellij.openapi.externalSystem.service.internal.AbstractExternalSystemTask.execute(AbstractExternalSystemTask.java:123)
    at com.intellij.openapi.externalSystem.util.ExternalSystemUtil$2.execute(ExternalSystemUtil.java:406)
    at com.intellij.openapi.externalSystem.util.ExternalSystemUtil$3$1.run(ExternalSystemUtil.java:474)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl$TaskRunnable.run(ProgressManagerImpl.java:471)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl$6.run(ProgressManagerImpl.java:281)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:178)
    at com.intellij.openapi.progress.ProgressManager.executeProcessUnderProgress(ProgressManager.java:209)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:212)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:171)
    at com.intellij.openapi.application.impl.ApplicationImpl$10$1.run(ApplicationImpl.java:645)
    at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:419)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
    at java.lang.Thread.run(Thread.java:695)
    at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:149)

from intellij-pants-plugin.

ericzundel avatar ericzundel commented on May 28, 2024

Here is the output from pants goal list service/exemplar:: the command line

2014-09-05 17:13:31,559: Checking to see if pants.pex version has changed ...
2014-09-05 17:13:31,576: Checking to see if generated BUILD.* files are outdated in /Users/zundel/Development/java ...
2014-09-05 17:13:34,147: Finish checking BUILD.* health in 2.588 seconds.
(using pantsrc expansion: pants goal list service/exemplar/src/main/java:: --exclude-target-regexp=:aux-)
service/exemplar/src/main/java:lib

Here's how I checked to see that the log messages are going to stderr:

./pants goal list service/exemplar/src/main/java:: 2>/dev/null
service/exemplar/src/main/java:lib

from intellij-pants-plugin.

tejal29 avatar tejal29 commented on May 28, 2024

Hey Eric,

I am working on #5 right now. We will release a pants plugin next week with the fix to '#5'.

Can you reply to my previous comment?
"Other thing i can think of is:
Do you by any chance have a file named "pants" in gns/server or gns?"

from intellij-pants-plugin.

ericzundel avatar ericzundel commented on May 28, 2024

There are no files named 'pants' under gns/server.

I do have a 'pants' in the root dir and two directories named 'pants' in the repo.

from intellij-pants-plugin.

ericzundel avatar ericzundel commented on May 28, 2024

As I noted in https://rbcommons.com/s/twitter/r/998/, I'm wondering if it is the extra output from the pants wrapper and the message coming from the options set in the .pants.rc file that might be confusing the plugin.

from intellij-pants-plugin.

ericzundel avatar ericzundel commented on May 28, 2024

no, hereare all occurences of 'pants' in my repo:

find . -name pants
./pants
./squarepants/pants-test-app/src/main/java/com/squareup/pants
./squarepants/pants-test-app/src/test/java/com/squareup/pants

On Fri, Sep 5, 2014 at 5:26 PM, tejal29 [email protected] wrote:

Hey Eric,

I am working on #5
#5 right now.
We will release a pants plugin next week with the fix to '#5
#5'.

Can you reply to my previous comment?
"Other thing i can think of is:
Do you by any chance have a file named "pants" in gns/server or gns?"


Reply to this email directly or view it on GitHub
#8 (comment)
.

from intellij-pants-plugin.

ericzundel avatar ericzundel commented on May 28, 2024

I just installed the latest plugin from HEAD and now I am able to import these types of targets.

commit ba6fb87528825821698e9402175a846fc6f23683
Author: fkorotkov <[email protected]>
Date:   Wed Sep 24 09:20:31 2014 -0700

from intellij-pants-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.