Closed xvw closed 4 years ago
Hi! A change in Atom 1.23 (beta) broke token detection. For some reason, it's not allowing some unicode characters in the regular expression.
tokenRegex() {
return new RegExp(
'[\\d' +
unicodeHelper.letters() +
'~`!@#\\$%\\^&\\*_\\-\\+=:;\\|\\\\<>\\.\\?\\/]+|\\(,+\\)'
);
},
https://github.com/halohalospecial/atom-elmjutsu/blob/master/lib/unicode-helper.js
You can either comment out unicodeHelper.letters() +
in ~/.atom/packages/elmjutsu/lib/helper.js
(where ~/.atom
is Atom's root directory) or use Atom 1.22 in the meantime.
Thanks ! It is work now. Should I close the issue or let it ?
Hi, let's leave it open since it still needs to be resolved for Atom 1.23.
Any news on this? The a ton of features don't seem to work if I comment out that line.
Hi @LukaHorvat, which features didn't work when you commented out the line?
Well, autocomplete for starters.
Hi all! Sorry, forgot to mention that you should replace the commented line. The latest version (v7.1.6) has a workaround for this. The only caveat is that it will not work for other Unicode characters anymore if the Atom version is 1.23.0 or higher.
[Enter steps to reproduce:]
Atom: 1.23.0-beta0 x64 Electron: 1.6.15 OS: Mac OS X 10.12.6 Thrown From: elmjutsu package 7.1.5
Stack Trace
Uncaught Error: PCRE does not support \L, \l, \N{name}, \U, or \u
Commands
Non-Core Packages