Open eiriks opened 9 years ago
@eiriks could you provide a gist with an example script to reproduce this? :sweat_smile:
Here's a sample script to generate a decently sized dict written out to e2big.py:
import string
words = map(string.strip, open("/usr/share/dict/words", "r").read().split())
# Reduce the size enough for Atom to handle
words = words[:len(words)/2]
keys = words[:len(words)/2]
values = words[len(words)/2:]
# Map half the words to the other half of the words
d = dict(zip(keys, values))
# Write a script out
ff = open("e2big.py", "w")
ff.write('d = ' + repr(d) + "\n")
ff.write("print(d['cornic'])\n")
ff.close()
print("e2big.py created")
I'm not getting the E2BIG to come up, but I do notice some peculiarities:
cmd-i type run works just fine selection of this huge file and then cmd-i gives me a strange error about python not existing (smaller selections work just fine)
Fun fact: without cutting the words list in half, this was too big for Atom to handle
It's too bad they closed atom/atom#307, I'd love to work on a canvas based text editor that blits renderable sections. DOM be slow.
Amusingly, I took this smaller file that Atom can handle and it locked up Visual Studio Code:
annnnnnd it's still loading. Props to atom for being able to load this file. :) (Though really, these dom based editors need to take a step back, mmap files, and blit segments of the overall editing pane).
[Enter steps to reproduce below:]
The script runs fine from the terminal.
Atom Version: 0.187.0 System: Mac OS X 10.10.2 Thrown From: script package, v2.18.0
Stack Trace
Uncaught Error: spawn E2BIG
Commands
Config
Installed Packages