"Unable to find the apex source" when running test in Winter 16' version - eclipse

I have this error message: "Unable to find the apex source" after running a test in the Winter 16' version of Apex in Eclipse, when the project is located in a Git depository. I mean that the test runs. Even shows, at the end, coverage results but there is no System Debug Log information, neither User Debug Log information and instead of writing the name of the class next to the "green V" signaling that the test passed, nothing is written and when I click on it, I have this error message.
Note that when the project is simply in the Eclipse workspace (not in a Git depository), there is no problem, and there is also System Debug Log and User Debug Log information.
I've tried to configure the test running configuration, but with no success.
Is there anyone who knows how to handle that?

Related

eclipse pydev debug source lookup

So I have anaconda installed and make a separate environment for all my projects. Normally I just use PYDEV to create a new interpreter pointing to the anaconda enviornment and load the project in eclipse and all is good. After doing the last one though 95% of the time I go to debug I keep getting the error
An internal error occurred during: "Debug Source Lookup".
java.lang.IllegalArgumentException
The other 5% it kind of works as I can follow one script or a function before it starts breaking.
I've tried reloading the project, interpreter and conda enviornment to no luck. All my past projects which use to work are also now giving the same error.
The funny thing is when I'm in the debug perspective though it does seem to be working (I can see the Variables and use the interactive console to test stuff), but anytime I try to step into, over ect I get the error (even though it does seem to be working). So for the image above I can go through the code fine until it tries to jump to the other file which throws the error, but if I step into it I can manually open that file and walk through the function (just each step throws the error) and still interact with the code which is in the position through the console.
Any ideas how to fix?
Well, it may be something specific to this use-case (for instance, if the code for some object is evaluated and the source code is not really available for the debugger this is actually expected).
Can you provide the full stacktrace from the error log? (see: http://www.pydev.org/faq.html#HowdoIReportaBUG for details on how to get it)

Click once application Deployment - Installation Error

I have created winform application using .Net Framework 4.5
I have created click once deployment package for it. But when i install it on server it gives me error as below
and the error upon clicking Details buttons shown as
ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of C:\Users******\Downloads\Publish******.application resulted in exception. Following failure messages were detected:
+ Downloading file:///C:/Users/******/Downloads/Publish/Application Files/********_1_0_0_3/*******.dll.deploy did not succeed.
+ Access to the path 'C:\Users**********\AppData\Local\Temp\2\Deployment\********.dll' is denied.
I have a similar problem on occasion. ...\Temp\2... seems to be a default folder for doing stuff. My clickonce deployment was getting blocked by a test run in Selenium using the same location to store its test logs.
Check if the location is being used by other processes to store files while they are working or see if you can clear the folder before starting the update (if you do an update in code vs just clicking the *.appref-ms file).
Also note that ...\Temp\2 can show up as a file instead of a folder thereby blocking any use of it as a folder.

Unknown version for SonarQube server (http://localhost:9000). Please check server is reachable

I Have installed Sonar in my system, and eclipse plugin of the same.
I am following below mentioned steps
Running StartSonar.bat
Going to my project directory where POM.XML is located of my project and run the command
mvn sonar:sonar
Eclipse SonarQuber : Analysis project .
I keep on getting error:
Unknown version for SonarQube server . Please check server is reachable.
And also , sonar analysis is not working from eclipse, I mean if I correct the error indicated by sonar and do sonar analysis again, it shows error at the same.
However if I do it from command prompt it is working fine. Please help me on this issue.
Though it is not a direct ans but still here is what I tried and worked for me.
Check if SONAR server is reachable. Read the question at https://stackoverflow.com/questions/20211215 to configure/correct the server connectivity issue. Point to note is providing username and password and testing the connection.
Navigate to your project root pom.xml in command prompt.
firemvn sonar:sonar
Results gets published in http://localhost:9000
The miraculously simple answer for me was:
Go to the sonar server preferences under Window->Preferences->SonarQube->Server
Choose the server and click edit
assuming you have entered the correct username and password (or nothing if the settings on your sonar server are allow anonymous analyzing)
Press test connection
On the top of the window it should state "Successfully connected!" and when you try to analyze the project again the error is gone.
May be a bug in the eclipse plugin.
After starting the sonar server which is installed in ur drive,,,
try to fetch with http://localhost:9000 and
give the test properties "admin" and "admin" as username and password.
It will work

Eclipse Maven debug - source not found

I am trying to debug a JUnit test case within a Maven project in Eclipse on my local machine and I am getting a "Source not found" error on my own test class. I went through all the other similar threads that I could find about the problem, but to the best of my understanding none of them addresses exactly my same problem, nor a solution for it. So here is the detail of what I have done:
Created a run configuration with the goals "-Dmaven.surefire.debug -Dtest=MyTestClass test"
Created a remote Java application that connects to localhost:5005. Added the base folder for the project in the "Source" tab.
Setup a breakpoint in MyTestMethod in MyTestClass. MyTestMethod has the #Test tag.
Run the run configuration in 1. The application stops listening on port 5005.
Debug the remote Java application in 2. The debugger window pops up and I see the thread with the stack trace of the classes where things are stopped. The debugger is stopped at the breakpoint that I setup. I can see the variables in this class and in other classes as well, but I get "Source not found" for MyTestClass. If I do "Edit source lookup path", my project is there as I added it in 2.
I am not sure what I am doing wrong. As an alternative, I have also tried to create another run configuration with -DforkMode=never. But if I try to debug that, I get the following error:
ERROR context.TestContextManager: Caught exception while allowing TestExecutionListener
[org.springframework.test.context.support.DependencyInjectionTestExecutionListener#2a46b75b]
to prepare test instance [MyTestClass#8afcd0c]
Thanks.

Headless build in Eclipse: how to retrieve result value

I'm trying to use Eclipse CDT's headlessbuild feature for integrating Eclipse with TeamCity. I use a command line call to build my projects as descriped in this question. If there is a compilation error, a message box pops up saying "Java was started but returned exit code=1". I'd rather not have this message but get the return code so I can process it further in my script. Is there any way to do this?
Thanks!
You can suppress the popup and redirect output to be included with your script:
Add "--launcher.suppressErrors" to your command line arguments for eclipse
The error needs to be tracked down in the GUI from what I can tell, because the headless mode doesn't support very good error reporting from sub-tasks yet.
From there I used output from the GUI-based build to narrow down why my project failed to build.
Sources:
http://dev.eclipse.org/mhonarc/lists/cdt-dev/msg15343.html
http://www.eclipse.org/forums/index.php?t=msg&goto=481938&S=c88d71260a7d130eebdccb8f2e5537f2
http://www.eclipse.org/forums/index.php?t=msg&goto=481938&S=c88d71260a7d130eebdccb8f2e5537f2
https://bugs.eclipse.org/bugs/show_bug.cgi?id=209080#c21