How to Fix Komodo IDE 12.0.1 - Login Failed
Login failed: it appears you are offline.
After installing an open-source version of the Komodo IDE and attempting to log in to my ActiveState account, I was surprised to see a “Login failed. It appears you are offline” error message.
I could log in to my ActiveState account using my browser, so this “Login failed” was a real problem. Fortunately, after some searching, I found a potential solution on the following webpage: Login failed, it appears you are offline (again) - Discussions - Komodo IDE & Edit | Forums.
The solution simply bypasses the Sign-In window altogether. The solution I present below differs only by the tools I used to modify the komodo.jar file and, ultimately, the single line of code in the komodo.js file.
The Modified Solution:
The original solution requires using 7Zip. However, Window’s File Explorer provides a means to extract zip files.
Note that this will break any integrations with the ActiveState Platform and the ActiveState State Tool:
Uninstall Komodo, then re-install and note the default install directory, something like this C:\Program Files (x86)\ActiveState Komodo IDE 12
Open a Command Prompt and RUN AS ADMINISTRATOR
Change the current working directory:
- cd C:\Program Files (x86)\ActiveState Komodo IDE 12\lib\mozilla\chrome
From the command line, rename komodo.jar to komodo.zip
- rename komodo.jar komodo.zip
Open File Explorer and navigate to C:\Program Files (x86)\ActiveState Komodo IDE 12\lib\mozilla\chrome
Click on the komodo.zip file and an “Extract all” button appears on the toolbar above the list of files.
Click the “Extract all” and extract the folders into the chrome folder
A “Destination Folder Access Denied” window may appear. Check the box next to “Do this for all current items” then, click the “Continue” button.
-
Three new subdirectories or folders should now appear in the “chrome” folder: content, locale, and skin
-
Use an editor such as Notepad++ and RUN as ADMINISTRATOR to open and edit the following file in a text editor: content\komodo.js
Comment out line 27 and save.
The line should have the following on it:
auth.authenticated((authenticated) => { if ( ! authenticated) openLoginDialog();});
Add two forward slashes “//” to the beginning of line 27 as pictured below:
In File Explorer, in the chrome folder, ctrl + click on the content, locale and skin folder. Then, on one of the highlighted files, right-click > Compress to… > ZIP File
A window will appear stating, “Windows cannot create the Compressed Archive Folder here. Do you want it to be placed on the desktop instead?” Click “Yes,” and the compressed file will appear on your desktop.
Note that the name of the zip file will be the same as the filename you right-clicked, except it will have a “.zip” extension. In my case, the file created was skin.zip.
Locate the file on your desktop and right-click it. Select properties from the menu that appears, and copy the file’s location. It should be of the form like C:\Users\ …. \ …. \Desktop.
Left-click and hold the button down while highlighting the location. Then, right-click the highlighted text and left-click “copy” from the menu that appears to save it to your clipboard.
Returning to our Command Prompt, we can copy the file from the desktop to the Chrome directory and rename it as “komodo.jar” in a single step.
We should already be in the Chrome subdirectory, but we can always navigate to it with a “cd” command.
- cd C:\Program Files (x86)\ActiveState Komodo IDE 12\lib\mozilla\chrome
Now, we can simply enter the copy command as:
copy C:\Users\username\….\Desktop\skin.zip komodo.jar
Note that your path will be similar to the syntax shown above.
You should now have a komodo.jar file and the original komodo.zip file in your Chrome folder.
After successfully testing the Komodo IDE, the extracted content, locale, and skin folders can be deleted from the Chrome subdirectory.
You should now be able to start and run Komodo without a Sign-In screen.
SUCCESS and Thank You
This above method fixed the error, and the Komodo IDE runs without a Sign-In screen. All the credit for identifying the required changes goes to those who identified the code fix and created the original steps to change the files in kind.
Thank you to careyh -Carey Hoffman, moderator and Komodo Developer, for offering the fix: Login failed, it appears you are offline (again) - Discussions - Komodo IDE & Edit | Forums.