SonarQube Plugin and TI Code Composer 5 - eclipse

I am currently working on a TI Microcontroller platform using Code Composer 5.5 as the IDE. Our code baseline is analyzed by SonarQube to produce metrics and issue identification against a set of rules and standards.
SonarQube website mention support for Eclipse via a plugin. Since Code Composer 5 is Eclipse based I was able to install it but I cannot finish the configuration by linking the project as described. When I right click on the project in the Project Explorer there is no option to Configure then Associate with SonarQube.
Is there a way to make this menu option show or a command line method to make this association?

If I recall correctly, only projects with the following 'nature' can be associated with SonarQube:
Java (JDT) Project
C/C++ (CDT) Project
Pydev Project
If your TI Code Composer projects do not have one of these natures, you won't be able to associate them (at least with the current version of the Eclipse SonarQube Plugin).

Got help from our friends at TI E2E forums on this topic.
The reason I was unable to see the Configure and Associate menu options was due to the selected perspective. Code Composer 5 uses TI's default CCS Edit perspective which hides the expected menu options. If you change to the default Eclipse C/C++ perspective then the menu option shows up and configuration of the project to use SonarQube can be completed.

Related

Dynamic web project missing in STS

I am facing one issue with Spring tool suite 4, I don't see "Dynamic web project" option. I want to create one dynamic web project but I do not find this option in my Spring tool suite. How to install those external tool in Spring tool suite, however I got few link i.e http://download.eclipse.org/releases/mars for eclipse, should I use this link for Spring tool suite as well?
Solve this issue in Spring Tool Suite 4
Tested with 4.15.1 RELEASE
Go to Help -> Install New Software..
Enter eclipse software repo link (https://download.eclipse.org/releases/latest) in Work with input box.
You will get the list of available software. Filter the list by searching for Java EE related software. Search something like "java ee" to make things easier.
Choose Eclipse Java EE Developer Tools from the filtered list and proceed further with installation.
You may need to restart the STS IDE to install the update properly.
To solve this on STS 4.x.x
Go to Install New Software.
Select the main Eclipse update site for 2019-03 ( if not added, you must click o add button and paste this URL: http://download.eclipse.org/releases/2019-03 on both fields)
search for m2e-wtp There are four extensions showing up and you should install the ones you prefer.
Restart your IDE
see https://github.com/spring-projects/sts4/issues/96#issuecomment-484522744 on martinlippert comment
https://github.com/spring-projects/sts4/issues/96#issuecomment-484522744
Short version: fixed in Spring Tools 4.2.2 (coming in late May 2019), workaround is to install the m2e-wtp features from the main Eclipse update repo into an existing Spring Tools 4 for Eclipse install.
If you dont see dynamic web project in File->New and also in other
Then go to help -> install new software
copy paste this http://download.eclipse.org/releases/mars/ and click enter
if it is the first time then it take lot of time to download depends upon the internet
Once it get started downloading a pop will appear as trust click on that
After downloading make sure to restart STS and check whether dynamic web project is showing or not
check in file->new or else check in Others

How to deploy an Eclipse Plugin?

Environment: Eclipse Oxygen.3a Release (4.7.3a), Build id: 20180405-1200
I have completely developed my new Eclipse Plugin. I have debugged it successfully and It´s ready to be deployed for beta testing by other developers in my organization.
The Overview tab in plugin.xml Eclipse editor offers an Export Wizard that works and produces a .jar file (theoretically) containing the plugin to be installed in other Eclipse installations.
After exporting the plugin to a local folder in my computer I tried to install it in Eclipse by using Help > Install new software... > [Add...] > [Archive...], selecting the .jar file generated and clicking [Ok].
However, I get the error message "Could not find jar:file:*<the selected plugin file>*!" and the [Finnish] button remains disabled.
What is missing to make my new plugin fully installable?
The most robust way to publish a plug-in (or Feature) for others to consume is to produce an Update Site. Then you can direct users to that site so they can install your plug-is/features via the Install New Software UI. It also provides an easy way to publish updates to your plug-ins.
Here is documentation about creating an Update Site.

Hide standard toolchains from C/C++ project wizard

Our team is developing a custom toolchain. We want to build it in to Eclipse CDT. We don't want to see an excess element in a final product.
Is it possible to hide/disable/delete standard toolchains in C/C++ Project Wizard?
enter image description here
Previously, I hid a default Debug Configurations using org.eclipse.ui.activities extension point. This time it doesn't help we. I tried to remove CrossGCC plugin but a Unistall... button in Install Software is greyed out.
I use Eclipse Luna RCP (4.4.2) for plugin development.
I'm not very familiar with this part of CDT, but after doing a bit of code browsing, it seems like the extension points org.eclipse.cdt.core.templates and org.eclipse.cdt.core.templateAssociations may be relevant.
See how e.g. the current CDT code uses these extension points to associate a set of toolchains with a project template. If your plugins define their own project template(s), perhaps you could do something similar to control the list of associated toolchains?

Sonar Lint Eclipse Issue

I'm using Eclipse Neon and SonarQube 5.6.6(LTS). I've install sonarLint version 3.1.0. Following are my question.
In SonarLint whether there is an option to analyze the entire project? I can't able to find such option.
The issue showing in Eclipse reported by sonar lint is different from reported on server. When I'm wantedly creating the sonar issues(based on the rule) in eclipse but SonarLint is not recognizing . why?
From Eclipse I've made the connection to the SonarQube server and the connection was success, Whether it is using the activated quality profile rule?
After resolving the issues, how the issues will be reflected to the sonarQube server ? In case of Maven whether I need to add the sonar properties and sonar-maven plugin and trigger the build?
1. Select your project and in Eclipse's Quick Access, select Analyze - Analyze with SonarLint. You can also assign a keyboard shortcut to this action by going to Window -> Preferences -> General -> Keys.
2. It seems as if you are not running in connected mode. Connecting a SonarQube server is not enough, you also have to bind individual projects. To do this, right click on your project in Eclipse, and select SonarLint -> Bind to a SonarQube project... Search for the name of your project on the server by typing in the box under SonarQube project, as show in the following screenshot:
Once connected, a SonarQube symbol should appear on your project's icon in Eclipse.
3. Once connected, the quality profile of your SonarQube server project will be used.
4. SonarLint only provides on the fly feedback, but does not trigger any analysis server side. Personally I have a clean verify sonar:sonar Maven run configuration for my projects, and run it every now and again within Eclipse.
I recommend reading the SonarLint documentation for more information.
I personally recommend either to change your version or to be sure which configuration really applies to your machine. I had similar problem when i tried to associate my local project with the project name on Sonarqube Server . I was using Eclipse IDE for C/C++ Developers Version: Luna Service Release 2 (4.4.2) with Sonarlint version 4.0 . I uninstalled it(sonarlint) and installed the Sonarlint 3.6 version. After this i could associate my project with Sonarqube Server.
Hope it Helps the main question.

GWT module not detected by IntelliJ IDEA

I'm trying to enable GWT debugging in IntelliJ 14 Ultimate for an old project.
I have enabled gwt support in IntelliJ, downloaded the GWT version that is used by the project (2.2.0) and created a facet that targets that path:
I set it to target the web facet. I then got a warning about how the gwt compiler output and gwt-user.jar were not part of the artifact so I added them to it:
As I created the facet I added to the main app module. Finally I created a run/debug configuration where I specified the app module and enabled "User Super Dev Mode" but the "GWT Modules to load" field is disabled.
I built/compiled the project and am not getting any errors however I still can't see any GWT modules in the project Facets or Module sections.
This JetBrains article seems to imply that I should add framework support for GWT however I do not see it as an option when i right click the project>Add Framework Support..
Thank you
SuperDevMode was added in GWT 2.5; with 2.2 you're forced to use the legacy DevMode, with browser plugins, which means Internet Explorer or an old Firefox.
Unlike support for other frameworks, I cannot see GWT when I right click project root in Project tab and select "Add Framework support".
However, It still works when I select
Project Structure → Facets → Add → GWT
After a few hours of trying a bunch of different things (updated IDE, change JDK, recreate project, etc) the "culprit" turned out to be my VCS: I copied a colleague's local version and it IntelliJ was able to recognize the GWT module.
I was surprised since I had run multiple pulls (well 'updates' to be more exact since it is Perforce we're talking about) yesterday so I tried a force pull and voila... the modules are now showing:
Thanks for your replies Vojtech and Thomas!
I just had to move the gwt XML, for ex to the folder where client and server folders are. And Intellij recognised it.