Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Firefox] Firefox errors on the markdown's unicode regular expression for word definitions #83698

Closed
mjbvz opened this issue Oct 30, 2019 · 3 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug firefox Issues running VSCode in Web on Firefox markdown Markdown support issues upstream Issue identified as 'upstream' component related (exists outside of VS Code) upstream-issue-linked This is an upstream issue that has been reported upstream verified Verification succeeded web Issues related to running VSCode in the web
Milestone

Comments

@mjbvz
Copy link
Collaborator

mjbvz commented Oct 30, 2019

Repo

  1. Using firefox
  2. Open a markdown file

Bug
In dev tools, see:

invalid identity escape in regular expression: _reviveRegExp@http://localhost:9888/static/out/vs/workbench/api/browser/mainThreadLanguageFeatures.js:460:20
$setLanguageConfiguration@http://localhost:9888/static/out/vs/workbench/api/browser/mainThreadLanguageFeatures.js:485:88
_doInvokeHandler@http://localhost:9888/static/out/vs/workbench/services/extensions/common/rpcProtocol.js:331:27
_invokeHandler@http://localhost:9888/static/out/vs/workbench/services/extensions/common/rpcProtocol.js:316:45
_receiveRequest@http://localhost:9888/static/out/vs/workbench/services/extensions/common/rpcProtocol.js:243:32
_receiveOneMessage@http://localhost:9888/static/out/vs/workbench/services/extensions/common/rpcProtocol.js:171:26
RPCProtocol/<@http://localhost:9888/static/out/vs/workbench/services/extensions/common/rpcProtocol.js:61:52
fire@http://localhost:9888/static/out/vs/base/common/event.js:458:38
@mjbvz mjbvz added bug Issue identified by VS Code Team member as probable bug markdown Markdown support issues firefox Issues running VSCode in Web on Firefox labels Oct 30, 2019
@mjbvz mjbvz self-assigned this Oct 30, 2019
@bpasero bpasero added the web Issues related to running VSCode in the web label Oct 31, 2019
@rebornix
Copy link
Member

rebornix commented Nov 11, 2019

It's already being tracked in Firefox bugzilla as it doesn't implement RegExp Unicode Property Escapes yet https://bugzilla.mozilla.org/show_bug.cgi?id=1361876

export function regExpFlags(regexp: RegExp): string {
return (regexp.global ? 'g' : '')
+ (regexp.ignoreCase ? 'i' : '')
+ (regexp.multiline ? 'm' : '')
+ ((regexp as any).unicode ? 'u' : '');
}

I'm not a fan of having special logic for Firefox to stop unicode escaping and creating regex without u flag. The error is thrown from word pattern regex parsing and as I didn't see any misbehavior of word related operations in Markdown files, I'll recommend to put this issue in backlog and ask for Firefox to catch up @mjbvz .

@rebornix rebornix added upstream Issue identified as 'upstream' component related (exists outside of VS Code) upstream-issue-linked This is an upstream issue that has been reported upstream labels Nov 11, 2019
@mjbvz mjbvz added this to the Backlog milestone Nov 11, 2019
@connorshea
Copy link
Contributor

Looks like this is coming in Firefox 78 :) https://bugzilla.mozilla.org/show_bug.cgi?id=1361876#c16

@mjbvz mjbvz modified the milestones: Backlog, June 2020 Jul 7, 2020
@mjbvz
Copy link
Collaborator Author

mjbvz commented Jul 7, 2020

Confirmed this is fixed in the latest Firefox release

@mjbvz mjbvz closed this as completed Jul 7, 2020
@mjbvz mjbvz modified the milestones: June 2020, July 2020 Jul 7, 2020
@roblourens roblourens added the verified Verification succeeded label Aug 6, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Aug 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug firefox Issues running VSCode in Web on Firefox markdown Markdown support issues upstream Issue identified as 'upstream' component related (exists outside of VS Code) upstream-issue-linked This is an upstream issue that has been reported upstream verified Verification succeeded web Issues related to running VSCode in the web
Projects
None yet
Development

No branches or pull requests

5 participants