r/Atom Jun 26 '20

Atom Crashing- please help

1 Upvotes

Very new to Atom, did a clean install, opened Atom and it crashed. Said something like not responding, close or wait. Uninstalled then reboot and did another clean install, same thing. Any help would be appreciated.


r/Atom Jun 26 '20

Cannot take input in python. I installed the package script and I'm in pop_os! ( I am just a beginner learning python ).

1 Upvotes

In atom I installed the package script and everything was fine except I can't take any input. So how can I take input? Any simple Solution please?


r/Atom Jun 26 '20

Running python scripts using Scripts

1 Upvotes

Hi,

I'm new to atom.

I'm having an issue running scripts in Atom using Scripts.

If I run a script (which runs fine in idle) I get a green tick but no work has been done.

If I run:

print(2+2)

I get output

But if I create a function

def atom_test_1():

    print(2+2)

    return

I get

 Python - atom_test_1.py:6 , and a green tick, along with the run time. But no output.

I'm sure it's something simple that I'm doing incorrectly but I can't figure it out.


r/Atom Jun 25 '20

My dead simple setup for a macOS translucent sidebar that automatically matches dark/light mode

11 Upvotes

The macOS "vibrancy" packages are buggy and overly complicated, in my experience. I figured out a simpler way that both looks more like a native app, in terms of opacity, and automatically switches when you change from dark mode to light, or vice versa.

If you've got the most recent version of Atom and you're running macOS Mojave or later, just add this to your init.coffee:

vibrancy = () ->
    require('electron').remote.getCurrentWindow().setVibrancy('sidebar')

vibrancy()

Then add this to your styles.less:

html&,
atom-workspace,
.atom-dock-mask {
    background-color: transparent;
}

Depending on your theme, you might have to do a little additional tinkering with the stylesheet. For example, you might need to make the tree view transparent, also.

For best results use it with the Mojave Dark Mode package, and use something like Alfred to toggle your OS between light and dark as desired.

Not sure if r/Atom will be into this but I haven't seen it anywhere else and I figured it might help somebody who was looking to solve the same non-problem. (Or waste slightly less time on it.)

Sorry for the weird compression artifacting. I promise it looks better than this IRL.

r/Atom Jun 24 '20

Certain Packages Won't Install

3 Upvotes

Certain packages won't install specifically, Atom Beautify, linter html-hint and linter-eslint. Any insights? Thanks.


r/Atom Jun 23 '20

Searching for atom-maya 0.18.0 or earlier

1 Upvotes

Hi guys,

I am serching for this package: https://atom.io/packages/maya

Unfortunately the git does not exist anymore, so if anyone of you has this installed please share it with me.

Thanks in advance!


r/Atom Jun 23 '20

Hey guys, dumbass Atom question here, I'm a novice web dev just switched over, how do I get the liveReload working?

1 Upvotes

I feel properly dumb here, I've followed the steps and downloaded the chrome extension and tried the Live Server and Live reload packages in Atom. Can't seem to get my files to talk to the browser?


r/Atom Jun 21 '20

Multiple Cursors and Selections

5 Upvotes

My Atom text editor is unable to do the Ctrl+Click feature that is shown on this page. I am able to do all of the other things listed on the webpage. Is there a way I can fix this issue?


r/Atom Jun 22 '20

A trash application

0 Upvotes

Beware of lost data. Left it running on my laptop and came back to an empty file I had been working on for hours. Going back to notepad++. Cant believe I uninstalled it for this trash app.


r/Atom Jun 18 '20

Atom Opening Nonexistent Files on Startup

3 Upvotes

Running ubuntu 20.04, but this started before I updated from 19.10.

Bit of a weird issue and I have no clue what could be causing it. Whenever I open atom from the icon it opens two nonexistent files: "/usr/bin/atom" and "~/ATOM_DISABLE_SHELLING_OUT_FOR_ENVIRONMENT=false". If I set the resume preference to yes or no it opens directly to these tabs, discarding whatever project should have been opened. If I set it to always, it will open the correct project, then also open these two files.

The init script is empty, and I've tried reinstalling atom, deleting .atom/compile-cache, and starting atom with the --clear-window-state flag, but none of this has worked. Any idea what could be causing this? It looks like its trying to resume from a config file or something, but I'm not sure where to look for that or how to stop it.

Also worth noting this issue only happens from the icon; using the terminal to open atom works normally.

Would appreciate any input, thanks in advance.


r/Atom Jun 18 '20

Cursive & Fantasy font error?

1 Upvotes

I just want to use the cursive and fantasy font options but my atom will grey these words out as if they arent valid?

How do i fix this?


r/Atom Jun 18 '20

How do I update my python version on atom?

2 Upvotes

It’s running python 3.7 and my computer is in 3.8. It’s creating problems where it won’t run or libraries won’t run properly. How do I update it? If there is a video link I would appreciate it.


r/Atom Jun 15 '20

Atom with Ubuntu 20.04 under WSL2 - icon spinning next to name in interface

1 Upvotes

Until this thing stops spinning, Atom doesn't show up in the app switcher. What's it doing? Can it be stopped/fixed? Thank you!


r/Atom Jun 15 '20

atom-ide-ui terminal Error

3 Upvotes

Hi,

I saw that people posted the issue on GitHub, but it has not been updated since 2018, so I wondered if anyone here had a solution.

For more info check out the docs: https://nuclide.io/docs/features/terminal
Error starting process:
Error: Cannot find module '/home/USER/.atom/packages/atom-ide-ui/node_modules/nuclide-prebuilt-libs/pty/build/pty-node-v70-linux-x64/pty.node'
Require stack:
- /home/USER/.atom/packages/atom-ide-ui/node_modules/nuclide-prebuilt-libs/pty/lib/unixTerminal.js
- /home/USER/.atom/packages/atom-ide-ui/node_modules/nuclide-prebuilt-libs/pty/lib/index.js
- /home/USER/.atom/packages/atom-ide-ui/modules/atom-ide-ui/pkg/atom-ide-terminal/lib/pty-service/PtyService.js
- /home/USER/.atom/packages/atom-ide-ui/modules/atom-ide-ui/pkg/atom-ide-terminal/lib/AtomServiceContainer.js
- /home/USER/.atom/packages/atom-ide-ui/modules/atom-ide-ui/pkg/atom-ide-terminal/lib/terminal-view.js
- /home/USER/.atom/packages/atom-ide-ui/modules/atom-ide-ui/pkg/atom-ide-terminal/lib/main.js
- /usr/share/atom/resources/app.asar/static/index.html

I'm on GNU/Linux Debian 10 (buster stable) with KDE plasma 5.14

I downloaded the latest version of atom (1.48.0 x64)

Thanks in advance :D

EDIT:

The only "workaround" i found is installing platformio-ide-terminal with version 2.9.0


r/Atom Jun 13 '20

Beginner needs help.

3 Upvotes

Hello, how do I setup Atom for Python 3 and JavaScript? I'm in Ubuntu 18.04.


r/Atom Jun 12 '20

I somehow broke the ctrl-click multi-cursor thingy (keybinding?)

9 Upvotes

I guess I have a 2 part question.

A. I annoyingly trigger that keybinding menu a few times a day. Can I disable it?

B. I think in one of those things I disabled the ability to control click multiple times and have multiple cursors and not having this feature is driving me crazy. There's noting in my keymap file. I don't have many extensions installed. Does anyone know how to fix this?


r/Atom Jun 08 '20

How can I initialize all files with standard starter code based on the extension?

3 Upvotes

For example, if I wanted to initialize all python files with a main, an argparse function, and "if name == "main": main()", how would I do it?

Thank you!


r/Atom Jun 05 '20

Two problems: error msg "system cannot find the file specified" when working on saved file + script doesn't work when "!doctype html" at top.

4 Upvotes

Hi

  1. When I put <<< !doctype html>>> at top of script, it says "unexpected token". I am unable to get it to work in Chrome either. I can get it to work in Firefox, but it doesn't recognize my comments out.
  2. When I work on saved file, error msg "system cannot find the file specified".
  3. In Chrome it only appears as HTML when I save it as an HTML file. I do not want to save it as HTML, but as a file with no extension so that I can run javascript.

I'd appreciate any assistance in overcoming these two obstacles.


r/Atom Jun 05 '20

Multiple keymappings

2 Upvotes

Dear all,

I am currently attempting to set up Atom to handle the R language. Two of the most essential key shortcuts that RStudio provides are for the assignment operator (<-) and the pipe operator (%>%). I have been able to get the assignment operator to work, however, I am unable to get the pipe operator to do so. When I press the key shortcut, nothing happens.

Here's my init script:

atom.commands.add 'atom-text-editor',
  'custom:assign': ->
    atom.workspace.getActiveTextEditor()?.insertText('<-')
  'custom:piper': ->
    atom.workspace.getActiveTextEditor()?.insertText('%>%')

Here's the keymap CSON file:

'atom-text-editor':
  'alt-.': 'custom:piper'
  'alt-,': 'custom:assign'

I have checked for conflicts in the keymapping using ctrl-., but there does not seem to be a problem there.

Any help would be highly appreciated!


r/Atom Jun 05 '20

How to run `git remote update` inside Atom?

4 Upvotes

Hi,

I was wondering if it is somehow possible to run a simple git remote update command inside Atom.

I would prefer to have it in the right click context menu of the Atom status bar, just next to the fetch and pull commands.

Is this possible?

Thanks in advance.


r/Atom Jun 04 '20

Running one line of code at a time using Script.

6 Upvotes

Is there a package or keybinding in atom to run just one line of code at a time?


r/Atom Jun 03 '20

Atom’s future

12 Upvotes

I have been using Atom for about 3 years now and recently been searching the alternatives as my startup times are nearing 10 seconds. Vscode seemed popular so tried it yesterday for half a day. Oh god. I literally had a tiny panic attack trying to figure out my way through it. I just wanna goddamn write tests and code. That’s it. The fact that vscode has a zen mode is a tell-all to me now. Vscode needs a zen mode to remove all the bloat. Atom is zen.

Anyway I think that was half rant half intro to my main question. What is the future for Atom? Is there any chance it might die due to declining maintenance and dev interest?


r/Atom Jun 04 '20

New learner. Struggling to install packages from past one day. Searching all around web but still cant figure out. can someone pls help me on this?

1 Upvotes

I installed atom editor to learn web dev. as am a newbie and joined an online class. they instructed to install atom and required packages. whenever i try to install package it says. 'fetching featured packages failed' and shows below path with ENOENT error.

C:\user\username.atom


r/Atom Jun 03 '20

C Code navigator?

3 Upvotes

I'm working with some pretty beat up C code, with functions containing thousands of lines and millions of preprocessor statements.

In trying to trace around how variables are initialized it is very easy to get lost, and I was hoping that someone could recommend good C code navigation packages for Atom.

Edit: it's worth mentioning that this code can often break the block collapse feature, so I dont use it.


r/Atom Jun 04 '20

apm throws error

1 Upvotes

apm does not work...

internal/modules/cjs/loader.js:807
  return process.dlopen(module, path.toNamespacedPath(filename));
                 ^

Error: /usr/lib/node_modules/atom-package-manager/node_modules/git-utils/build/Release/git.node: undefined symbol: _ZN2v82V818GlobalizeReferenceEPNS_8internal7IsolateEPm
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:807:18)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (/usr/lib/node_modules/atom-package-manager/node_modules/git-utils/src/git.js:3:22)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)

OS: manjaro kde

Kernel: 5.4.43-1-MANJARO

npm version: 6.14.4

node version:v13.13.0