question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error parsing filter config file

See original GitHub issue

Title

Error parsing filter config file

Functional impact

Metadata cannot be generated, thus a build is not possible.

Minimal repro steps

  1. Include this line into the config file, section metadata: "filter": "filterConfig.yml"
  2. Create a file named “filterConfig.yml” with the following content:
apiRules:
- include:
	uidRegex: ^Fsd\.HuaDataGenerator\.Application$
- exclude:
	uidRegex: ^Fsd\.HuaDataGenerator$

Alternatively, the following content produces the same result:

apiRules:
- include:
	uid: Fsd.HuaDataGenerator.Application
- exclude:
	uid: Fsd.HuaDataGenerator

Expected result

Metadata generation without error.

Actual result

The following error shows up: [17-07-14 02:09:12.808]Info:Config file docfx.json found, start generating metadata… [17-07-14 02:09:15.736]Error:Error extracting metadata for /src/HuaDataGenerator/HuaDataGenerator.csproj,/src/TestHuaDataGen/TestHuaDataGen.csproj: Error parsing filter config file filterConfig.yml: (Line: 3, Col: 1, Idx: 23) - (Line: 3, Col: 2, Idx: 24): While scanning for the next token, find character that cannot start any token.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
fsdthnkcommented, Jul 17, 2017

@vwxyzh Now the code as published above works 😃 Don’t know why. Maybe due to the replacement of tabs by spaces in the config file.

0reactions
fsdthnkcommented, Jul 17, 2017

@vwxyzh Also this code does not work:

apiRules:
- include:
  uidRegex: ^Fsd\.HuaDataGenerator\.Application$
  uidRegex: ^Fsd\.HuaDataGenerator\.IHuaDevice$
- exclude:
  uidRegex: ^Fsd\.HuaDataGenerator\.HuaDevice$
  uidRegex: ^TestHuaDataGen\.

See screenshot below: screenshot

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error "Error parsing filter for field 'field name' ignoring filter ...
Issue. When refreshing Snowflake extracts that contain integers for boolean fields, the below error will occur. If connecting live, blank views ...
Read more >
"Parsing filters unsupported" error during extraction of RAR ...
So how exactly do I fix this problem? I am running Ubuntu GNOME 16.04.1 with GNOME 3.20. Information Update: In reply to a...
Read more >
[syslog-ng] Error parsing conf file?
After installing version 1.9.4 I can no longer read the syslog-ng.conf ... Pix configuration grep command filter being logged by daily cron job...
Read more >
Bug ID 711248: After upgrade to 13.1.0 or later, mcpd fails ...
Bug ID 711248: After upgrade to 13.1.0 or later, mcpd fails to start due to syslog config parsing error. Last Modified: Jul 12,...
Read more >
Legacy Filter configuration cannot be imported in version ...
WorldServer - Legacy Filter configuration cannot be imported in version 11.7.x and 11.8.x - Error parsing deployment XML: class.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found