Comments (15)
Moving to v0.9.3 fixed this problem for me.
from actions.
honestly no, but we need to have a look
from actions.
I'll update and report back if the problem reappears, @arturcic! 👍
from actions.
I saw that error on the GitTools/actions itself when building a [dependabot] PR, but I re-run the build and it was fine
from actions.
Yes, re-running the build fixes the problem, but I've seen it 3 times now. Any ideas what might cause it?
from actions.
Is it possible to get some sort of source maps available so we get sensible line numbers and stack traces? bundle.js:5:943
is pretty much worthless information, unfortunately.
from actions.
It should be possible, I'll check it how
from actions.
Seeing this all the time in 5.1.x. In 5.2.x, I get a bit more clarity (may be unrelated).
Don't think I'm doing any particularly complex.
- name: Install GitVersion
uses: gittools/[email protected]
with:
versionSpec: 5.1.x
includePrerelease: false
- name: Use GitVersion
id: gitversion
uses: gittools/actions/gitversion/[email protected]
2020-04-04T07:10:34.1537866Z Command: dotnet-gitversion d:/a/EarTrumpet/EarTrumpet /output json
2020-04-04T07:10:34.1593373Z [command]C:\hostedtoolcache\windows\GitVersion.Tool\5.2.4\x64\dotnet-gitversion.exe d:/a/EarTrumpet/EarTrumpet /output json ""
2020-04-04T07:10:35.0865109Z Unhandled exception. GitVersion.Exceptions.WarningException: Value '' cannot be parsed as output type, please use 'json' or 'buildserver'
2020-04-04T07:10:35.0865624Z at GitVersion.ArgumentParser.ParseArguments(String[] commandLineArguments) in D:\a\GitVersion\GitVersion\src\GitVersionExe\ArgumentParser.cs:line 320
2020-04-04T07:10:35.0865927Z at GitVersion.Program.<>c__DisplayClass1_0.<CreateHostBuilder>b__2(IServiceProvider sp) in D:\a\GitVersion\GitVersion\src\GitVersionExe\Program.cs:line 28
2020-04-04T07:10:35.0866238Z at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
2020-04-04T07:10:35.0866511Z at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
2020-04-04T07:10:35.0866787Z at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)
2020-04-04T07:10:35.0867066Z at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite singletonCallSite, RuntimeResolverContext context)
2020-04-04T07:10:35.0867325Z at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
2020-04-04T07:10:35.0867597Z at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)
2020-04-04T07:10:35.0867846Z at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
2020-04-04T07:10:35.0868143Z at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)
2020-04-04T07:10:35.0868407Z at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite singletonCallSite, RuntimeResolverContext context)
2020-04-04T07:10:35.0868659Z at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
2020-04-04T07:10:35.0868903Z at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
2020-04-04T07:10:35.0869152Z at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass1_0.<RealizeService>b__0(ServiceProviderEngineScope scope)
2020-04-04T07:10:35.0869401Z at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngine.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)
2020-04-04T07:10:35.0871297Z at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.GetService(Type serviceType)
2020-04-04T07:10:35.0871989Z at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService[T](IServiceProvider provider)
2020-04-04T07:10:35.0872422Z at GitVersion.GitVersionCoreModule.<>c.<RegisterTypes>b__0_0(IServiceProvider sp) in D:\a\GitVersion\GitVersion\src\GitVersionCore\GitVersionCoreModule.cs:line 37
2020-04-04T07:10:35.0872700Z at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
2020-04-04T07:10:35.0872959Z at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
2020-04-04T07:10:35.0873241Z at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)
2020-04-04T07:10:35.0873511Z at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite singletonCallSite, RuntimeResolverContext context)
2020-04-04T07:10:35.0874010Z at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
2020-04-04T07:10:35.0874713Z at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)
2020-04-04T07:10:35.0875167Z at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
2020-04-04T07:10:35.0875478Z at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)
2020-04-04T07:10:35.0875785Z at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite singletonCallSite, RuntimeResolverContext context)
2020-04-04T07:10:35.0876058Z at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
2020-04-04T07:10:35.0876302Z at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)
2020-04-04T07:10:35.0876565Z at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
2020-04-04T07:10:35.0876848Z at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)
2020-04-04T07:10:35.0878615Z at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite singletonCallSite, RuntimeResolverContext context)
2020-04-04T07:10:35.0879104Z at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
2020-04-04T07:10:35.0879421Z at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitIEnumerable(IEnumerableCallSite enumerableCallSite, RuntimeResolverContext context)
2020-04-04T07:10:35.0879715Z at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
2020-04-04T07:10:35.0880022Z at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)
2020-04-04T07:10:35.0880811Z at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite singletonCallSite, RuntimeResolverContext context)
2020-04-04T07:10:35.0881199Z at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
2020-04-04T07:10:35.0881486Z at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
2020-04-04T07:10:35.0881776Z at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass1_0.<RealizeService>b__0(ServiceProviderEngineScope scope)
2020-04-04T07:10:35.0882059Z at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngine.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)
2020-04-04T07:10:35.0882341Z at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.GetService(Type serviceType)
2020-04-04T07:10:35.0882610Z at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService[T](IServiceProvider provider)
2020-04-04T07:10:35.0882873Z at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken)
2020-04-04T07:10:35.0883156Z at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
2020-04-04T07:10:35.0883417Z at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
2020-04-04T07:10:35.0883691Z at GitVersion.Program.Main(String[] args) in D:\a\GitVersion\GitVersion\src\GitVersionExe\Program.cs:line 14
2020-04-04T07:10:35.0883904Z at GitVersion.Program.<Main>(String[] args)
2020-04-04T07:10:35.1184761Z (node:4396) UnhandledPromiseRejectionWarning: TypeError: (e || "").replace is not a function
2020-04-04T07:10:35.1200895Z at d:\a\_actions\gittools\actions\v0.9\dist\github\gitversion\execute\bundle.js:5:943
2020-04-04T07:10:35.1208442Z at s.toString (d:\a\_actions\gittools\actions\v0.9\dist\github\gitversion\execute\bundle.js:5:1005)
2020-04-04T07:10:35.1211544Z at o (d:\a\_actions\gittools\actions\v0.9\dist\github\gitversion\execute\bundle.js:5:372)
2020-04-04T07:10:35.1213576Z at Object.t.issue (d:\a\_actions\gittools\actions\v0.9\dist\github\gitversion\execute\bundle.js:5:432)
2020-04-04T07:10:35.1241844Z at c (d:\a\_actions\gittools\actions\v0.9\dist\github\gitversion\execute\bundle.js:9:741)
2020-04-04T07:10:35.1244898Z at Object.t.setFailed (d:\a\_actions\gittools\actions\v0.9\dist\github\gitversion\execute\bundle.js:9:1482)
2020-04-04T07:10:35.1245324Z at h.setFailed (d:\a\_actions\gittools\actions\v0.9\dist\github\gitversion\execute\bundle.js:304:1902)
2020-04-04T07:10:35.1245902Z at Object.<anonymous> (d:\a\_actions\gittools\actions\v0.9\dist\github\gitversion\execute\bundle.js:332:1542)
2020-04-04T07:10:35.1246223Z at Generator.throw (<anonymous>)
2020-04-04T07:10:35.1246472Z at a (d:\a\_actions\gittools\actions\v0.9\dist\github\gitversion\execute\bundle.js:332:221)
2020-04-04T07:10:35.1246924Z (node:4396) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
2020-04-04T07:10:35.1247255Z (node:4396) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
2020-04-04T07:10:35.1743675Z Post job cleanup.
from actions.
Upgrading to gitversion/[email protected] resolved my particular issue so probably not related after all.
from actions.
i also began experiencing this issue quite recently. it has been happening consistently. what's weird is it was working fine before and started all of a sudden. i'm currently unable to run my builds.
(node:3423) UnhandledPromiseRejectionWarning: TypeError: (e || "").replace is not a function at /home/runner/work/_actions/gittools/actions/v0.9.2/dist/github/gitversion/execute/bundle.js:5:943 at s.toString (/home/runner/work/_actions/gittools/actions/v0.9.2/dist/github/gitversion/execute/bundle.js:5:1005) at o (/home/runner/work/_actions/gittools/actions/v0.9.2/dist/github/gitversion/execute/bundle.js:5:372) at Object.t.issue (/home/runner/work/_actions/gittools/actions/v0.9.2/dist/github/gitversion/execute/bundle.js:5:432) at c (/home/runner/work/_actions/gittools/actions/v0.9.2/dist/github/gitversion/execute/bundle.js:9:741) at Object.t.setFailed (/home/runner/work/_actions/gittools/actions/v0.9.2/dist/github/gitversion/execute/bundle.js:9:1482) at h.setFailed (/home/runner/work/_actions/gittools/actions/v0.9.2/dist/github/gitversion/execute/bundle.js:308:1902) at Object.<anonymous> (/home/runner/work/_actions/gittools/actions/v0.9.2/dist/github/gitversion/execute/bundle.js:336:1575) at Generator.next (<anonymous>) at s (/home/runner/work/_actions/gittools/actions/v0.9.2/dist/github/gitversion/execute/bundle.js:336:170) (node:3423) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:3423) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
any idea what could be wrong? i would be happy to provide more details.
from actions.
I'm seeing this issue also. My config is almost exactly as in the docs:
- name: Install GitVersion
uses: gittools/actions/gitversion/[email protected]
with:
versionSpec: '5.2.x'
- name: Use gitversion
id: gitversion # step id used as reference for output values
uses: gittools/actions/gitversion/[email protected]
with:
useConfigFile: true
Error details:
(node:2789) UnhandledPromiseRejectionWarning: TypeError: (e || "").replace is not a function
at /home/runner/work/_actions/gittools/actions/v0.9.2/dist/github/gitversion/execute/bundle.js:5:943
at s.toString (/home/runner/work/_actions/gittools/actions/v0.9.2/dist/github/gitversion/execute/bundle.js:5:1005)
at o (/home/runner/work/_actions/gittools/actions/v0.9.2/dist/github/gitversion/execute/bundle.js:5:372)
at Object.t.issue (/home/runner/work/_actions/gittools/actions/v0.9.2/dist/github/gitversion/execute/bundle.js:5:432)
at c (/home/runner/work/_actions/gittools/actions/v0.9.2/dist/github/gitversion/execute/bundle.js:9:741)
at Object.t.setFailed (/home/runner/work/_actions/gittools/actions/v0.9.2/dist/github/gitversion/execute/bundle.js:9:1482)
at h.setFailed (/home/runner/work/_actions/gittools/actions/v0.9.2/dist/github/gitversion/execute/bundle.js:308:1902)
at Object. (/home/runner/work/_actions/gittools/actions/v0.9.2/dist/github/gitversion/execute/bundle.js:336:1575)
at Generator.next ()
at /home/runner/work/_actions/gittools/actions/v0.9.2/dist/github/gitversion/execute/bundle.js:336:368
(node:2789) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:2789) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
from actions.
the issue randomly appears in my builds too
from actions.
@asbjornu in version v0.9.3 I did not compress the files, in case you notice the same issue, can you put here the output?
from actions.
Thanks for the update, closing
from actions.
Came across this as well, please update the documentation to point to v0.9.3 (or higher, 0.9.4 is out already too). Right now it still says 0.9.2 in all examples and docs. Maybe provide a tag that always points to latest version, and use that?
from actions.
Related Issues (20)
- Running GitVersion twice (in separate runs) yields incorrect build names HOT 1
- Node.js 16 actions are deprecated HOT 3
- Example 2 results in error: Error: GitVersion configuration file not found HOT 1
- gitversion/setup@0 fails due to missing dotnet, but cannot install on container HOT 2
- delete HOT 1
- ##[error]Error: Unable to locate executable file: 'dotnet-gitversion'. HOT 6
- Patch environment variable randomly does not get populated HOT 7
- Version not incrementing since update to version 5.x HOT 1
- gitversion/execute@0 fails with ##[error]TypeError: Cannot read property 'message' of undefined HOT 2
- Add additional GitVersion command line flags support
- Limit the version range a specific version of GitTools/actions can install
- Improve the docs in preparation for v1.0.0
- [ISSUE]: Version 13.2 causes "tunneling socket could not be established" error. Downgrading to 12.1 works. HOT 5
- [ISSUE]: updated the version range for GitVersion to >=5.2.0 <6.1.0 HOT 1
- Check repository if it's shallow clone when running the GitVersion actions/tasks
- [ISSUE]: Getting an issue with Version spec '0.17.0' resolved as '0.17.0' does not satisfy the range '>=0.13.0 <0.17.0'. HOT 2
- [ISSUE]: Git shallow copy check fails HOT 10
- [ISSUE]: unsupported extension name extensions.worktreeconfig HOT 15
- [ISSUE]: `gitversion/setup`, Azure DevOps, pipeline task, not finding local/cached `GitVersion.Tool` when `versionSpec` uses wildcard (e.g. `5.x`) HOT 1
- [ISSUE]: unsupported extension name extensions.worktreeconfig HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from actions.