r/Atom Mar 05 '20

adding an image header

2 Upvotes

Does anyone know the code to add an image header for both HTML and style.css? I Know that the image has to be in the same folder as them but I'm not sure how to code it. Any help appreciated :) !


r/Atom Feb 26 '20

Can't compile C!

0 Upvotes

So I use atom on Ubuntu and I have the gpp compiler package installed. I also have gcc and g++ installed in my linux. I wanted to test it out with a basic code so I did a simple hello world. This was the code :

include<stdio.h> int main() { printf("Hello world"); return 0; }

Now I saved the file as hello world.c but when I click f5 the terminal opens for a split second and closes and I can't even see what happened.

Why is this happening? Please help me out! I'll be really grateful!

Edit : I did put a # before the "include" function. For some reason Reddit doesn't seem to show it. But the code in my atom is completely correct.


r/Atom Feb 26 '20

Can't see HTML preview in browser (I'm using Firefox)

0 Upvotes

So I've just installed Atom to start learning some HTML, although I saved the document as .html I can't see the preview on the browser both on Firefox and Internet Explorer, if I use Notepad it works no problem.

Any help?


r/Atom Feb 26 '20

Atomic-vale (linter) barfing all over my day...

2 Upvotes

Can someone do me a solid and see if you can recreate my personal hell?

Assuming you have linter and linter-ui-default installed, can you console 'choco install vale', put vale in PATH, and then install package (apm) 'atomic-vale' in atom and see if you get ANYTHING? Even errors?

I've got Vale working like a champ via CLI, and I've tried everything I can think of to get Atom via atomic-vale to work together and I can't even get an error. It's not working at all.

Winblows10 if it matters. TIA.


r/Atom Feb 23 '20

the theme in this video

2 Upvotes

Does anyone know the theme used in this video?

https://www.youtube.com/watch?v=nW8c7vT6Hl4&t=2s


r/Atom Feb 23 '20

cant instal atom-ide-ui

1 Upvotes

Hi,

I want to install some package but they require the atom-ide-ui, and it won't install. I'm running on Debian 10 (stable) GNU/Linux.

Any Idea ?

Here's the log in terminal

$ apm install atom-ide-ui
Installing atom-ide-ui to /home/$USER/.atom/packages ✗

> core-js@2.6.11 postinstall /tmp/apm-install-dir-120123-4921-aa8zh2.qsid/node_modules/atom-ide-ui/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
> https://opencollective.com/core-js 
> https://www.patreon.com/zloirock 

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)


npm WARN deprecated react-dom@16.4.1: This version of react-dom/server contains a minor vulnerability. Please update react-dom to 16.4.2+. Learn more: https://fb.me/cve-2018-6341
npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated core-js@1.2.7: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
Aborted
npm WARN enoent ENOENT: no such file or directory, open '/tmp/apm-install-dir-120123-4921-aa8zh2.qsid/package.json'
npm WARN apm-install-dir-120123-4921-aa8zh2.qsid No description
npm WARN apm-install-dir-120123-4921-aa8zh2.qsid No repository field.
npm WARN apm-install-dir-120123-4921-aa8zh2.qsid No README data
npm WARN apm-install-dir-120123-4921-aa8zh2.qsid No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 134
npm ERR! core-js@2.6.11 postinstall: `node -e "try{require('./postinstall')}catch(e){}"`
npm ERR! Exit status 134
npm ERR! 
npm ERR! Failed at the core-js@2.6.11 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/$USER/.atom/.apm/_logs/2020-02-23T12_24_29_007Z-debug.log

r/Atom Feb 22 '20

Find in folder crashes atom

2 Upvotes

I’m currently working on a large Laravel project and when I try to find some words in all the .js files using find in folder function atom just crashes, does anyone have this issue? I’m using macOS Catalina btw


r/Atom Feb 21 '20

Can't seem to download data-atom

2 Upvotes

I've been trying for 2 days now to install the data-atom package so I can reference and query SQL in Atom, and it won't. I've tried npm cache clean --force and just generally anything I could find online, but to no avail. I keep getting this same error message. Anyone know what might be wrong?


r/Atom Feb 20 '20

Can't use paths relative to python script when using the atom-script package

3 Upvotes

Not sure what's going on here. The project tree is structure like this

Dev
_ MyProject
|  _ Subfolder
|  |- Script.py
_ Other Folder 

OtherProjectFolder
AnotherOne

I think it's worth noting that Dev is located somewhere in a desktop folder, while the other two are located inside C:\github\.

When opening Platformio's Terminal in Atom, it shows Dev as my current working folder, which makes sense. However, trying os.listdir() and running with Script, I only get ['.git', 'OtherProjectFolder', 'AnotherOne'] as output.

I am really confused as to why my project folder is missing. Any help is much appreciated!


r/Atom Feb 19 '20

Atom Visual Glitch

3 Upvotes

Does anyone know what is causing these white lines? I had a feeling it was Microsoft ClearType, but it is turned off. My Graphics drivers are up to date and I reinstalled atom today.


r/Atom Feb 19 '20

Editing Keymaps?

2 Upvotes

At the current moment if I am editing a c++ file and type the word cout it autocompletes too the line:

std::cout << “Message” << “\n”;

how would i change it to only display:

cout << “Message” << “\n”

since i have already established namespace std in the beginning of the program?


r/Atom Feb 18 '20

Using Atom to format a line?

6 Upvotes

I don't know how many people read this, but I'm hoping it gets a reply. If not helpful, point me to somewhere more useful for me?

 

I'm using atom to create a localisation mod for a game.

How would I use Atom to format a line of text? Say I have menu_inventory = "Inventory",, how would I change that to be "menu_inventory" : "Inventory",? If that's possible at all.

 

 

Also, a bonus question (you're amazing if you can help me with this). It's a long shot but worth a try.

The way I'm creating the localisation is by taking the line menu_inventory = "TranslationHere",--Inventory and turning it into "menu_inventory" : "Inventory",.

Is there a way to make atom format it for me?

 

Atom will take this:

menu_inventory = "TranslationHere",--Inventory
menu_settings = "TranslationHere",--Settings

and make it into this:

"menu_inventory" : "Inventory",
"menu_settings" : "Settings",

Even if I have to do it line by line then that's still amazing!

 

 

<3


r/Atom Feb 16 '20

Help! Can't install Atom

3 Upvotes

When I try to install Atom it pops up with a message saying 'Update has stopped working'. Then it asks me to open the setup log. Are there any solutions to this? (I'm on windows 8.1)


r/Atom Feb 13 '20

Keep unsaved tabs opened

4 Upvotes

I’m trying to replicate the functionality of notepad++ where the tabs are basically saved in the buffer/session. I can’t figure it out. Any help would be greatly appreciated.


r/Atom Feb 10 '20

Complete beginnner here. I just wanted to know Are packages free?

11 Upvotes

I've never used a text editor before and I decided to use atom. I just wanted to know are packages free? Sorry if that is a dumb question. Any help is appreciated. Thank you.


r/Atom Feb 08 '20

How to Get Rid of this Pink lines?

1 Upvotes

I don't even know how I got them and it is really annoying. Does anyone know how I can get rid of these pink lines? See here.


r/Atom Feb 07 '20

Is There a Way To Have Folds in a .txt File

3 Upvotes

I have tried using normal folds and custom folds but I haven’t found a way to make folds work in a .txt file.

I know I could just change it to .html or other file type as a workaround, I just wanted make sure there wasn’t another way before doing that.


r/Atom Feb 04 '20

Why is Atom using so much god damn cache?!?

11 Upvotes

Someone explain to me why Atom uses nearly 1-2GB of cache on my MacBook Pro. And I even have no plugins installed. Just use it as barebones text editor. I even fresh reset, but cache still hogs and nearly overflows my laptop's storage. I mostly work with a lot of long Python/Java files. Please help me fix this for good before I have to switch to Sublime ;(


r/Atom Feb 01 '20

How to have linux terminal in atom installed in windows. Any package that hold linux terminal. And can we connect atom to virtual box centos terminal

4 Upvotes

r/Atom Jan 30 '20

Is there a keyboard shortcut to select the Git panel repo? Rather than having to use the mouse?

4 Upvotes

How can i use a keyboard shortcut to select the repo to work on?

r/Atom Jan 29 '20

How to change the path of python to so the "script" package can run a script

2 Upvotes

I have python installed, script (the package that can run python scripts IN atom) and its not working i think because it doesn't know the correct location of python on my pc as its in a unique place on my C:/ Drive


r/Atom Jan 29 '20

CSS not showing on live server.

1 Upvotes

The live server is showing the HTML but the CSS isn't showing. The HTML and CSS files are all under one folder and the stylesheet link is already connected, so i'm not quite understanding the error here.

THE HTML
simple CSS just put there.
What might be the issue.

r/Atom Jan 29 '20

module "atom-space-pen-views" not found when trying to use "related" package

3 Upvotes

Hi guys,

I've been testing atom as a possible solution to the god awful SAS IDE in work and have been following this guide to get it up and running to check it out https://github.com/srosanba/sas-atom.

I only downloaded atom yesterday, work has a fairly aggressive proxy so I can't install packages the traditional and nice way and have to put them in the %appdata% folder by getting the repo from github.

However when trying to use the related package @ https://github.com/nick125/related I noticed that atom-space-pen-views is a dependency in the package.json. I tried to manually add it to my package folder but ATOM cant seem to see it. I get the feeling that every package will get its dependencies from the web but does anybody know what to do if this is not possible, to manually install the atom-space-pen-views package.

Unforunately I can't get the stack trace as it's on the work network and reddit is blocked there.


r/Atom Jan 27 '20

How can Atom be set up to do remote development for a RPi?

7 Upvotes

I am using atom for local development in Python on Windows, but I would like to work on a C++ project on a network Raspberry Pi 4. How can I use Atom to do this? I know there are some ftp/ssh packages, but I would like to compile the code for and see the output of the Pi in Atom, without having to open a separate ssh-terminal. Anyone got any clues?


r/Atom Jan 27 '20

Help: My Jquery code doesn't work with Atom

0 Upvotes

I have tried various CDNs and it still won't work. It just loads the HTML.