ForbesLindesay / jade-brackets

Brackets and code-mirror modes for jade
MIT License
29 stars 9 forks source link

Throws errors in a JSX file #26

Open mitchellsimoens opened 8 years ago

mitchellsimoens commented 8 years ago

When programming in a .jsx file, if I have this code:

'use strict';

let foo = (

);

Everything is fine. However, as soon as I type < within the parenthesis an error is thrown:

jsMode.expressionAllowed is not a function

If I disable only this jade extension, everything is back to working.

For clarity, this is what I try to type:

'use strict';

let foo = (
    <
);

Notice the < difference with the working code above.

Current brackets version (should be latest downloadable from brackets.io):

Release 1.7 build 1.7.0-16898 (release b0a363b71)

frasergr commented 8 years ago

Experiencing the same issue here.

Windows 10.0.14393 Build 14393

Brackets Release 1.7 build 1.7.0-16898 (release b0a363b71)

DaddyWarbucks commented 8 years ago

I am having similar issues. I cannot jet a .jsx file to display at all actually. (latest version of Brackets running on Ubuntu)

itacode commented 8 years ago

I cannot open .jsx files when the character < is present into them. Also when I digit the character < in new .jsx files, the editor window content disappears. (latest version of Brackets running on Windows 10 1511)

boybundit commented 7 years ago

The same issue still occurs in Release 1.8 build 1.8.0-17108.

zaggino commented 7 years ago

This file is to blame for this: https://github.com/ForbesLindesay/jade-brackets/blob/master/lib/overlay.js , it overrides default CodeMirror code here https://github.com/ForbesLindesay/jade-brackets/blob/master/lib/overlay.js#L6 so I'd advise against using this extension with Brackets

zaggino commented 7 years ago

https://github.com/adobe/brackets/pull/13131