This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 270726 - IllegalArgumentException: TreePathHandle [/Users/Ike/NetBeansProjects/XRM-APP-Daniel-2/src/main/java/co/xideral/service/XdpTranx.java] was not created from /Users/Ike/NetBeansProjects/XRM-APP-Daniel-2
Summary: IllegalArgumentException: TreePathHandle [/Users/Ike/NetBeansProjects/XRM-APP...
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-24 01:58 UTC by ikeblissstar
Modified: 2017-05-24 01:58 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 212217


Attachments
stacktrace (1.84 KB, text/plain)
2017-05-24 01:58 UTC, ikeblissstar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ikeblissstar 2017-05-24 01:58:36 UTC
Build: NetBeans IDE 8.0.2 (Build 201411181905)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.101-b13, Java(TM) SE Runtime Environment, 1.8.0_101-b13
OS: Mac OS X

User Comments:
GUEST: i try to run a file with math.random and my class got deleted

intento correr el archivo usando la funcion ramdom y me borra la clase

ikeblissstar: I was refreshing the pry

GUEST: Did not noticed that happend

GUEST: Added a new dependency on a pom.xml file

The following:
<groupId>org.apache.commons</groupId>
    <artifactId>commons-csv</artifactId>
    <version>1.0</version>

While the index was looking for the list of valid version, it threw an exception.

GUEST: g

GUEST: Finding the source of an Interface that exists in my codebase but yet somehow a dependent class shows the Interface as not available in a dependent project.

WHen I go into the dependent interface manually and toggle the source it seems to resolve this issue.

It seems to update user workspace that is persisted differently than the actual code or complied classes.

the workspace seems to get out of sync and many interfaces appear as not existant after pulling updated code from our git account.
Most people here use eclipse as they like the flagging of unused variables and they like their own autoformatting behavior.

GUEST: Dont know what happened and diddent notice...

GUEST: The file "JvnStructSharedObj.java" is in a git repository, i rename this file and made some modifications in the repo, but  i haven't commit yet.




Stacktrace: 
java.lang.IllegalArgumentException: TreePathHandle [/Users/Ike/NetBeansProjects/XRM-APP-Daniel-2/src/main/java/co/xideral/service/XdpTranx.java] was not created from /Users/Ike/NetBeansProjects/XRM-APP-Daniel-2/src/main/java/co/xideral/service/XdpTranx.java
mine: id=/Users/Ike/NetBeansProjects/XRM-APP-Daniel-2/src/main/java/co/xideral/service/XdpTranx.java@6640a931:2ffc2ddd, url=file:/Users/Ike/NetBeansProjects/XRM-APP-Daniel-2/src/main/java/co/xideral/service/XdpTranx.java
remote: id=/Users/Ike/NetBeansProjects/XRM-APP-Daniel-2/src/main/java/co/xideral/service/XdpTranx.java@6640a931:6d4b4f5f, url=file:/Users/Ike/NetBeansProjects/XRM-APP-Daniel-2/src/main/java/co/xideral/service/XdpTranx.java
   at org.netbeans.api.java.source.TreePathHandle$TreeDelegate.resolve(TreePathHandle.java:459)
   at org.netbeans.api.java.source.TreePathHandle.resolve(TreePathHandle.java:154)
   at org.netbeans.modules.java.hints.introduce.IntroduceMethodFix.computeIntroduceMethod(IntroduceMethodFix.java:142)
   at org.netbeans.modules.java.hints.introduce.IntroduceHint.computeError(IntroduceHint.java:402)
   at org.netbeans.modules.java.hints.introduce.IntroduceHint.run(IntroduceHint.java:237)
   at org.netbeans.modules.java.hints.introduce.IntroduceHint.run(IntroduceHint.java:137)
Comment 1 ikeblissstar 2017-05-24 01:58:41 UTC
Created attachment 164394 [details]
stacktrace