Comments (10)
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.
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.
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.
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.
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.
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.
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.
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.
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.
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)
- master CI broken
- intellij 2020.1 support HOT 1
- use .python-version on project import
- intellij plugin uses --target-spec-file which was removed HOT 2
- import failed for Pants 1.25.0 when global python is not equal to local HOT 2
- Can't run pants on Mac with IntelliJ 2020.1.1
- No target roots found in build graph HOT 3
- Plugin incompatible with Intellij 2020.2 HOT 13
- "Rerun failed tests" for Scala crashes
- Detect and use Python virtual environment HOT 1
- Pants and Intellij 2020.3 HOT 6
- Travis CI is broken
- Propagate scalac plugin to IntelliJ module
- Incorrect module sources path HOT 1
- Import Project Failure, InvalidLocaleError: Your system's preferred encoding is `US-ASCII`, but Pants requires `UTF-8`
- Update for IntelliJ 2021.1 HOT 6
- After the system python version update to 3.9, I get "No valid Python interpreter found" [PANTS 1.30. IDEA 2020.2/2020.3] HOT 2
- Can't find Scala SDK for org.scala-lang:scala-library:2.13.5
- Cleanup scripts
- Investigate long runninf t
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from intellij-pants-plugin.