News for hackers. Stuff that matters.
Re:Atom 1.0 by engi_nerd on Thursday June 25, 2015 @11:07AM (#9778419)
Is it still limited to only editing files < 2 Megabytes? For most people that is not a showstopper, but it may be for some.
Re:Atom 1.0 by romanovcode on Thursday June 25, 2015 @11:10AM (#9778435)
No, recent patch increased the limit to blazing 4 MEGABYTES!
Re:Atom 1.0 by laichzeit0 on Thursday June 25, 2015 @11:58AM (#9778826)
Yeah this is crazy. I regularly work with log files in the 100mb to 300mb range which open perfectly fine in Vim/Sublime. If I had to invest time in learning Atom I'd have to multitask between editors for certain use-cases. Maybe if they could switch to a light-weight read-only type of text "viewer" for large files, that would even work. But I really do need to open big files on a weekly basis.
Re:Atom 1.0 by Brakenshire on Thursday June 25, 2015 @12:46PM (#9779191)
Do you really want to open log files in a code editor? It's not unreasonable to say that these are two different classes of programs, with different basic requirements.
Re:Atom 1.0 by serf on Thursday June 25, 2015 @05:50PM (#9781133)
I find this to be a really tired discussion/response that pops up whenever new software comes around.

"X doesn't do Y" "Did you really want Y"?

Of course they do, they just complained about it.

> It's not unreasonable to say that these are two different classes of programs, with different basic requirements.

But it is reasonable to hold a piece of software up to standards set by the majority of other software in the same realm. Other text editors can open log files, this one probably should be able to, too.

Re:Atom 1.0 by Brakenshire on Thursday June 25, 2015 @07:13PM (#9781514)
> "X doesn't do Y" "Did you really want Y"?

> Of course they do, they just complained about it.

It's just a rhetorical way of saying "I don't understand why that is a problem", and a request for explanation. I would say that's a pretty reasonable response to "I found this is a problem".

Re:Atom 1.0 by tw04 on Thursday June 25, 2015 @05:13PM (#9780948)
I've been opening log files in either vi, notepad++, or sublime text for as long as I can remember. I've never had any issues accomplishing exactly what I needed. You insinuate that's a bad thing without providing any examples or solutions that are "better", so I can only assume your rationale is: My tool is awesome even though it doesn't fit your requirements, so you should change your requirements.
Re:Atom 1.0 by Brakenshire on Thursday June 25, 2015 @05:45PM (#9781106)
I definitely don't mean to insinuate it's a bad thing, but for me it is not a core requirement. Atom is supposed to be a code editor, and it's no hardship to use a different program for opening non-code text files. I actually find native text editors (I've tried Scratch and Gedit) don't work better than Atom for largish text files of a megabyte or thereabouts, so it's clearly a relatively common issue with editors which are built on the assumption you're going to be looking at smaller files. If the Atom devs manage to write the code which will allow these files to be handled, great, but in the meantime the program remains excellent for editing code.
Re:Atom 1.0 by engi_nerd on Thursday June 25, 2015 @09:32PM (#9782015)
I do not understand the need to separate a "code editor" from a text editor. What is code before it is interpreted or compiled? Text.

I do not object to the existence of Atom -- it scratches some people's itches, so that's fine -- but I do not buy "it's supposed to be a code editor" as enough of a justification for using it versus other text editors.

Re:Atom 1.0 by smrtinsert on Thursday June 25, 2015 @01:43PM (#9779578)
Not really, in my mind it should be the expectation that in 2015 we can use modern editing tools to open large files.

IMO the fact that vim is so versatile is part of the reason it has come so far.

Re:Atom 1.0 by bduerst on Thursday June 25, 2015 @01:24PM (#9779446)
A code editor that doubles as a text editor is major benefit, especially if you're needing to consume logs while testing.
Re:Atom 1.0 by boomlinde on Friday June 26, 2015 @11:54AM (#9785441)
Atom is a text editor and logs are text files that may need to be edited. It's not unreasonable to expect a text editor to be able to open the various text files littered through a system, and it obviously is a problem to a lot of people. I know that for me personally, I sometimes end up wanting to mangle logs in ways where grep falls short and stream editing with sed or awk is either more cumbersome than using the various tools at my disposal in vim, or just beyond my understanding of these tools.

I can open larger files with emacs, nano, vim, nvi, ed etc., so I think that it's fair to say that the limited buffer size plaguing Atom is a solved problem generally. Somehow it has a built-in package manager, but falls short of ed on very basic text editing facilities.

Re:Atom 1.0 by andreamazz on Thursday June 25, 2015 @11:24AM (#9778564)
Without code highlighting though, if I remember correctly. I don't see myself editing a >2MB file containing code, but still...
Re:Atom 1.0 by eterm on Thursday June 25, 2015 @11:38AM (#9778673)
Code? Sure, probably not. But JSON? Certainly I've come across requests with more than 2MB of JSON.

(You might consider it an abuse of the format, but it is not completely without reason.)

ST3 (well, the plugin for doing it) breezed through prettifying and un-prettifying of the data.

Re:Atom 1.0 by logicallee on Thursday June 25, 2015 @11:46AM (#9778733)
how about something like sqlite3?

https://www.sqlite.org/download.html

shows the amalgamation, which is the main thing you'd build, having a 5.4 MB sqlite3.c file. I can easily see someone making a change to it if they wanted slightly different behavior - or to consult it for canonical behavior - and I was pleased I could glance through it in Sublime.

Re:Atom 1.0 by hugozap on Thursday June 25, 2015 @11:23AM (#9778562)
People editing files longer than that are certainly in the minority.
Re:Atom 1.0 by debaserab2 on Thursday June 25, 2015 @11:29AM (#9778610)
Of course, but if you find yourself in one of these instances of editing a large file (search and replacing database dumps is a common use case for me), you'll be disappointed. It's easy to argue that should be left to command line tools, but ST3 actually does a pretty good job at this.
Re:Atom 1.0 by neverminder on Thursday June 25, 2015 @11:29AM (#9778608)
Unless it's a CSV. Or XML. Or JSON, Or <insert another popular format>
Re:Atom 1.0 by SCdF on Thursday June 25, 2015 @12:32PM (#9779095)
I severely doubt that. You don't edit them every day, but:

1) It comes up sometimes, and your editor should cope 2) Having a hard file size limit so low is (to me) indicative of you doing something wrong.

Re:Atom 1.0 by squeaky-clean on Thursday June 25, 2015 @11:13AM (#9778475)
They've removed the hard limit on this, but the app will still lag or freeze on large files. Sublime is much, much smoother on a 10mb file for example.
Re:Atom 1.0 by izuzak on Thursday June 25, 2015 @11:10AM (#9778438)
Re:Atom 1.0 by pwenzel on Thursday June 25, 2015 @01:45PM (#9779592)
Handy tip: If you ever have a really large file to edit, Textwrangler is awesome. I've opened 1GB SQL dumps in there, and it happens almost instantaneously -- with syntax highlighting. Strangely, BBEdit and Sublime Text took longer to open the same files.
Re:Atom 1.0 by engi_nerd on Thursday June 25, 2015 @09:35PM (#9782028)
I've not tried Textwrangler, but for the 100 MB or so XML files that are the project definition for the primary system I support, Ultraedit works well.
Re:Atom 1.0 by 13years on Thursday June 25, 2015 @11:11AM (#9778452)
This has been improved and no longer has this limit. However, I still find Brackets more responsive in general and is what I still use mostly.

I think the future has a lot of potential though, as Visual Studio Code has demonstrated you can indeed have a very responsive editor built on javascript.