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.

Unable to find type [Stubble.Core.Builders.StubbleBuilder]

See original GitHub issue

In this ticket, the customer has an action to run a script for his custom PowerShell workflow. The script includes a step to execute the command “Install-Module Poshstache -Force” to install the module Poshstache. This action could work fine in the past, but now it failed and from the catch error message, it shows:

::error file=/github/home/.local/share/powershell/Modules/Poshstache/0.1.6/ConvertTo-PoshstacheTemplate.ps1,line=67,col=24::Unable to find type [Stubble.Core.Builders.StubbleBuilder].

I noticed a recent reported issue here, it looks likes the problem occurs on PowerShell 7. I also tested and tried on PowerShell 7 and PowerShell 5.1, the module Poshstache can be installed successfully on PowerShell 5.1 but failed on PowerShell 7, same as chwarr mentioned in that issue. And it seems also can work on some other versions lower than PowerShell 7.

I also noticed that the version of PowerShell on the GitHub-hosted Ubuntu runner has been updated from PowerShell 6.2 to PowerShell 7 recently. Maybe this is the reason why the customer’s action could work last month but can’t work now.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
TingluoHuangcommented, Apr 13, 2020

@Mike-E-angelo you might want to check with https://github.com/actions/virtual-environments, from my knowledge, you can not pin to a particular hosted image.

0reactions
TingluoHuangcommented, Jun 6, 2020

close this, since it’s not related to the runner.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Stubble/docs/how-to.md at master
using Stubble.Core.Builders; using System.IO; using System.Text; // Sync public void SyncRender() { var stubble = new StubbleBuilder().
Read more >
How do I render an html block using mustache and single ...
Core.Builders.StubbleBuilder().Build(); //var output = stubble.Render(template, json); var jsonResult = Newtonsoft.Json.JsonConvert.
Read more >
Generating Dynamic PDF Reports from an HTML Template ...
See more from GrapeCity Documents today. ... Core.Builders.StubbleBuilder(); var boundTemplate = builder.Build().
Read more >
How do I render an html block using mustache and single ...
Core.Builders.StubbleBuilder().Build(); //var output = stubble. ... How to get data from a JSON file using Azure functions and C# which is in Blob...
Read more >
How long will taco bell have fries
Mustache also allows you to define the extension it'll use.get ("myFile. ... I can't define functions using the template, all I have to...
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