Genuitec » All Posts https://www.genuitec.com/forums/feed/ Thu, 18 Oct 2018 13:48:10 +0000 http://bbpress.org/?v=2.5.14-6684 en-US https://www.genuitec.com/forums/topic/code-mining/#post-600702 <![CDATA[Reply To: Code mining]]> https://www.genuitec.com/forums/topic/code-mining/#post-600702 Wed, 17 Oct 2018 22:34:32 +0000 beleta1 Yes it seems that your finding is correct. The problem is fixed in all the files that had reference problems.

Thanks a lot.

Jose M Beleta

]]>
https://www.genuitec.com/forums/topic/code-mining/#post-600698 <![CDATA[Reply To: Code mining]]> https://www.genuitec.com/forums/topic/code-mining/#post-600698 Wed, 17 Oct 2018 21:13:26 +0000 ignaciom Hey,

Seems we’ve found a fix for this issue, could you please try the following:

1. Close your eclipse.
2. On windows look for:
~/.codemix/engine/resources/app/out/vs/workbench/workbench.main.js
2. On OSx look for:
~/.codemix/engine/CodeMix Engine.app/Contents/Resources/app/out/vs/workbench/workbench.main.js
3. Replace this file with the one I’m attaching here, first uncompress it.
4. Start your eclipse, you can have a message saying that the Code Mix Engine is corrupt, lets ignore this for now.
5. Check the reference annotations. Are they better?

Best Regards
Ignacio

Attachments:
You must be logged in to view attached files.
]]>
https://www.genuitec.com/forums/topic/typescript-documentation-view/#post-600684 <![CDATA[Reply To: Typescript Documentation View]]> https://www.genuitec.com/forums/topic/typescript-documentation-view/#post-600684 Wed, 17 Oct 2018 18:49:58 +0000 kferrone Thank you hearing me out. Always looking forward to awesome Codemix updates!

]]>
https://www.genuitec.com/forums/topic/code-mining/#post-600680 <![CDATA[Reply To: Code mining]]> https://www.genuitec.com/forums/topic/code-mining/#post-600680 Wed, 17 Oct 2018 16:40:02 +0000 ignaciom Thanks for sharing this project, we do appreciate your feedback. I’ll import it to my workspace and do some more investigation, I’ll keep you posted.

Ignacio

]]>
https://www.genuitec.com/forums/topic/code-mining/#post-600676 <![CDATA[Reply To: Code mining]]> https://www.genuitec.com/forums/topic/code-mining/#post-600676 Wed, 17 Oct 2018 15:52:26 +0000 beleta1 Hi Ignacio,

From your comments it could be deduced that the problem I have is because there is some particular reference structure in my project.

The problem is that it seems that this or similar particular structures exist in all my projects because all them show problems in displaying references. Both on Windows and Mac.

I am including here a simple project based on the official Angular tutorial that seems quite simple. This project also shows the reference problems in several files. Would you be so kind to test it if you find the same problems as me. Im finding problems in hero.service.ts (no references shown after method getHeroes), heroes.component.ts (no reference after method add), hero-search.component.ts (no reference after method search), hero-detail.component.ts (no reference shown after method getHero)

Thank you in advance and best regards

  • This reply was modified 1 day, 2 hours ago by  beleta1.
  • This reply was modified 1 day, 2 hours ago by  beleta1.
Attachments:
You must be logged in to view attached files.
]]>
https://www.genuitec.com/forums/topic/validation-errors-2/#post-600671 <![CDATA[Reply To: Validation Errors]]> https://www.genuitec.com/forums/topic/validation-errors-2/#post-600671 Wed, 17 Oct 2018 14:51:50 +0000 gtsiou Hello Brian. I also have the same problem on a react project and ts-ignore is not a sustainable solution. The TypeScript validator should not be there at all for jsx files.

Please aim to fix this in a proper way and not with a work around.

]]>
https://www.genuitec.com/forums/topic/unable-to-create-component-due-to-source-folder-url-bug/#post-600644 <![CDATA[Reply To: Unable to create component due to "Source Folder" url bug?]]> https://www.genuitec.com/forums/topic/unable-to-create-component-due-to-source-folder-url-bug/#post-600644 Wed, 17 Oct 2018 10:45:47 +0000 support-swapna Jason,

Thank you for the log file. The dev team is looking into this issue.
They will get back to you soon.

Apologies for inconvenience caused.

–Swapna
Genuitec Support

]]>
https://www.genuitec.com/forums/topic/cannot-add-maven-support-to-a-new-project-after-upgrade-to-cl-2018-9-0/#post-600636 <![CDATA[Reply To: Cannot add Maven support to a new project after upgrade to cl 2018.9.0]]> https://www.genuitec.com/forums/topic/cannot-add-maven-support-to-a-new-project-after-upgrade-to-cl-2018-9-0/#post-600636 Wed, 17 Oct 2018 06:36:30 +0000 support-swapna crooksb,

Please see my response to your concern here : https://www.genuitec.com/forums/topic/ide-cannot-add-maven-support-to-project/

–Swapna
Genuitec Support

]]>
https://www.genuitec.com/forums/topic/ide-cannot-add-maven-support-to-project/#post-600635 <![CDATA[Reply To: IDE cannot add Maven support to project]]> https://www.genuitec.com/forums/topic/ide-cannot-add-maven-support-to-project/#post-600635 Wed, 17 Oct 2018 06:31:34 +0000 support-swapna crooksb,

Sorry that you are seeing this problem.
It looks like there is a problem downloading the required dependency to your maven local repository.

1. Are you behind a firewall or proxy? If yes, then did you setup the proxy details in the IDE here : Window > Preferences > General > Network Connections? In addition to setting up proxy details in the IDE, you should also configure the maven settings.xml with the proxy details and set the path to the settings.xml file in the IDE here : Window>Preferences>MyEclipse>Maven4MyEclipse>User Settings

If the settings.xml file is not yet there, then you need to create one called settings.xml in [user]/.m2 directory and add in the bits for the proxy: http://maven.apache.org/settings.html

2. Can you please clarify if there is a folder for 2.6 in
[user home]/.m2/repository/org/apache/maven/plugins/maven-resources-plugin/ ? If yes, then delete it, right click on the project > Maven > Update Project, check ‘Force Update of Stapshots/Releases’ and see if it fixes the problem.

3. If the above suggestion does not work, then you can add the missing plugin entry to the project’s pom.xml, try the Maven > Update Project with ‘Force Update of Stapshots/Releases’ checked. Once the Maven downloads the plugin, you can remove the entry from the pom.xml.
Here is the code snippet to add to the pom.xml :

4. If none of the suggestions work, then please share with us the complete workspace log file located at workspace dir/.metadata/.log (rename it to .txt and attach it) along with details about your network, if you have any anti virus software running which might be blocking the download of the plugins from the maven repo etc.

Apologies for inconvenience caused. Please let us know how you get on with it.

–Swapna
Genuitec Support

]]>
https://www.genuitec.com/forums/topic/code-mining/#post-600631 <![CDATA[Reply To: Code mining]]> https://www.genuitec.com/forums/topic/code-mining/#post-600631 Tue, 16 Oct 2018 23:56:15 +0000 ignaciom Hey,

The good news is that we are having consistent results for your project a cross different OSs. So We’ve started an investigation on what could be the issue here and found some interesting stackoverflow links talking about bad reference count, like what you have on your side, you can read about one here: https://stackoverflow.com/questions/20823805/codelens-not-showing-references

Although, the investigation did not end there, we followed on code how the references get calculated and found that, on the background is that the Typescript Language Server who is not returning a valid response when it get asked about the reference count to a given symbol in the file by sending the position where the symbol can be found in the file.

There should be something about this particular project/file reference structure that is causing the analysis to not complete. Unfortunately I can’t point you on what things to look for on your project.

Please do not hesitate to ask any other question.

Best Regards
Ignacio

]]>
https://www.genuitec.com/forums/topic/code-mining/#post-600630 <![CDATA[Reply To: Code mining]]> https://www.genuitec.com/forums/topic/code-mining/#post-600630 Tue, 16 Oct 2018 22:15:42 +0000 beleta1 As I said in my edited reply https://www.genuitec.com/forums/topic/code-mining/#post-600614 the problem in Mac was a configuration one, the codelens setting were set to false. I did get some references in Mac as in Windows.

Regarding VSCode, no, I just used it once or twice.

]]>
https://www.genuitec.com/forums/topic/code-mining/#post-600627 <![CDATA[Reply To: Code mining]]> https://www.genuitec.com/forums/topic/code-mining/#post-600627 Tue, 16 Oct 2018 21:45:10 +0000 ignaciom Thanks for all the details, we are now looking at these files. After a quick look on the OSx one it does look like the CodeMix engine is sending some of the Typescript reference count. Could you confirm that on this last run you did not get the reference count annotations on OSx?

Out of curiosity, do you regularly use VSCode? Just asking this to know if there could be some installed extensions out of what is installed via Eclipse, using the shared ~/.vscode.

I Will get back to you once we know more about this.

Best Regards
Ignacio

]]>
https://www.genuitec.com/forums/topic/code-mining/#post-600624 <![CDATA[Reply To: Code mining]]> https://www.genuitec.com/forums/topic/code-mining/#post-600624 Tue, 16 Oct 2018 21:40:11 +0000 beleta1 And these are the Windows logs:

Attachments:
You must be logged in to view attached files.
]]>
https://www.genuitec.com/forums/topic/code-mining/#post-600621 <![CDATA[Reply To: Code mining]]> https://www.genuitec.com/forums/topic/code-mining/#post-600621 Tue, 16 Oct 2018 21:27:45 +0000 beleta1 I am including here the Mac logs.

Attachments:
You must be logged in to view attached files.
]]>
https://www.genuitec.com/forums/topic/code-mining/#post-600620 <![CDATA[Reply To: Code mining]]> https://www.genuitec.com/forums/topic/code-mining/#post-600620 Tue, 16 Oct 2018 21:02:31 +0000 ignaciom Hey,

Thanks for the screenshots, you are right this looks a bit odd, now that you mention that there are differences between osx and windows, it will help a lot if you could re-run this tests with an additional System property that generate some extra logging so we can follow the trace of this issue. To enable this property please follow these steps:

1. Shutdown your Eclipse
2. Edit the eclipse.ini file and add the following lines at the end of the file:
-Dcom.genuitec.eclipse.engine.log=true
-Dcom.genuitec.eclipse.engine.log.verbose=true
3. Start Eclipse again and try to get the reference count again in these same files you’ve taken the Screenshots.
4. This will generate some files at ~/.codemix/yyyy-mm-dd-hh-mm-ss.log

Once you are done just remove the lines from the eclipse.ini and restart your Eclipse so you don’t keep creating these extra log files. If you can, run these steps on both mac and windows.

Could you please share with us this log file, along with your workspace log files.

Best Regards
Ignacio

]]>