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.

Caching issue impacting local folder templates

See original GitHub issue

There is some caching issue happening that is impacting local template dev experiences. I’ve noticed that when I create a template that doesn’t have any symbols, after adding symbols later they are not properly detected. Try these steps.

  • Create a project template in a folder that doesn’t have any symbols
  • Install the template with dotnet new --install [folder-path]
  • Modify source template to have one or more symbols
  • Uninstall the template with dotnet new --uninstall [folder-path]
  • Install the template with dotnet new --install [folder-path]
  • Run template specific help with dotnet new [template-name] -h

When you run the help, you’ll notice that the parameters appear but the names for the options will not appear on the left side of the descriptions. If you try to execute the template and pass in a param it will fail.

To fix this sometimes you can change the id of the template, but in other cases you’ll need to actually move the template to another folder to get it to install correctly. I have a video below showing you what happens, but you can also see that I ran into this issue when I was presenting at dotnet conf. Here are the timestamps where I ran into this.

https://user-images.githubusercontent.com/1283154/143909623-3e97db57-41da-47ae-bf54-0f6c10a59a4e.mp4

cc @vlada-shubina @phenning @vijayrkn

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
vlada-shubinacommented, Nov 30, 2021

@sayedihashimi apologies, it is --debug:rebuildcache (without dash).

0reactions
vlada-shubinacommented, Sep 1, 2022

@ajdvoynos the change wad done only in .NET 7. It was not backported to .NET 6 unfortunately.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Manage download settings for shared mail folders in ...
Provides details on how to disable the download of shared mail folders in Cached Exchange mode in Outlook 2013 and later versions.
Read more >
Template caching - General Support
You can manually clear the entire template cache by going to Modules -> Configure -> PageRender and checking the checkbox there. Or use...
Read more >
Caching Prevents Live Site From Showing Changes In Editor
Changes You See In The Editor Do Not Show On The Live Site · Go to Elementor > Tools > Regenerate CSS and...
Read more >
Understanding caching directories | Adobe Experience Cloud
Environment Adobe Experience Manager. Issue/Symptoms This document explains how dispatcher caching happens and how it can be configured.
Read more >
Clearing the ColdFusion template cache programmatically
First, in the CF 10 Admin "Caching" page, there's not only the long-existing button (since CF7) to clear the entire template cache, but...
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