Comments (6)
@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.
The same is with xquery-worker. Please remove it from mode/xquery.js or create an empty worker.
from brace.
@thlorenz Is there any solution for this? I am also stuck with this.
from brace.
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.
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.
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)
- Lua mode doesn't support the Lua 5.3 floor-division operator '//' HOT 1
- Typo in searchbox.js
- Upgrade ace editor version to latest HOT 7
- Add support to Firefox nunjucks
- Wrong cursur width when typing Asian Characters under Vim Mode HOT 1
- Support for flatbuffers mode
- About AutoCompletion
- Mismatched / incorrect types
- setValue method is emitting the change event twice HOT 2
- Could brace format js code?
- The getname() method cannot get the result of the error prompt in time HOT 1
- Get errors list or invalid state
- How to get Range from Brace and TypeScript? HOT 1
- Hi,how to show line number? HOT 1
- Accessibility: Add role=log attribute to autocomplete popup. #1777
- Question/Accessibility: what is the keyboard combo to get out of of the focus trap?
- Keyboard trap is observed between tool bar section and code block under "Module Twin" tab. HOT 3
- seems not working for chrome mv3 extensions.
- editor: assigning value during initialization of editor
- findDOMNode is deprecated and will be removed in the next major release
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from brace.