Giter Site home page Giter Site logo

Comments (6)

davidbau avatar davidbau commented on July 19, 2024

Some notes from Anthony

Here's the fork:
https://github.com/dabbler0/pencilcode-site

If you run the devserver normally it will kind of work, and ice will be the default editor when you open a file. It is a hack and broke a lot of stuff.

The pencilcode fork right now just contains the compiled ice editor code (at site/top/lib/ice.js); the ice editor source repo is here:
https://github.com/dabbler0/ice_editor_canvas

from pencilcode.

dabbler0 avatar dabbler0 commented on July 19, 2024

Things that are broken and need to be fixed:

  • The ace editor that ice melts to does not work with most pencilcode features (line-highlighting, font size changing, etc)
  • Keyboard interaction with ace editor is bound to the document, and should not be
  • Performance issues with moving the ice editor cursor around
  • Choose palette blocks (currently empty)
    • Ice currently can't scroll the palette; if it gets too long this will need to be implemented
  • General ICE editor incompleteness:
    • Parser is very incomplete (cannot deal with object literals, single-line ifs, switch statements, class definitions, and more)
    • No good interface for having multiple statements on the same line (semicolon-separated)
    • No good behaviour when programs are syntactically incorrect (parser fails and causes editor to fail)
    • Editor does not resize when its container div resizes

Other good hackathon things:

  • Tweak graphics to look more like Scratch
  • Enable lasso-select on touch devices
  • Implement line highlighting in ice editor (should outline the block on given line), and integrate with turtle debugging

from pencilcode.

curtist avatar curtist commented on July 19, 2024

When I try to clone the repo following the normal PencilCode instructions, I get an error when I run "grunt". Any ideas?

Running "requirejs:compile" (requirejs) task
{ [Error: Error: The config in mainConfigFile /Users/tcurtis/git/pencilcode-site/site/top/src/editor-main.js cannot be used because it cannot be evaluated correctly while running in the optimizer. Try only using a config that is also valid JSON, or do not use mainConfigFile and instead copy the config values needed into a build file or command line arguments given to the optimizer.
Source error from parsing: /Users/tcurtis/git/pencilcode-site/site/top/src/editor-main.js: Error: Line 10: Unexpected string
at /Users/tcurtis/git/pencilcode-site/node_modules/grunt-contrib-requirejs/node_modules/requirejs/bin/r.js:26726:27
]
originalError:
[Error: The config in mainConfigFile /Users/tcurtis/git/pencilcode-site/site/top/src/editor-main.js cannot be used because it cannot be evaluated correctly while running in the optimizer. Try only using a config that is also valid JSON, or do not use mainConfigFile and instead copy the config values needed into a build file or command line arguments given to the optimizer.
Source error from parsing: /Users/tcurtis/git/pencilcode-site/site/top/src/editor-main.js: Error: Line 10: Unexpected string] }

from pencilcode.

weihang7 avatar weihang7 commented on July 19, 2024

It’s due to the ninth line of src/editor-main.js lacking a comma at the end.

On Mar 16, 2014, at 9:46 PM, curtist [email protected] wrote:

When I try to clone the repo following the normal PencilCode instructions, I get an error when I run "grunt". Any ideas?

Running "requirejs:compile" (requirejs) task
{ [Error: Error: The config in mainConfigFile /Users/tcurtis/git/pencilcode-site/site/top/src/editor-main.js cannot be used because it cannot be evaluated correctly while running in the optimizer. Try only using a config that is also valid JSON, or do not use mainConfigFile and instead copy the config values needed into a build file or command line arguments given to the optimizer.
Source error from parsing: /Users/tcurtis/git/pencilcode-site/site/top/src/editor-main.js: Error: Line 10: Unexpected string
at /Users/tcurtis/git/pencilcode-site/node_modules/grunt-contrib-requirejs/node_modules/requirejs/bin/r.js:26726:27
]
originalError:
[Error: The config in mainConfigFile /Users/tcurtis/git/pencilcode-site/site/top/src/editor-main.js cannot be used because it cannot be evaluated correctly while running in the optimizer. Try only using a config that is also valid JSON, or do not use mainConfigFile and instead copy the config values needed into a build file or command line arguments given to the optimizer.
Source error from parsing: /Users/tcurtis/git/pencilcode-site/site/top/src/editor-main.js: Error: Line 10: Unexpected string] }

β€”
Reply to this email directly or view it on GitHub.

from pencilcode.

dabbler0 avatar dabbler0 commented on July 19, 2024

Yeah, I'm not sure how that got in there. Should be okay now.

from pencilcode.

davidbau avatar davidbau commented on July 19, 2024

I think we can close this now!

from pencilcode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.