How to enable globe icon right next to #PostMapping in Intellij - spring-boot

I am using java 18 on intellij trying to learn SpringBoot. I see that we can run httpclient clicking on globe icon that can be seen right next to "#PostMapping", but I do NOT see it. WHY?? Why does "setting up"/configuration part annoys the hell out of software engineer? Please HELP ME

It's available in IntelliJ Enterprise version.
It gives 3 options 'Go to declaration or usage', 'Generate request in HTTP Client' & 'Show all endpoints of module'

Related

Received 403 from server (Forbidden)

Please i need someone to help me out of this, am new, I got these error while trying to build apk
Could not GET 'http://dl.bintray.com/jlmd/maven/com/faltenreich/skeletonlayout/2.0.1/skeletonlayout-2.0.1.pom'. Received status code 403 from server: Forbidden
along side this error:
Disable Gradle 'offline mode' and sync project
[Error .apk]
New location to toggle Gradle's offline mode To enable or disable
Gradle's offline mode, first select View > Tool Windows > Gradle from
the menu bar. Then, near the top of the Gradle window, click Toggle
Offline Mode Gradle offline button in the Gradle panel..
Please check first whether Offline mode is truly deactivated via Help / Find Action...: Type "offline mode" into the dialog and check whether "Toggle Gradle Offline Mode" is set to "Off". If it was set to "On", toggle it and try syncing again.
If this does not work, the problem might have something to do with the sunset of JCenter. Try a more current version of this library, e.g. com.faltenreich:skeletonlayout:4.0.0 which is hosted on MavenCentral (mavenCentral())and remove JCenter (jcenter()) from your repositories. Then try syncing again.
Disclaimer: Am developer of the library from the error message

Code Coverage Error in Rational Application Developer: "Must specify a URL scheme"

IBM Rational Application Developer For WebSphere Software
Version 9.6.1.1
Build ID: RADO9611-I20180321_1710
I have a problem seeing code coverage report in IBM RAD after enabled "code coverage" in the project properties. After running my app in the browser, the "code coverage panel workspace results" did not show the report for the active project. Instead, it displays Must specify a URI scheme; Project: MyProjectName.
The popup box says 'Generating workbench report for MyProjectName' has encountered a problem. Report not generated, Please see log for additional details. Must specify a URL scheme.
However, I did not see anything related to code coverage in the server log at all.
Welcome all advice, thanks in advance.
Based on my research , it appears that “Enable filter customization” option has to be checked in the “Server Filter Set” panel. Otherwise, one will see “Must specify a URL scheme” issue.

Test in cloud button has gone

I made a 'Xamarin UI Test' Project to test my app.
I was able to click in the button like this: Run in Test Cloud button.
But now i made my test using the Repl() and want to run it in the cloud the button has gone away.
What i have to do to fix it?
Cause of the Issue
It looks like you are hitting this bug: Bug 52372 - "Run in Test Cloud" option no longer appears in menu on C9
That issue is reported on this version for Xamarin 4.3.0.636. Note that it may happen in other versions but this is the initial version the bug was reported against. You can track the status of that issue either directly in the report on Xamarin's bugzilla, and/or you can watch for a release announcement on the Xamarin Releases Blog.
Workarounds
Downgrading Xamarin
While waiting for a fix to become available, you can downgrade to the previous Cycle 8 version of Xamarin by going to “Get the latest stable version of Cycle 8” section on your account page: https://store.xamarin.com/account/my/subscription/downloads#cycle8.
Uploading to Test Cloud via the Command Line
Alternatively, you can upload tests to the Test Cloud through the command line. To do this log into https://testcloud.xamarin.com & click "New Test Run" at the top. (Note this option is only visible if you have a currently valid Test Cloud account or trial.)
This launches a wizard which will have you pick some options (like whether you want to use Android or iOS; etc.), and at the end will generate a prototype command line. Below is an example for Android:
packages\Xamarin.UITest.[version]\tools\test-cloud.exe submit yourAppFile.apk [API_KEY] --devices [DEVICE_HASH] --series "master" --locale "en_US" --user [EMAIL] --assembly-dir pathToTestDllFolder
Note: I have removed the [API_KEY], [DEVICE_HASH] & [EMAIL] values for privacy reasons, however these will automatically be included when you generate the prototype from the wizard in Test Cloud.
You will still have to manually update the Xamarin.UITest.[version] as well as the actual names and relative paths of yourAppFile.apk & pathToTestDllFolder for this approach to work.

Telerik Test Studio - Run this test button is disabled

I have downloaded the latest test studio from Telerik website.
I have created a test based on the Sample tests (Load Tests) shipped with telerik. However, When I am trying to run the test I get this error "We are unable to run the tests. Please make sure that the controller that you are using have enough users allocated..." . Also the Run this test button is disabled. So I canNot run the test.
I tried to record a new test and still same result.
Does anyone knows what is this issue. I am following the guide on this video: http://www.youtube.com/watch?v=Ekx7hjtDSbM&feature=c4-overview&list=UUSTKUvLyGUg-TIuN5qW48ZA
Does anyone know what this error is?
thanks
You have to do the following to make it work:
Click on manage icon.
Then on Add Scheduling Service.
Type in the Computer Name/IP, test connection and click ok.
Drag the slider in the balance column to set the number of users and save settings.
Its very easy. First you need to configure your controller.
1.Click on 'Manage' button.
2.'Manage Users' window will opens.
3.Click on 'Add Scheduling Service' button.
4.'Add Scheduling Service' window will opens.
5.Enter your 'Computer Name/IP'.(How to find name of your computer :http://windows.microsoft.com/en-in/windows/find-computer-name#1TC=windows-7).
6.Click on 'Test Connection'.
7.If you enter correct 'Computer Name/IP' then success message will appear 'Great! We were able to connect to that Scheduling Service'
8.Click 'Ok'
9.Finally 'Save'.
You can see that 'Run Test' will get enable. :)

How to debug play2 in idea?

I found some articles on the internet and some discussions on google group, but they don't work any more.
How to do it with the latest play2-RC3 ?
You can start the play server in debug mode from console [docs], and should be able attach a debugger instance from Idea given that you know the port debugger is listening on.
I haven't use Idea so not sure if it is doable or not. It is fairly easy from netbeans. I suspect, it should be similar from Idea.
EDIT: They have also posted this in their customization guide for IDEs.
Debugging Play 2.x is very easy with IntelliJ IDEA 12.x, here are the steps you have to do:
Step 1. Enable the Play Framework Support plugin and the Play 2.0 Support plugin in File > Settings > Plugins.
The generic plugin usually comes with IntelliJ but make sure it's enabled. The Play 2.0 Support plugin can be downloaded by clicking Install Jetbrains plugin.... Simply locate and install the plugin from the list, the latest working version for 12.x is v.0.2.49. (it may prompt that a Scala plugin needs to be installed aswell)
Step 2. Create a new Play app if you haven't or use an existing one
Step 3. Create a new Debug configuration: Run > Edit configurations...
You can click the + icon in the top left corner to add a new configuration. Simply select Play 2 app from the list and give the configuration a name. The default options should be correct but feel free to change them if necessary. When done, click Apply and Ok.
Step 4. Your toolbar should now have a Run icon and a Debug icon enabled.
Simply click the green arrow to run the Play application. This is the equivalent of doing play run from the commandline (except without the commandline).
To debug, click the green bug, next the the arrow. This is the equivalent of doing play debug from the commandline.
You will now be able to debug when a breakpoint is encountered.
Notes:
Make sure there is only 1 configuration running at a time because Play doesn't like multiple instances running at the same time.
If you're having trouble compiling, do a play clean-all and play package on the commandline, this should resolve most problems. If there are further problems, also try play idea from the commandline.
Make sure the Play configuration is filled in in your settings. You can do this by going to File > Settings > Play Configuration.
A video of these steps can also be found in this video by James Ward (start at around 1:40 min.).
Go to Run -> DEBUG -> Edit Configurations
use "Remote" Configuration and set the Port to 9999

Resources