Everlaw / nbts

NetBeans TypeScript editor plugin
283 stars 46 forks source link

Navigate (goto declaration) does not work after NetBeans restart #56

Closed codecoster closed 8 years ago

codecoster commented 8 years ago

Using NetBeans IDE, Version Dev (Build 201607090002), I have problems with the goto-declaration feature of the plugin (nbts Version 1.8.10.1, probably related to #47) Steps to reproduce:

Now, when you open the src/app/app.component.ts file, you can jump for example into the '@angular/core' file as expected. However, if you close NetBeans and then reopen it, this goto-declaration will not work anymore.

Closing and reopening the project won't help, and never got it to working again

Project is a simple angular-cli project (angular-cli: 1.0.0-beta.9)

everflux commented 8 years ago

I have the same problem. Hypothesis: Related to source folders in NetBeans project? Is there anything I can provide to help triage the cause? (I checked NetBeans messages.log, nothing that is immediately obvious as a problem)

markiewb commented 8 years ago

@mark-everlaw: Check the position attribute of your hyperlinkext in the layer.xml. Perhaps your implementation has not the priority anymore?

jeffrey-easyesi commented 8 years ago

You can't jump to files in ../node_modules because they're outside of the source root so the Java side of the plugin is unaware of them.

everflux commented 8 years ago

But it works correctly until a NetBeans restart. Is that due to having the project as a source root lingering around from the initial import? I have opened this improvement request, would that fix the problem? https://netbeans.org/bugzilla/show_bug.cgi?id=262747 Please vote for it, if it would help :)

jeffrey-easyesi commented 8 years ago

Fixed in release 1.8.10.2, you can now jump to things defined outside the project just like you can jump to things defined in lib.d.ts.