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.

Incremental rebuilds are stopped in case of error

See original GitHub issue

While codedoc serve was running, I created the code block…

```C# ```

…and then saved. Initially I received the error message

Language does not exist: C#

After a delay of a few seconds, I received this error message

Error:
 #
 # Unrecognized Language:: C#
 #
 # Check https://prismjs.com/#supported-languages for a list of supported languages.
 # You can also add --safe-highlight flag to snippets with unsupported langauges.
 #
    at Object.Code (C:\Code\Blogs\tyson-williams-blog\.codedoc\node_modules\@codedoc\core\src\components\code\index.tsx:53:22)
    at ComponentPlugin.create (C:\Code\Blogs\tyson-williams-blog\.codedoc\node_modules\@connectv\html\src\renderer\plugin\component\component.ts:39:25)
    at C:\Code\Blogs\tyson-williams-blog\.codedoc\node_modules\@connectv\html\src\renderer\extensible-renderer.ts:45:77
    at Array.some (<anonymous>)
    at ExtensibleRenderer.create (C:\Code\Blogs\tyson-williams-blog\.codedoc\node_modules\@connectv\html\src\renderer\extensible-renderer.ts:45:18)
    at Parser.tok (C:\Code\Blogs\tyson-williams-blog\.codedoc\node_modules\@connectv\marked\src\parser.tsx:75:16)
    at Parser.parse (C:\Code\Blogs\tyson-williams-blog\.codedoc\node_modules\@connectv\marked\src\parser.tsx:34:28)
    at C:\Code\Blogs\tyson-williams-blog\.codedoc\node_modules\@connectv\marked\src\index.ts:13:19
    at Object.<anonymous> (C:\Code\Blogs\tyson-williams-blog\.codedoc\node_modules\@codedoc\core\src\build\content.tsx:19:36)
    at step (C:\Code\Blogs\tyson-williams-blog\.codedoc\node_modules\@codedoc\core\dist\es5\build\content.js:44:23)
[ERROR] 20:50:35 Error:
 #
 # Unrecognized Language:: C#
 #
 # Check https://prismjs.com/#supported-languages for a list of supported languages.
 # You can also add --safe-highlight flag to snippets with unsupported langauges.
 #

After this, there was no longer any incremental rebuilds.

I expected that incremental rebuilds would continue.

The URL https://prismjs.com/#supported-languages in the error message was very helpful. It helped me realize that I should replace C# with csharp. If I make this kind of mistake again, I hope this URL is provided and incremental rebuilds continue working.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
TysonMNcommented, Jul 16, 2020

Works perfectly! Great job 😃

1reaction
loreanvictorcommented, Jul 15, 2020

I will test when a new version is released. Latest version of core is still 0.2.6 from 22 days ago.

yes its not released yet. I’m going to release it ideally today or tomorrow alongside bunch of other changes and bug fixes.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Docs question] Does watch mode enable incremental ...
Watch mode means esbuild reacts to filesystem events and triggers onRebuild events whereas when incremental is enabled, result.rebuild() ...
Read more >
hive druid mv incremental rebuild not work
Incremental rebuilding : updating a materialized view only computes the data that was inserted in its sources tables since the last update;; Query...
Read more >
Incremental Builds stopped working correctly. Need help!
Is there any way to debug the incremental build pipeline to see why it is rebuilding the whole code base instead of just...
Read more >
Incremental Repair: Problems and a Solution - Pythian Blog
1. Take a snapshot first for the keyspace / table for which you are reverting incremental repairs. · 2. Flush and drain the...
Read more >
Incremental make fails when source file deleted - Stack Overflow
I modified the %.d recipe so that the dependencies are only considered if the file still exists. The new Makefile rule: %.d: %.c...
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