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

KaTex Parse Error #9856

Closed
njmulsqb opened this issue Feb 4, 2024 · 1 comment
Closed

KaTex Parse Error #9856

njmulsqb opened this issue Feb 4, 2024 · 1 comment
Labels
bug It's a bug

Comments

@njmulsqb
Copy link
Contributor

njmulsqb commented Feb 4, 2024

Operating system

macOS

Joplin version

2.13.15

Desktop version info

Joplin 2.13.15 (prod, darwin)

Client ID: 5ab41cb905494c2882efb1db8a1d3612
Sync Version: 3
Profile Version: 44
Keychain Supported: Yes

Revision: 7d2c1c0

Conflict Resolution: 1.2.3
Simple Backup: 1.3.5

Current behaviour

When I paste the following aggregate query in text editor

db.iprepservicedbs.aggregate([ { $group: { _id: { orgID: "$orgID", machine_identifier: "$machine_identifier", processName: "$processName" }, count: { $sum: 1 }, communicationTime: { $push: "$communicationTime" }, /* Keep other fields intact by using $first*/ orgID: { $first: "$orgID" }, machine_identifier: { $first: "$machine_identifier" }, IP: { $first: "$IP" }, isMalicious: { $first: "$isMalicious" }, reason: { $first: "$reason" }, processName: { $first: "$processName" }, ipOrganization: { $first: "$ipOrganization" }, country: { $first: "$country" }, countryCode: { $first: "$countryCode" }, exePath: { $first: "$exePath" }, appSigned: { $first: "$appSigned" }, __v: { $first: "$__v" }, firstId: { $first: "$_id" } /* Preserve the _id of the first document*/ } }, { $project: { _id: "$firstId", /* Use the preserved _id of the first document*/ count: "$count", /* Include count but not in the final output*/ orgID: 1, machine_identifier: 1, IP: 1, isMalicious: 1, reason: 1, communicationTime: 1, processName: 1, ipOrganization: 1, country: 1, countryCode: 1, exePath: 1, appSigned: 1, __v: 1 } }] ).pretty()

it shows up as:

image

Expected behaviour

The error should not be there.

Logs

No response

@njmulsqb njmulsqb added the bug It's a bug label Feb 4, 2024
@laurent22
Copy link
Owner

When pasting source code that may contain reserved characters it's better to wrap it in a code block like so:

Screenshot_20240204_190524_Joplin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug It's a bug
Projects
None yet
Development

No branches or pull requests

2 participants