eclipse stop popup "Web launch already running" - eclipse

I am developing in PHP with Xdebug and for some reason every now and then the debug session stops working, so i click again the debug button but it gives me this error all the time "Web launch already running", so i have to go to Debug Perspective and click "Terminate and Relaunch".
Is there a way to make eclipse automatically terminate and relaunch or launch two sessions or don't show this popup, for 2 years this popup has been bugging me xD

As noted in response to questions like this one and this one, the best current solution appears to be binding "Terminate and Relaunch" to a keyboard shortcut.
Not automatic, but at least a lot less clicking around.

I have taken care of pesky popups in Eclipse with AutoHotkey script which have worked very well. I could create an AutoHotkey script which sends specific keystrokes automatically every time there is a specific pop-up.
So the flow I had in mind was as follows :
You click on the debug button -> The Error popup appears and as soon as that happens the AutoHotKey script kicks in and automatically does what you have to do manually.
If you think that might be worth looking into then we can talk more in a Chat session somewhere. I would need some information about the Pop up using the AU3_Spy.exe bundled with the AutoHotkey Installer.

Searching on Google, I found that many people have the same problem.
Bellow are some links that help you, I think:
https://aptanastudio.tenderapp.com/discussions/questions/123-definitive-installation-guide-for-php-debugging-on-linuxubuntu
A good article: http://www.latenightpc.com/blog/archives/2008/05/24/a-complete-lamp-development-environment-xampp-eclipse-pdt-and-xdebug
See this, too: http://www.eclipse.org/forums/index.php/m/57493/
Take a look here, too: Getting error in XDEBUG
So, read and try, read and try.

Related

How to disable the "Get Started" tab in Theia before the first execution?

I have a Theia IDE built in a docker.
Every time I launch a new docker and open a python file for the first time, I got some annoying pop-up:
A new tab: Python - Get Started
A pop up: Linter pylint not installed
Both have a Do not show again option. However, it does not work in my use case because every time a user connects, he will get a new Docker.
I tried to look in the settings and preferences but could not find where to disable these pop-ups.
I also tried to look at the settings files (launch.json for example) after having clicked the Do not show again button but nothing change.
The perfect solution for me would be to add a line in the launch.json file to tell Theia to never display those pop-up in the first place but I am not sure it is possible.
If you know a way to do it (in the launch.json or another way) I would be pleased to hear it!
If you know how to do it in VS code I would also be pleased to hear about it as Theia took a lot from VS code
Thanks!
I finally found the answer by observing which files were changed last on the docker.
I found out that you have to write "python.showStartPage": false in /home/theia/.theia/settings.json
However, it was not enough, I also had to add some lines in /home/theia/.theia/plugin-storage/global-state.json.
I don't know which lines exactly as I just copied-pasted the full file from a previous execution. But I would guess that it is one of the lines beginning with gettingStarted.overrideCategory

How to install/run autohotkey without admin privileges?

I followed this tutorial: http://www.thenickmay.com/articles/how-to-install-autohotkey-without-admin/
At Step #6, I opened AutoHotkeyU64.exe and it opened up the help file for AutoHotKey.
Then I went through the tutorial and tried out the script they give:
^j::
Send, My First Script
return
I saved this as tutorial.ahk, then opened a new notepad file and pressed ctrl+j. Nothing happened.
Anyone know what's going on? I've never used autohotkey before, btw.
Since I was able to install it normally, I can't say for certain, but I believe there is a skipped step (or two) in the instructions.
After step 5, run (double-click) your .ahk script. If you get a message asking
"How do you want to open this file", choose "More apps", then "Look for another app on this PC" (see image below), then navigate to and choose AutoHotkey.exe or AutoHotkeyU64.exe. Be sure to keep the checkbox checked to "Always use this app to open .ahk files" so that you only need to do this once on your machine.
I am late to the party and dunno if anyone's left drinking here, but I want to run ahk just to fix that darn copy/paste function on cmd/erp ... Hope this works

This error keeps showing up on my desktop

This Javascript error keeps showing up on my desktop, and when i delete it another one will pop up.
Can anybody with knowledge about this please help me?
Oh the image is on Danish so yeah. Translated it says that there was a script-error with the script, and asks if i still want to play the script on this site.
Solution Found
Go to Control Panel
Go to Programs and Functions
See if there is any program that refers to the url-error-message you got, and if there is, delete it.
Note If the program is a program that you need to have for running your system or just an important program, don't delete it, there could be other ways to fix it.
Other ways to fix it
1. Start up the installer that you used to install the program, if there is a button that says "Repair software/program" or something like that; tap the button.
If there isn't a button that says "Repair software/program" (or something like that); try to install the program again.

Eclipse : how can I disable this popup?

I'm sorry if this question has been ask before or can be found on the net. I have no idea how do I call this popup. I have no idea of the keyword to google. I tried "popup", "dialog", "confirmation" and a lot else but didn't success.
Back to the question, I've just migrate to my development machine and did fresh install for Eclipse. After that, I copy all the setting in workspace/.metadata folder from my previous machine to the new one. Everything looks fine (theme, key bindings and else) except that I have this popup appearing whenever I press some shortcut. For example, Ctrl+Space to bring up the code assist, the following dialog appears.
This popup never appeared before in my previous machine. It is annoying since I have to hit enter once every time I press those shortcut. Do you have any idea how can I turn this off?
Best
Note
I don't think this popup is code assist specific issue, I brought code assist up as an example. I also got this popup when I press shortcut to
Open Resource
Run
Refactor/Rename
Add getter/setter
and 10s other shortcut too. Also, I don't have conflict shortcut. Not that I know.
This question may have been answered here already: Disable content assist in Eclipse
Refer to the following link for the documentation on Content Assist: http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.cdt.doc.user/reference/cdt_u_c_editor_con_assist.htm
The point is to disable the actions that trigger the Content Assist.

How to get back the focus to my application automatically

I am setting up a simple 'boot menu' for my app, where the (experienced) user can check or uncheck various run options. The boot menu is a simple borderless form shown modally and with
Quit button
Continue button, as well as
boot options checkboxes
I display this boot option dialog as I am starting my app if the user is holding the F8 key - I've discovered that Windows does not use F8, so you can actually hold down F8 while clicking on a shortcut to my exe and my boot dialog opens. Herein lies the probem.
My form does not become the active application - rather the Explorer window hosting the shortcut that I clicked on does. If I click on my form (boot dialog) it gets the focus. How can I make my boot dialog form 'pull' Windows into focusing it?
In general you cannot take focus. From Raymond Chen's Old New Thing blog:
Foreground activation permission is like love: You can't steal it, it has to be given to you
...the window manager sees no reason for the first instance to have any right to take the foreground. There is no evidence that the first instance is coming to the foreground in response to some user action.
There are a variety of ways of addressing this problem. The easiest way is simply to...
You don't need to steal focus if you can just arrange for someone to give it to you
...outright stealing the focus is the wrong thing to do...
...Just because there's no good way to do something doesn't mean that you are automatically permitted to do it in a bad way.
The problem is that the user has been giving input to a program that is not yours. You're not entitled to have focus just cause you want it.
It may not be the answer you want, but it is the answer. And Microsoft has been working hard to thwart programs that try to steal focus. Any solution you come up with is breaking the rules, and might not work at any point in the future.
...Just because there's no good way to do something doesn't mean that you are automatically permitted to do it in a bad way.