from Peter, but when I load the ext-language_tools.js from the Ace Editor, it throws a bunch of errors : screenshot https://prnt.sc/Ypezs0bwvZWC .
The weird thing is that sometimes it works. Is there any way to fix this?
trying loading
Code: Select all
Procedure Init(Callback)
! require([
! "https://cdnjs.cloudflare.com/ajax/libs/ace/1.40.0/ace.js",
; LOADING LANG TOOLS<-------------------------------------------
! "https://cdnjs.cloudflare.com/ajax/libs/ace/1.40.0/ext-language_tools.min.js"
! ], function() {
IsInitialized = #True
! v_callback();
! });
EndProcedure
Procedure BindGadget(Gadget)
GetSelector
! editor = ace.edit(selector[0]);
! ace.require("ace/ext/language_tools");
; SETTINGS<-------------------------------------------
! editor.setOptions({
! enableBasicAutocompletion: true,
! enableSnippets: true,
! enableLiveAutocompletion: true
! });
! selector.data("editor", editor);
! spider.DojoAspect.after(dijit.byId(spider_GadgetID(v_gadget).gadget.id), "resize", function() {
Resize(Gadget)
! });
EndProcedure
Code: Select all
:9080/spiderbasic/libraries/javascript/ace/lib/dom.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
dojo.js:28 Error: scriptError
at l (dojo.js:2:382)
at HTMLScriptElement.<anonymous> (dojo.js:27:69)
(anonymous) @ dojo.js:28
:9080/spiderbasic/libraries/javascript/ace/lib/oop.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
dojo.js:28 Error: scriptError
at l (dojo.js:2:382)
at HTMLScriptElement.<anonymous> (dojo.js:27:69)
(anonymous) @ dojo.js:28
ace.js:1 misspelled option "enableBasicAutocompletion"
a @ ace.js:1
ace.js:1 misspelled option "enableSnippets"
a @ ace.js:1
ace.js:1 misspelled option "enableLiveAutocompletion"
a @ ace.js:1
:9080/spiderbasic/libraries/javascript/ace/lib/event_emitter.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
:9080/spiderbasic/libraries/javascript/ace/lib/lang.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
:9080/spiderbasic/libraries/javascript/ace/range.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
:9080/spiderbasic/libraries/javascript/ace/range_list.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
:9080/spiderbasic/libraries/javascript/ace/tokenizer.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
:9080/spiderbasic/libraries/javascript/ace/keyboard/hash_handler.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
:9080/spiderbasic/libraries/javascript/ace/clipboard.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
:9080/spiderbasic/libraries/javascript/ace/virtual_renderer.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
:9080/spiderbasic/libraries/javascript/ace/editor.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
:9080/spiderbasic/libraries/javascript/ace/lib/event.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
:9080/spiderbasic/libraries/javascript/ace/lib/useragent.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
:9080/spiderbasic/libraries/javascript/ace/config.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
:9080/spiderbasic/libraries/javascript/ace/lib/scroll.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
dojo.js:28 Error: scriptError
at l (dojo.js:2:382)
at HTMLScriptElement.<anonymous> (dojo.js:27:69)
(anonymous) @ dojo.js:28
dojo.js:28 Error: scriptError
at l (dojo.js:2:382)
at HTMLScriptElement.<anonymous> (dojo.js:27:69)
(anonymous) @ dojo.js:28
dojo.js:28 Error: scriptError
at l (dojo.js:2:382)
at HTMLScriptElement.<anonymous> (dojo.js:27:69)
(anonymous) @ dojo.js:28
dojo.js:28 Error: scriptError
at l (dojo.js:2:382)
at HTMLScriptElement.<anonymous> (dojo.js:27:69)
(anonymous) @ dojo.js:28
dojo.js:28 Error: scriptError
at l (dojo.js:2:382)
at HTMLScriptElement.<anonymous> (dojo.js:27:69)
(anonymous) @ dojo.js:28
dojo.js:28 Error: scriptError
at l (dojo.js:2:382)
at HTMLScriptElement.<anonymous> (dojo.js:27:69)
(anonymous) @ dojo.js:28
dojo.js:28 Error: scriptError
at l (dojo.js:2:382)
at HTMLScriptElement.<anonymous> (dojo.js:27:69)
(anonymous) @ dojo.js:28
dojo.js:28 Error: scriptError
at l (dojo.js:2:382)
at HTMLScriptElement.<anonymous> (dojo.js:27:69)
(anonymous) @ dojo.js:28
dojo.js:28 Error: scriptError
at l (dojo.js:2:382)
at HTMLScriptElement.<anonymous> (dojo.js:27:69)
(anonymous) @ dojo.js:28
dojo.js:28 Error: scriptError
at l (dojo.js:2:382)
at HTMLScriptElement.<anonymous> (dojo.js:27:69)
(anonymous) @ dojo.js:28
dojo.js:28 Error: scriptError
at l (dojo.js:2:382)
at HTMLScriptElement.<anonymous> (dojo.js:27:69)
(anonymous) @ dojo.js:28
dojo.js:28 Error: scriptError
at l (dojo.js:2:382)
at HTMLScriptElement.<anonymous> (dojo.js:27:69)
(anonymous) @ dojo.js:28
dojo.js:28 Error: scriptError
at l (dojo.js:2:382)
at HTMLScriptElement.<anonymous> (dojo.js:27:69)
(anonymous) @ dojo.js:28