Giter Club home page Giter Club logo

Comments (6)

ozws avatar ozws commented on July 17, 2024 1

@beryllium, thanks, that worked for getting rid of the warning.

However, I needed the following to get the highlighting working (from #2542 (comment)):

session.setMode({path:"ace/mode/php", inline:true})

from brace.

hellpf avatar hellpf commented on July 17, 2024

The same is with xquery-worker. Please remove it from mode/xquery.js or create an empty worker.

from brace.

pankitgami avatar pankitgami commented on July 17, 2024

@thlorenz Is there any solution for this? I am also stuck with this.

from brace.

thlorenz avatar thlorenz commented on July 17, 2024

Nope, I wasn't able to properly convert those workers into blobs .. tried for a while, but they don't properly stringify.
However anyone is welcome to try and fix this I'd be very happy with a PR that does :)

from brace.

beryllium avatar beryllium commented on July 17, 2024

If I replace the reference to mod.id in index.js near line 18003 with just mod, the error goes away and the code seems to be highlighted. Could the fix be this simple, or am I missing something?

from brace.

ajthinking avatar ajthinking commented on July 17, 2024

Good catch @beryllium and @ozws, thank you! If it need to keep working for other languages alongside php, set line ~18003 to

workerUrl = workerUrl || config.moduleUrl(mod.id ? mod.id : mod, "worker");

I put the whole thing in a new file BraceWithBugFix.js and then used var ace = require('./BraceWithBugFix'); feels somewhat dirty though 😄

from brace.

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.