Ternjs package is making Sublime Text2 to hang in OS X - sublimetext2

I have to explicitly delete this TernJS package for SublimeText to work normally
cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages

The issue was I couldn't use the "Package Control" to disable this package from within Sublime Text2. When I tried to it just hangs every after restarts. I previously deleted TernJs folder (step 2) and started the application without any issues. But whenever I opened Package Control the application will stop responding because it restores the deleted package. So I had to manually remove it from config as well.
Quit application first
I edited the "Package\ Control.sublime-settings" manually and removed TernJS.
$cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/User/
$sudo vi Package\ Control.sublime-settings
Remove TernJs from the JSON settings {
"installed_packages":
[
.....
"TernJs",
....
]
}
Deleted TernJs Package
$cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/
$rm -R TernJs
Opened Sublime Text2 without any issues

Related

PhpStorm on Ubuntu 18 - Read Only Status (unable to change files)

When I open my project with PhpStorm on Ubuntu 18, and when I try to edit file, then pop up window appears "Clear Read-Only Status" with options Clear - Ok.
When I click to clear then again pop up window appears with text "Failed to change read-only status for the following files: ..."
I cant change permissions in my cloned repository (the one I am accessing through PhpStorm) on Ubuntu because then file permissions will be different than ones on online repository.
I can edit and write to files through cli with sudo nano ...
Solution to my problem:
Add user as owner of project folder:
sudo chown -R user project
Changing the owner of the folder solved my issue:
sudo chown -R system-name project-folder-location

The command does not work until the http server is turned off

I have a "server" folder in which I installed a npm package.json file and http server, and there is also a "webdir" folder with a web page (inside the "server" folder).
I wrote a command npm start in npm package.json file, that makes 3 things:
Go to the folder with the web page: cd webdir
Start the http server : node ../node_modules/http-server/bin/http-server
Open a web page: open http:localhost:8080
Final code:
"start": "cd webdir && node ../node_modules/http-server/bin/http-server && open http:localhost:8080"
I encountered a problem: if I write these three commands in sequence in package.json file using && or semicolon, the third command is not executed until I manually stop the server. Apparently the command to start the server remains incomplete until the server is turned off.
How can I avoid it?
I work on Imac (Mac OS EL Capitan)
The issue is that http-server will run indefinitely, until you (manually) stop it. Only after it has stopped will the following command (open ...) be executed, which is too late.
A solution is to start the HTTP server in the background. Because this may cause problems (the HTTP server will keep running even after npm exits), you have to also wait for its exit using the shell's wait command:
"start": "cd webdir && node ../node_modules/http-server/bin/http-server & open http://localhost:8080 ; wait"
Notice that between http-server and open is a single ampersand. This backgrounds the http-server process.
Depending on how fast the server starts, you may still get an error page in the browser (when the browser requests the page before the server has fully started). To work around this, you need to add a sleep 3; (meaning "sleep 3 seconds") between the single ampersand and open:
cd webdir && node ../node_modules/http-server/bin/http-server & sleep 3; open http:localhost:8080 ; wait
"start": "(start /d webdir node ../node_modules/http-server/bin/http-server) & (open http:localhost:8080)"

how to get repository information for tomcat8 and installation on fedora 22

How can I get repository informantion in fedora22 for installing apache tomcat 8
I have seen many sites url but after trying wget it is showing that content not found.
How to download add install tomcat 8 in fedora22
I tried the following steps
Opended http://tomcat.apache.org/download-80.cgi
then select appropriate mirror > under Binary Distributions
right click and open tar.gz (under core) in new tab.
copy the address in address bar which is like
then open your linux shell or telnet
then #wget http://apache.mirrors.hoobly.com/tomcat/tomcat-8/v8.0.26/bin/apache-tomcat-8.0.26.tar.gz
it will download the file
next untar file like
#tar -xvf apache-tomcat-8.0.26.tar.gz
then goto bin folder of tomcat
# cd apache-tomcat-8.0.26/bin
and start it
# ./startup.sh
check it by opening http://ipaddress:8080
it will display tomcat

Sublime Text 2 - Package Control installed but the list not shown

I am using Sublime Text 2 for Mac. I have installed the Package Control for Sublime Text 2, following the instructions from https://sublime.wbond.net/installation#st2 without any trouble. However, when I open up Ctrl+Shif+P to search for available packages, it does not show any.
See the image screenshot here
Do you have any solutions for it? I try restart Sublime but it doesn't solve the problem.
Take a look in your user Preferences.sublime-settings and remove the Package Control from the "ignored_packages" list if it is there.
If you use a Linux based system, you may have to check permissions of /home/user/.config/sublime-text-3. Check if the directory is owned by your user. If not, change the owner user for that directory.
Click the Preferences > Browse Packages and check whether Package control file is there or not.
You can manually put package control file there by downloading it from here and get rid of issues.
I had the same problem. I had to restart my computer to properly reset Sublime Text 2. It seems from your comment that you also got the Package Control list to show up after restarting your computer.
Your screenshot image is currently broken, but make sure you have the zipfile "Package Control.sublime-package" in the Installed Packages directory.
Open the console and run this command:
curl http://sublime.wbond.net/Package%20Control.sublime-package -o ~/Library/Application\ Support/Sublime\ Text\ 2/Installed\ Packages/Package\ Control.sublime-package
Then restart sublime.
See this issue: https://github.com/wbond/sublime_package_control/issues/652

Unable to run package setup:

Getting this error in sublime text, wondering what to do about it. Is there a way to completely uninstall any related files to ST2? I tried uninstalling it and re-installing it, but this error still persists. I imagine there are some temp files, or cached files that I need to remove, is there a way to clear those out?
Unable to run package setup:
Traceback (most recent call last):
File "/usr/lib/sublime-text-2/PackageSetup.py", line 165, in upgrade
upgradePackage(pkg, pristinedir, datadir, backupdir)
File "/usr/lib/sublime-text-2/PackageSetup.py", line 158, in upgradePackage
os.path.join(backupdir, base), inhibitOverwrite)
File "/usr/lib/sublime-text-2/PackageSetup.py", line 90, in upgradeArchive
writeFile(fname, newar.read(f))
File ".\zipfile.py", line 834, in read
File ".\zipfile.py", line 857, in open
File ".\zipfile.py", line 824, in getinfo
KeyError: "There is no item named u'nathos-sass-textmate-bundle-0e46064/Snippets/expression(\\u2026).tmSnippet' in the archive"
execute
sudo sublime
for the first time
On Ubuntu:
I tried Achu solution but it didn't work. My Sublime Text 2 started working after I changed the files owner to my user. You have to open Terminal (ctrl+alt+t) and type:
sudo chown -R [your user name here] /home/[your user name here]/.config/sublime-text-2/
So, for example, if your user is "john" you have to type:
sudo chown -R john /home/john/.config/sublime-text-2/
Hope this helps.
Similar to Victor's answer, but more specific, I deleted the single file C:\Users\(Username)\AppData\Roaming\Sublime Text 2\ Installed Packages\Sass.sublime-package and then Sublime Text 2 started up fine.
On Ubuntu:-
I found this is a permission issue. Just change the permission to 777
sudo chmod 777 -R /home/user/.config/sublime-text-2/Packages/[package name]
The last line says:
KeyError: "There is no item named u'nathos-sass-textmate-bundle-0e46064/Snippets/expression(\\u2026).tmSnippet' in the archive"
So search for that object recursively in files in the sublime text user data directory:
cd ~/Library/Application\ Support/Sublime\ Text\ 2/
grep -r nathos-sass-textmate-bundle-d6d079e *
#Result# Binary file Installed Packages/Sass.sublime-package matches
Then delete the offending file:
rm -rf Installed\ Packages/Sass.sublime-package
I deleted some erronous packages which solved my problem. Steps to do it here: http://untroubler.com/questions/8-sublime-text-2-and-unable-to-run-package-setup
Update after comment below:
This is due to a corrupt install of a package. On OSX, goto:
/Users/YOU_USER_NAME/Library/Application Support/Sublime Text 2/Installed Packages/.
Remove the package you tried to install and it should work again.
I managed to find all related files to this bundle and deleted them manually. I've noticed that if I miss a package from somewhere ST2 recreates some folders based on packages related to it, so it's not enough to delete some folders, you have to really find all related data and delete it.
sudo sublime-text
This works for me.
Simply reverting Sublime Text to a freshly installed state resolved this issue.
Sublime Text 2 can be reverted to a freshly installed state by removing your data folder. Depending on your operating system, this folder is located:
OS X: ~/Library/Application Support/Sublime Text 2
Windows: %APPDATA%\Sublime Text 2
Linux: ~/.config/sublime-text-2
To revert to a frestly installed state on Ubuntu 13.10, you can:
Exit Sublime Text 2
Delete (or move) the data folder, so running sudo rm -rf
~/.config/sublime-text-2
Start Sublime Text 2
Hope this helps.
There's already an answer related to permissions for Linux, but I found the issue was related to permissions for a Windows install. I placed the install for portable files into "Program Files/SublimeText2" - apparently when I run ST2 it needs additional permissions which it wasn't getting.
So I installed ST2 portable to a folder in a user directory (e.g. A folder my user created and maintains - C:\dev\SublimeText2) and everything works fine now.