Aptana Studio: "The selection cannot be launched, and there are no recent launches." - aptana

Even single time I try to setup a new project, this error pops up. I can't remember how I fixed it the first time.
Conveniently, this question has already been answered.
"Go into the preferences under Run/Debug > Launching
There's a section called "Launch Operation" and I needed to select:
Launch the selected resource or active editor. If no launchable: Launch the previously launched application."
However, I cannot find the directory Run/Debug > Launching. My question is: Where do I find it on newer versions of Aptana?

Launching is under Preferences -> Run/Debug, and it has two options "Default Launchers" and "Launch Configurations" but I can't find the "Launch Operation" that he is talking about. Nothing comes up in the windows when I go into "Default Launchers" and Changing the options in "Launch Configurations" did not seem to help either. I am having the exact same issue and have no launch history, so I am not even sure how I could use a previous launcher if none are there.
Also, when I attempt to "Run As" I only get "PHP Script" and "PHP Server" as the options.

Related

Windows Process Activation Service Error 2:The system cannot find the file specified

IIS on my development computer stopped working. I just installed the latest update to windows 10 (1803) and now when I try to start the "Windows Process Activation Service" I get an "Windows could not start the Windows Process Activation Service on Local computer. Error 2: The System cannot find the file specified" error. Things I have already tried:
Reinstalled IIS and Windows Process Activation Service, several times
I verified that I do have a "C:\inetpub\temp\appPools" folder
Not sure what to do next.
I have had this problem twice after a windows update. The issue seems to be, that windows adds an incorrect parameter to the WAS service startup parameters. I fixed the issue using the following steps:
Start regedit (just type it into start)
Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WAS\Parameters
Delete the NanoSetup variable. This variable is preventing WAS from starting
Start the WAS service using task manager or by typing "net start WAS" in Command Prompt
Start the W3SVC service the same way
You can now start your website in IIS again
I had the same problem and nothing in here was the solution for me for a long time. So i rolled back windows also. Today i found the solution working for me - Navigate to:
C:\Users\All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys\
find these 3 Key-files...
d6d986f09a1ee04e24c949879fdb506c_*
76944fb33636aeddb9590521c2e8815a_*
6de9cb26d2b98c01ec4e9e8b34824aa2_*
... then in Security-Settings:
first, you have to set your User as OWNER
close Properties Dialog - and open again
Then in ACL set "full controll" for SYSTEM
After that: WPA can be started...
Hope this helps; see also thread here: https://social.technet.microsoft.com/Forums/en-US/315841e1-b8b2-4084-8224-580ef3d13420/upgrade-to-windows-10-1709-iis-fails?forum=win10itprosetup
I had this same problem after installing the Windows 10 1909 update and the nanosetup variable was NOT in the registry. I ended up doing a variation of Sascha's fix.
I took ownership and gave administrators full control of the MachineKeys folder in C:\ProgramData\Microsoft\Crypto\RSA. Then I removed the 3 files in Machinekeys that begin with:
d6d986f09a1ee04e24c949879fdb506c_*
76944fb33636aeddb9590521c2e8815a_*
6de9cb26d2b98c01ec4e9e8b34824aa2_*
The Windows Process Activation Service (WAS) started as expected.
It just has a simple solution, you don't need to reinstall Windows or removing updates, It worked for me so sharing it with all of you,
if you already using IIS and have site's configurations and files in C:\windows\system32\inetsrv\config and C:\inetpub\wwwroot, Back up all files from the folder C:\windows\system32\inetsrv\config and C:\inetpub\wwwroot, if you are installing ISS for the first time then you don't need to have a back up.
On Taskbar right-click on Start button select 'Run', type appwiz.cpl hit Enter.Click on 'Turn Windows features on or off'.
Uncheck 'Internet Information Services' and 'Windows Process Activation Service' click OK button.
After restarting Windows, Delete 'inetpub' folder on C: drive.
Open 'Turn Windows features on or off window' again.
Check 'Internet Information Services' and 'Windows Process Activation Service' click OK button.
After restarting Windows open folder C:\windows\system32\inetsrv\config.
Right click on the file named 'applicationHost' Select Open with Notepad.
In Notepad, Copy all the content of the file.
Select New in File Menu and Paste all the content in the new file.
Save this file in C:\windows\system32\inetsrv\config with the name 'applicationHost.config.tmp', Don't forget choosing 'All Files' in the 'Save as type' box.
Otherwise, file will be saved as applicationHost.config.tmp.txt which will not work.
Type 'Services.msc' in Run, Find 'Windows Process Activation Service' in Services window.
Watch running the service successfully without any errors after clicking on start.
I finally had to give up and rollback the windows build. To do this follow these steps:
Go to settings (Windows+I)
Click on "Update & Security"
On the left click on "Recovery"
Then under "Go back to the previous version of Windows 10" click "Get
started"
It rolled back to "1709" and now works fine.
If you find yourself installing an application on a drive other than C: and that application relies on IIS, the path for inetpub temporary files may be missing. Even if they are present on C:, this may just confuse you into thinking they are present and thus not the issue.
Create the following empty directory structure, replacing G: with the drive letter that your application is installed to, other than C:.
G:\inetpub\temp\apppools
Then, start WAS, from an administrator command prompt:
net start WAS
If this has to do with IIS, restart for good measure, from the same prompt:
IISRESET /restart
This solved my problem when installing a third party application.
I received the same error after update, but on Windows Server 2022 Standard 21h2.
Tried all steps without success.
In my case WU deleted all params in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WAS\Parameters
so i took it from old ControlSet002:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WAS\Parameters]
"AccessDeniedMessage"="Error: Access is Denied."
"InstallPath"=hex(2):25,00,77,00,69,00,6e,00,64,00,69,00,72,00,25,00,5c,00,73,\
00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,69,00,6e,00,65,00,74,00,\
73,00,72,00,76,00,00,00
"MajorVersion"=dword:0000000a
"MinorVersion"=dword:00000000
"ServiceDll"=hex(2):25,00,77,00,69,00,6e,00,64,00,69,00,72,00,25,00,5c,00,73,\
00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,69,00,6e,00,65,00,74,00,\
73,00,72,00,76,00,5c,00,69,00,69,00,73,00,77,00,33,00,61,00,64,00,6d,00,2e,\
00,64,00,6c,00,6c,00,00,00
"GenerateKeys"=dword:00000001
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WAS\Parameters\ListenerAdapters]

JetBrains Toolbox in Windows to install IDEs to specific folders other than ones within drive C

I want to install PyCharm, PhpStorm, etc. into some folder on drive D.
Though JetBrains Toolbox not having the option to do so in my view.
So the question is that is it possible to customize the installation folder for JetBrains IDEs when installing via Toolbox?
Yes, you can configure the install location for apps in the Toolbox settings. However, this will install ALL apps under the specified directory (and move existing ones there). If you want to define a specific install location for each IDE, then that is not possible... yet.
Also see this support question. The second answer explains how you can manually update the install_location property in .settings.json. This will change the install location for future installations, and your existing apps will not be moved.
[Windows 10] I found a manual location changing option that is not well explained on any forum.
After you install Jetbrains Toolbox, if you cannot change the Tool install location from the app UI, and it goes into "Failing to change location, because application is in use, or something like that" if you are trying to change from there, close the Toolbox application(kill it from Task manager, or close it from the toolbar), and after you go to the default installation location of the Toolbox app(more info about this, here: https://toolbox-support.jetbrains.com/hc/en-us/articles/115000978804-Where-are-the-IDEs-located-on-my-hard-drive-) and open .settings.json file
In the .settings.json file you need to add/update the following code line:
"install_location": "<default_location>",
There, add your desired install location instead of <default_location> if there exists the line in the file. If this line does not exist, add it the begining of the file. Don't forget to add the " , " in the end of the line.
Please help to spread this message to our fellow friends who are using Jetbrains Toolbox and are having this problem.
The location of the setting in the UI seems to change with subsequent Toolbox versions.
Currently it's under Toolbox > cogwheel icon > Toolbox App Setting > Tools > Tools install location.
Toolbox operates under current user permissions, not as administrator and it cannot ask for privileged access yet. In partical term it means if you wan't to install it under "C:\Program Files" you will have create "JetBrains", or whatever root directory you want, manually there, in your preferred file manager, then apply permission settings allowing you current user to write to that directory.
Looks like they invested some time in this. No need to play around with config files anymore:
Open your toolbox application
Open settings.
Open tab "Tools"
Change "tools install location"
Hit "apply changes"
Wait until files are moved

Wakanda studio enters infinite loop when "file not found" error displayed

I have installed Wakanda Studio 11 build 11.195328 (and server) on my Macbook Pro/OSX El Capitan.
When i open the "School management" solution and try to display the onGet event code for a calculated attribute, i get an error window showing a message like:
The model.TimeTable.rec_type.onGet was not found
Clicking on the "OK" button does not close the window and I need to "Force Quit" Wakanda Studio to reopen it.
I think this is a bug, but i also would like to know if existing solutions need to be "migrated" to be compatible with the newest version of Wakanda.
I tested with School Management Solution and got the same error message when clicking the "+" icon next to rec_type attribute of Timetable class in model designer. But, I was able to close the dialog by clicking "OK". It did not go into infinite-loop.
School Management was written in WAK7 and it is compatible with Wakanda 11.195328. Meaning you can still deploy and run it in Wakanda studio and serve. The model API and structure however, have become deprecated. A brief introduction of model API and syntax can be found here.
School management is still fully functional in Wakanda 11. The only thing you need to do is add three users named: 'administrator', 'teacher', 'student' in Directory since the old directory is not supported anymore.
If you would like to continue development on School Management or solutions created from earlier versions, they will need to be migrated.

Pydev - startup

Maybe I got simple questions so I googled it but I can't find answer.
I am using Pydev/Eclipse and I want to run the script within Console.
First I want to modify the startup of the session - it means some modules are loaded during start (math, numpy, scipy, etc...).
Where/how can I modify Pydev Console startup?
Secondly, I execute the script using righ-click on script file and "Run as -> Python Run" then it's executed within console and terminated. So I want to stay within Console and to be interactive and not be terminated.
How can I get such feature?
Thank you!
Best regards,
Peter
The startup configuration can be found in the PyDev preferences menu. The preferences can be found in the upper menubar under 'Window'.
Window -> Preferences -> PyDev -> Interactive Console
There you will find a big text input field with a label 'Initial interpreter commands'. Often it is allready in use and imports sys only to print the name and version number of the starting console.
The only solution I am aware of for staying connected with your script is to set a breakpoint at the end and start your script in debug mode. But maybe there is another way. To do so just double click at the left corner of the editor window with your script opened. A green dot will appear marking a breakpoint. Now right click an choose 'Debug As'. Your script will run till the line is reached where you have set the breakpoint.
Hope I could help.
I think that what you want is the interactive console. See: http://pydev.org/manual_adv_interactive_console.html
You can configure the initial commands in the preferences page.

Does aptana save my files on every keypress?

I've just downloaded Aptana to do some web-development. I've downloaded the JsTestDriver plugin (javascript testing framework) which works fantastic, however there is one thing bugging me... In my run configuration of JsTestDriver i set it to run everytime i save my project. The funny thing is that the my run configuration is executed everytime i press a key... Does this mean that aptana saves my project everytime i make a single change to it? If so, how do I disable it? Running all my unit tests everytime i press a single key is kinda taxing on my system :P
Found it! Disable "Build Automatically" in Eclipse -> Workspace settings

Resources