Trustpay Global Limited is an authorised Electronic Money Institution regulated by the Financial Conduct Authority registration number 900043. Company No 07427913 Registered in England and Wales with registered address 130 Wood Street, London, EC2V 6DL, United Kingdom.
For further details please visit our website at www.trustpayglobal.com.
The information in this email and any attachments are confidential and remain the property of Trustpay Global Ltd unless agreed by contract. It is intended solely for the person to whom or the entity to which it is addressed. If you are not the intended recipient you may not use, disclose, copy, distribute, print or rely on the content of this email or its attachments. If this email has been received by you in error please advise the sender and delete the email from your system. Trustpay Global Ltd does not accept any liability for any personal view expressed in this message.
--
You received this message because you are subscribed to the Google Groups "SonarLint" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarlint+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarlint/94b53460-cfb5-41b7-a3b7-966851202e39%40googlegroups.com.
I can't find how to add a SonarQube server - I end up on this window, which seems to be a dead-end
The binding doesn't seem to work on Windows for Maven projects: It tries to save a file containing the illegal ':' character in its name which fails
Firstly, thanks for getting this out to us. I have installed the snapshot, but am getting an exception analysing any file:Error during analysisjava.lang.NoClassDefFoundError: org/apache/log4j/Logger
Address: Phone: Direct: Email: |
22 & 24
Frederick Sanger Road | Surrey Research Park |
Guildford | Surrey | GU2 7YD 0207 871 3890 0207 871 3965 steve...@trustpayglobal.com |
Fail to request https://nemo.sonarqube.org/api/authentication/validate?format=json
java.lang.IllegalStateException: Fail to request https://nemo.sonarqube.org/api/authentication/validate?format=json
at org.sonarqube.ws.client.HttpConnector.doCall(HttpConnector.java:202)
at org.sonarqube.ws.client.HttpConnector.get(HttpConnector.java:144)
at org.sonarqube.ws.client.HttpConnector.call(HttpConnector.java:133)
at org.sonarsource.sonarlint.core.container.connected.SonarLintWsClient.rawGet(SonarLintWsClient.java:75)
at org.sonarsource.sonarlint.core.container.connected.validate.AuthenticationChecker.validateCredentials(AuthenticationChecker.java:36)
at org.sonarsource.sonarlint.core.container.connected.ConnectedContainer.validateCredentials(ConnectedContainer.java:69)
at org.sonarsource.sonarlint.core.SonarLintEngineImpl.validateCredentials(SonarLintEngineImpl.java:197)
at org.sonarlint.eclipse.core.internal.server.Server.testConnection(Server.java:219)
at org.sonarlint.eclipse.ui.internal.server.wizard.ServerConnectionTestJob.run(ServerConnectionTestJob.java:44)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)
Caused by: java.io.IOException: unexpected end of stream on Connection{nemo.sonarqube.org:443, proxy=HTTP @ [deleted]/[deleted]:80 hostAddress=[deleted] cipherSuite=none protocol=null} (recycle count=0)
at com.squareup.okhttp.internal.http.HttpConnection.readResponse(HttpConnection.java:211)
at com.squareup.okhttp.Connection.createTunnel(Connection.java:293)
at com.squareup.okhttp.Connection.connectTls(Connection.java:219)
at com.squareup.okhttp.Connection.connectSocket(Connection.java:201)
at com.squareup.okhttp.Connection.connect(Connection.java:172)
at com.squareup.okhttp.Connection.connectAndSetOwner(Connection.java:358)
at com.squareup.okhttp.OkHttpClient$1.connectAndSetOwner(OkHttpClient.java:117)
at com.squareup.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:329)
at com.squareup.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:246)
at com.squareup.okhttp.Call.getResponse(Call.java:276)
at com.squareup.okhttp.Call$ApplicationInterceptorChain.proceed(Call.java:234)
at com.squareup.okhttp.Call.getResponseWithInterceptorChain(Call.java:196)
at com.squareup.okhttp.Call.execute(Call.java:79)
at org.sonarqube.ws.client.HttpConnector.doCall(HttpConnector.java:199)
... 9 more
Caused by: java.io.EOFException: \n not found: size=0 content=...
at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:201)
at com.squareup.okhttp.internal.http.HttpConnection.readResponse(HttpConnection.java:191)
... 22 more
-------------------------------------------------------------------------->
CONNECT nemo.sonarqube.org:443 HTTP/1.1
Host: nemo.sonarqube.org
Proxy-Connection: Keep-Alive
User-Agent: okhttp/2.6.0
--------------------------------------------------------------------------<
HTTP/1.1 407 Proxy Authentication Required
Mime-Version: 1.0
Date: Thu, 17 Mar 2016 15:52:54 CET
Content-Type: text/html
Proxy-Authenticate: Basic realm="[deleted]"
Connection: close
Proxy-Connection: close
Content-Length: 1723
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" [...]
-------------------------------------------------------------------------->
CONNECT nemo.sonarqube.org:443 HTTP/1.1
Host: nemo.sonarqube.org
Proxy-Connection: Keep-Alive
User-Agent: okhttp/2.6.0
Proxy-Authorization: Basic [deleted]
--------------------------------------------------------------------------<
Nothing ... strange
Proxy usage : KO - Caused by: java.io.EOFException: \n not found: size=0 content=...
...
--
You received this message because you are subscribed to the Google Groups "SonarLint" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarlint+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarlint/2c5866ab-8120-4363-8982-74d5bc17906b%40googlegroups.com.
fixed issue with ":" in module key on Windows
added a link to trigger server update from the "bind wizard"
updated okhttp from 2.6.0 to 2.7.5 (@Alix let's see if it fix your proxy issue)
Authenticator.setDefault(new Authenticator() {
protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication(USER, PASSWORD.toCharArray());
}
});
final String url = "http://nemo.sonarqube.org/";
// final String url = "http://sonar.octavia.io/sonar/";
final HttpConnector connector = new HttpConnector.Builder().url(url).credentials(USER, PASSWORD).proxy(PROXY).proxyCredentials(USER, PASSWORD).build();
WsResponse response = connector.call(new GetRequest("api/server/index?format=json"));
System.out.println(response.code());
System.out.println(response.content());
[New question]
added a link to trigger server update from the "bind wizard"
The background is white and not grey ^^ (nitpicking mode :-p)
updated okhttp from 2.6.0 to 2.7.5 (@Alix let's see if it fix your proxy issue)
No :-(.
The problem occurs only on proxy+HTTPS (works fine with proxy + http SonarQube server).
Root cause seems to be in ok-io v1.6 (same version in okhttp 2.6.0 or 2.7.5).
I can reproduce it with the snippet code (using a simple url existing on SQ v4.5 & v5) :
Authenticator.setDefault(new Authenticator() {
protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication(USER, PASSWORD.toCharArray());
}
});
final String url = "http://nemo.sonarqube.org/";
// final String url = "http://sonar.octavia.io/sonar/";
final HttpConnector connector = new HttpConnector.Builder().url(url).credentials(USER, PASSWORD).proxy(PROXY).proxyCredentials(USER, PASSWORD).build();
WsResponse response = connector.call(new GetRequest("api/server/index?format=json"));
System.out.println(response.code());
System.out.println(response.content());
I will try to do the same request with Apache httpclient ... because I'm currently lost abotu this bug (specific to my company network or not ; in addition wireshark is not trivial on SSL content).
[New question]
If a project doesn't exist on SonarQube, can we "fake" bind it on a specific SonarQube server ?
The objective is to have the equivalent of "offline" mode but with some defaults profiles defined on a SonarQube.
I suggest we continue to discuss this issue on another thread.
The cleanest solution is to provision the project on the remote SQ server.
But currently nothing prevent you to bind any Eclipse project to any SQ module. You'll then use quality profile and settings of this module.
I suggest we continue to discuss this issue on another thread.
Agree, I will open one when I found news about this problem.
I have uploaded one more milestone on the same update site. Few small changes and one important bug fixed: project level settings defined in SonarQube server were not taken into account by SonarLint in connected mode.The plan is to publish the final release by the end of the week.
1) Manage the SonarQube minimum version requirement (mentioned as known limitation in first post)
2) Project selection in "manual mode"
When you want bind manually a project, the SonarQube Project zone is only clickable if you have previously select the project at left :
1) Manage the SonarQube minimum version requirement (mentioned as known limitation in first post)I will try to improve that (maybe in next version): https://jira.sonarsource.com/browse/SLE-44
Do you mean you can't edit the text field as long as row is not checked?
Is it affecting every Windows user?
--
You received this message because you are subscribed to a topic in the Google Groups "SonarLint" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sonarlint/-PSdJvdXErI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sonarlint+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarlint/CAD9wyxEQtDXbSYQLbOKAgT%3DxNPgSYMeSd8RPRv5%2BnH-p8MbQ2Q%40mail.gmail.com.
1) Manage the SonarQube minimum version requirement (mentioned as known limitation in first post)
When you configure a SonarQube v4.5 as endpoint (not supported, but LTS dude :)), the http://my.sonarqube.com/api/system/status URL throws a HTTP 404 (content doesn't exist).
In the SonarQube Servers view, the "update" on this server throws a error window with message "Unable to update data from server XXXX" ; the http 404 is displayed in details but a suffix in error message like "Only SonarQube v5.2 and more is supported" could be great.
This problem is a little more inconvenient when you don't use the SonarQube Servers view but directly the update function in Bind with SonarQube view : In this case when you click on "Update selected server", the message "Server is not updated" is always here (the error is in "Error Log" Eclipse tab, but not much users looks this). Perhaps the error message (see previous comment) could be writed somewhere.
2) Project selection in "manual mode"
When you want bind manually a project, the SonarQube Project zone is only clickable if you have previously select the project at left :
It is "logic", very minor when you have done once ... but a little disturbing the first time or when you have a multiple projects list.
Perhaps is there a way to have a selectable zone at right.
- If I edit the server and change the url, it doesn't seem to take effect. I need to remove it and add a new one for it to take a new url.
- When viewing issues it would be useful to see the squid/rule reference. This might already be there, but I cant seem to see it.
Is there an easy way to run the analyser over an entire (maven) project? I don't particularly want to have to individually analyse each class, especially in a large project.It'd be good to have an option to analyse at project, package, & source folder level?
I think moving the severity in the Issues view to it's own column would be great. A filter on this column would be awesome.
Found an issue in connected mode - issues in Lint do not match Qube. SonarServer was updated just before running Analyze. SonarQube results produced by cmd line sonar scanner.
We removed this feature to prevent SonarLint mission to be denatured. SonarLint focus on very fast on the fly analysis. What you expect is a batch process like SonarQube scanners do. This is not easy to achieve both in term of optimization. Issues view is not intended to display more than 100 issues.
If you want to do a full batch analysis of your project, then why not using SonarQube scanners and publish results in SonarQube itself?
There is a group by feature but then you'll loose the ability to sort by age:
That looks like what I'm after! Can I ask how you enable this?
--
You received this message because you are subscribed to the Google Groups "SonarLint" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarlint+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarlint/6e710bee-f9a5-4a4e-b594-042ce9de4f43%40googlegroups.com.
org.eclipse.swt.SWTException: Unable to create font "org.eclipse.jface.textfont" in a non-UI thread. Using default font instead.
at org.eclipse.jface.resource.FontRegistry.getFontRecord(FontRegistry.java:685)
at org.eclipse.jface.resource.FontRegistry.get(FontRegistry.java:616)
at org.eclipse.jface.resource.JFaceResources.getFont(JFaceResources.java:304)
at org.eclipse.ui.console.TextConsole.getDefaultFont(TextConsole.java:224)
at org.eclipse.ui.console.TextConsole.getFont(TextConsole.java:213)
at org.eclipse.ui.console.TextConsole.setFont(TextConsole.java:235)
at org.sonarlint.eclipse.ui.internal.console.SonarLintConsole.initStreams(SonarLintConsole.java:81)
at org.sonarlint.eclipse.ui.internal.console.SonarLintConsole.<init>(SonarLintConsole.java:65)
at org.sonarlint.eclipse.ui.internal.SonarLintUiPlugin.getSonarConsole(SonarLintUiPlugin.java:107)
at org.sonarlint.eclipse.ui.internal.SonarLintUiPlugin.start(SonarLintUiPlugin.java:56)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:771)
[...]
at org.eclipse.ui.internal.decorators.DecorationScheduler$1.run(DecorationScheduler.java:332)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
org.sonarlint.eclipse.core/servers/MySonarQube/url=http\://sonarqube.comany.com
org.sonarlint.eclipse.core/servers/MySonarQube/name=SonarQube
org.sonarlint.eclipse.core/servers/MySonarQube/auth=true
org.sonarlint.eclipse.core/servers/initialized=true
java.lang.IllegalStateException: Unable to find project for resource P/MyProjectXXX
at org.sonarlint.eclipse.core.internal.resources.SonarLintProject.getInstance(SonarLintProject.java:51)
at org.sonarlint.eclipse.core.internal.SonarLintCorePlugin$1.run(SonarLintCorePlugin.java:144)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
--
You received this message because you are subscribed to the Google Groups "SonarLint" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarlint+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarlint/2a5b776d-f6fd-4341-9386-35b114978161%40googlegroups.com.
With a fresh Eclipse Mars.2 install with the latest SonarLint M4, I'm having strange SonarQube view with read squares :
I have checked "Run SonarLint automatically", but still the view remains empty...
Is there a log file somewhere to help us find what is going on?
have a checkstyle customized rule in SonarQube server but I can't find any violations when I analyzed a file. I already updated the sonarqube server in my eclipse.
--
You received this message because you are subscribed to the Google Groups "SonarLint" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarlint+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarlint/CAD9wyxEE8-5NmBaOaJjVuPFDfx1HfsYHiX6A3OqT_nN%3DoZG7mQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarlint/CAPRX777LpgZEHddTGt_z%3DA0NFkyBghNHZg4%3DcVPdWY7UQsG0tQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Hi Gabriel,
Hi guys,I'm very please to start the feedback period for SonarLint Eclipse 2.0.The main feature is of course the connected experience.Update site:Release notes:We are especially interested by feedback regarding:* connectivity: authentication, proxy* usability: are all wordings clear, menus easy to find, wizards easy to use?* performance: compared to "standalone" mode with no relation with SonarQubeIn case of error don't forget to provide all details (look at SonarLint console in debug mode, and also in Eclipse "Error log" view).Known limitations:* Minimal supported SonarQube version is 5.2.* There is currently no issue tracking: it means there is no matching between issues reported by SonarLint and remote issues on SonarQube server. As a result issues flagged as false positive/won't fix are not muted in SonarLint. This will come in another version.More details:Typical use case:1) Configure a new server: either from "SonarQube server" view or use File -> New -> Others... -> SonarLint -> New Server2) After adding the server an update process should start and get all required data from server3) Bind your Eclipse projects with their remote project/module on the configured server. Select one or more projects -> SonarLint -> Bind with remote SonarQube server...The wizard allow to manually search for the matching remote project (by name or key) and also provide an "auto bind" feature that tries to find best match based on Eclipse project name.4) That's it! Now your code is analyzed by SonarLint using rules / quality profiles configured on the SonarQube server.5) If there is a change on server side (update analyzer, change quality profile, ...), you have to manually trigger an update for SonarLint to "see" it:Enjoy!