Atom software after installing not creating shortcut - atom-editor

After downloading the setup of atom ide I tried to install and turn the antivirus off and it did get install but, it's not creating shortcut so that I can close and open the software again..after closing the software if I try to open it, it again asks to install the software..please help

Steps to Reproduce
0.Download and install Atom
1.Acknowledge and close the welcome window
2.Go to the start menu and wonder why Atom is not there
3.Go to C:\users\me\ .atom\ and wonder why atom.exe is not there
4.Go to C:\Program Files (x86)\ and wonder why atom.exe is not there
5.Go to Control Panel >> uninstall a program, and wonder why atom.exe is there
6.Restart computer
Repeat steps 2 through 6
for better reference, you can follow https://www.youtube.com/watch?v=N4liFqsK9nM
Another solution if you have installed atom in your system already:
To make Atom recognized as a program in the command line you can try this:
Open cmd.exe
Navigate to the Atom install folder using cd %LOCALAPPLDATA%\atom
Run atom --squirrel-updated

Related

Having problem to install avrdude on macOS Terminal

First of all, I have trouble installing avrdude via Homebrew because of some network problems. So I download it manually from its website.
However, after I unarchive the avrdude-7.0.tar.gz file I just downloaded, I can find no bin directory there. It's unusual.
Then, I added its directory to my system PATH by export PATH=$PATH:/Users/myUserName/Developer/bin/avrdude-7.0/bin/. But when I tried to use avrdude in Terminal after I restarted my computer, It says zsh: command not found: avrdude.
How can I make it works?
screenshot of avrdude-7.0 directory downloaded
Apparently you downloaded the source archive of the tool, not the executable software.
Now you have two options:
Download the binary executable.
Compile the tool yourself. Make sure you understand how to do this.

Running a Python file with atom

I'm using atom for 2 months to run Julia files and it works.
I would like to run some python files too
To do that, I installed the IDE-python package
When Atom is started, there is the following picture:
I can run a Julia file without problem, but I can't run a python file (and there is not a python console...)
How can I add it and run the python file ?
You should load the Script module into Atom. Once loaded, it will show up under the packages menu or you can use the command-I keystroke to run your python code.
To use a shell to run python install the module platformio-ide-terminal. When you click this under packages you'll get an option to toggle a terminal window. It will show up in the bottom third of Atom window.

Unable to open Atom

I am unable to open my Atom Editor. It was working fine until yesterday, but don't know why it won't open today. No windows update or anything on my computer. I tried deleting the 'Storage' folder as mentioned in some online forums, doesn't help. Any suggestions? I am using Atom version 1.19.6.0.
If you're using MAC OS and have similar problem, try this:
Open Window tab
and then click Zoom.
Atom will sometime fail to open because of a bad configuration-file.
To better diagnose this on Windows (10), try running atom from a CMD window:
Open the task-manager and kill any instance of Atom that is listed there
Open a Command-window -
Ctrl+Esc > (type "command") > Enter
Go to where Atom is installed -
cd %USERPROFILE%/AppData/Local/atom/app-*
Run Atom -
atom.exe
If you see an error message at this point, it should help identify the problem.
If still not clear, you can try moving the main configuration-file,
which is in a different folder:
cd %USERPROFILE%/.atom/
rename config.cson config.SAVE.cson
Go to where Atom is installed (again) -
cd %USERPROFILE%/AppData/Local/atom/app-*
Run Atom -
atom.exe
Based on this answer on the Atom forum:
https://discuss.atom.io/t/atom-will-not-open-windows/47489
I experienced this issue when my Atom windows all suddenly resized to be so small I could not see or find them anywhere (some weird glitch with opening it from a full-screen window on an external display). I resolved it by command-tabbing (I think it's ctrl-tab on Windows, I forget) to my open atom application to bring up the application's menu bar, and then selecting Window > Zoom from the menu.
I am using Atom on Windows 10 64-bit, and had similar problems of installation and not running later.
You can do the following:
Empty Trash, and Temp and Prefetch folders.
Change the security and read only properties of the temp folder.
IMP > Disable antivirus and run atom it will work, later add the Atom app to exclusion list of your antivirus.
Open the task-manager and kill any instance of Atom that is listed there
Got to where Atom installed : Mine:> C:\Users\%userprofile%\AppData\Local\atom
See this Image
Go to Folder indicated in the picture and find atom.exe by scrolling through the folder and open it and make a shortcut to desktop and it will work.
I found that mv command is not builtin Windows cmd as suggested by Gonen. So following the idea of Gonen, a working solution can also be like:
In windows explorer type %USERPROFILE%/.atom/, or manually go to the path
(in my case): C:\Users\hussainazhar.atom. Of course, go to your drive path accordingly. Close Atom application if already opened.
Simply rename the config.cson to config.SAVE.cson
Open up the Atom and now you can go to the settings :)
All you simply need to do is go the main directly where the file is located and open the FIRST folder.
After opening it, there you will see atom file, double click on it and it will be opened successfully.
The atom Window is just minimized, it gives the impression of not openning, but it is actually opening, again is just minimized.
I was able to see the atom interface, by maximizing the window using the keyboard:
on windows, it normally is Alt+SpaceBar+x.

run R as administrator

I was using my own laptop to install R and I found that it only has one library. Evne though this library is still read only, everytime when I use Rstudio: install.packages("abc"), I can see that the new packages are stored automatically into that read only library folder.
In my office's desktop, I "believe" I also have administrator role, as I can install and remove anything (by far). I download the latest version of R and I right click the R-3.4.1-win.exe, there is an item "run as administrator", then it is installed in my desktop. However, when I use R studio to install new packages as in my laptop, it always automatically create a personal folder to store the new packages. I don't know why. Is that a way to only have one folder for library? I also tried on the desktop in the plain R mode (without using Rstudio). When I want to install new packages, it always says
Warning in install.packages("devtools") :
'lib = "C:/Program Files/R/R-3.4.1/library"' is not writable
And there is a window pops up to ask me "would you like to create a personal folder?" And if I say no, then
Error in install.packages("devtools") : unable to install packages.
Is there a ways to solve this problem? To just maintain one folder for library
What version of Windows are you using? You should be able to right-click on the Rstudio.exe icon, click Properties, and select an option to always run Rstudio as administrator. Be sure you use that same icon whenever you want to open Rstudio.
Incase of Mac, go to Applications, then right click on RStudio and
Select "Show Package Contents"
Go to Contents/MacOS
Now open terminal(in bash mode). Type sudo and drag the RStudio.exec into terminal and press on ENTER
Now RStudio will have admin access!
For completeness, I think there should be an Ubuntu answer to go along with the Microsoft and Apple answers. (Note:I'm using 18.06, and not 20.x.)
What doesn't work:
On my Ubuntu/Linux system, when Rstudio is installed the call start RStudio from a terminal looks something like the following:
(base) username#sysname:~$ rstudio
It starts, but has the permissions of the user, and can have access errors.
What gives admin power:
To give it better permissions, you can use sudo.
(base) username#sysname:~$ sudo rstudio
[sudo] password for username: <enter password here>
It starts in a different user location, but has more power. After it is installed you can run it the regular way and the packages are still installed.
Extra credit:
Here are some (currently) relevant links for RStudio on Ubuntu:
https://linuxhint.com/rstudio-for-ubuntu/
https://www.r-bloggers.com/2013/03/download-and-install-r-in-ubuntu/
What is the command to invoke RStudio from Command Line in linux environment?
http://web.cs.ucla.edu/~gulzar/rstudio/index.html

Change terminal in Atom-editor's Platformio-Ide-Terminal on Windows

On Windows, default terminal for Atom's Platformio-Ide-Terminal is Powershell (at least, that is what I get without any configuration).
I would prefer a terminal using unix-type commands. I already have MINGW and CYGWIN installed.
How can I avoid opening a Powershell and opening another terminal type instead?
Set the default shell in:
Edit>>Settings>>Packages>>Platformio Ide Terminal>>Settings>>Shell Override
You can use the git's bash as proposed here as you probably already have git installed.
C:\Program Files\Git\bin\bash.exe
Step by Step Solution
Go the Setting-> Packages -> In Search Bar, search for the platformio.
Open platformio and go to Shell Override Option.
Put the following line as per as your Terminal Requirement
For cmd- C:\\WINDOWS\\System32\\cmd.exe
For Power Shell- C:\\WINDOWS\\Sysnative\\WndowsPowerShell\\v1.0\\powershell.exe
For bash- C:\\Program Files\\Git\\bin\\bash.exe or C:\\Windows\\System32\\bash.exe (depending on how you install the bash). Be Sure, that you have already install the bash into your computer.
Now, you can integrate bash, cmd, git bash, Power Shell into Atom using platformio as terminal.
For CYGWIN users, the bash executable from the following location has proved useful for setting the shell override Settings >> Packages >> Platformio Ide Terminal >> Settings >> Shell Override
C:\cygwin64\bin\bash.exe
If you are now using Ubuntu for Windows 10 (downloaded from the app store), you can change it to that as well.
Ubuntu gets installed in Windows' PATH by default, so just change the default shell to:
ubuntu.exe
That's it. Just remember that to get to your code, cd to /mnt/(driveletter)/wherever/your/files/sit.
For someone who still can't get this to work because your git bash is installed in AppData. This worked for me.
C:\Users\saurabh\AppData\Local\Programs\Git\bin\bash.exe

Resources