Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 305 by jochemberndsen: Javascript: certain files use unreasonable  
amounts of memory
http://code.google.com/p/yi-editor/issues/detail?id=305

What steps will reproduce the problem?
1. Create a file containing (on one line):

var test =
["x","x","x","x","x","x","x","x","x","x","x","x","x","x","x","x","x","x","x","x","x","x","x","x","x","x","x","x","x","x","x","x","x","x","x","x","x","x","x","x","x","x","x","x","x","x","x","x","x","x","x","x"];

2. Open file in yi (warning: be ready to kill it in another terminal)
3. Observe memory exhaustion.

What is the expected output? What do you see instead?

Please provide relevant version information:

What version of Yi are you using?
0.6.1 hackage, but I removed the Data.Accessor.T instance myself

What version of GHC? 6.10.4
What version of Cabal? 1.6.0.3
What operating system/version? debian stable (lenny)


my ~/.yi/yi.hs:
import Yi

-- Preamble
import Yi.Prelude
import Prelude ()

-- Import the desired keymap "template":
import Yi.Keymap.Emacs (keymap)
import Yi.Keymap.Cua (keymap)
import Yi.Keymap.Vim (keymapSet)

-- Import the desired UI as needed.
-- Some are not complied in, so we import none here.

-- import Yi.UI.Vty (start)
-- import Yi.UI.Cocoa (start)
-- import Yi.UI.Pango (start)

myConfig = defaultVimConfig -- replace with defaultVimConfig or
defaultCuaConfig

defaultUIConfig = configUI myConfig

-- Change the below to your needs, following the explanation in comments.  
See
-- module Yi.Config for more information on configuration. Other  
configuration
-- examples can be found in the examples directory. You can also use or copy
-- another user configuration, which can be found in modules Yi.Users.*

main :: IO ()
main = yi $ myConfig
   {

    -- Keymap Configuration
    defaultKm = defaultKm myConfig,

    -- UI Configuration
    -- Override the default UI as such:
    startFrontEnd = startFrontEnd myConfig,
                     -- Yi.UI.Vty.start -- for Vty
    -- (can be overridden at the command line)
    -- Options:
    configUI = defaultUIConfig
      {
        configFontSize = Nothing,
                         -- 'Just 10' for specifying the size.
        configTheme = configTheme defaultUIConfig,
                      -- darkBlueTheme  -- Change the color scheme here.

        configWindowFill = ' '
                           -- '~'    -- Typical for Vim
      }
   }




--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
Yi development mailing list
[email protected]
http://groups.google.com/group/yi-devel
-~----------~----~----~----~------~----~------~--~---

Reply via email to