jessehouwing / azure-pipelines-tfvc-tasks

Azure Pipelines tasks for Team Foundation Version Control
https://marketplace.visualstudio.com/items?itemName=jessehouwing.jessehouwing-vsts-tfvc-tasks
MIT License
27 stars 18 forks source link

FromStrings" with "2" argument(s) #117

Open soerenpc opened 1 month ago

soerenpc commented 1 month ago

Hi I get this _

[error]Exception calling "FromStrings" with "2" argument(s): "The string must have at least one character.

when running: "TFVC - Check-in changes"

any ideas?

jessehouwing commented 1 month ago

No, you're the first in 8 years to report this ;).

There's one place where this method is being called, and my guess would be that the ItemSpec isn't a valid one:

https://github.com/search?q=repo%3Ajessehouwing%2Fazure-pipelines-tfvc-tasks%20FromStrings&type=code

The ItemSpec is the stored in the Files to check in field.

jessehouwing commented 1 month ago

Can you share diagnostic logs? If you don't want to attach them here, send them to jesse.houwing@gmail.com. I may be able to spend some time on this next week.

soerenpc commented 1 month ago

Is this okay: @.***

From: Jesse Houwing @.> Sent: 31. maj 2024 10:24 To: jessehouwing/azure-pipelines-tfvc-tasks @.> Cc: Søren Printz Christensen @.>; Author @.> Subject: Re: [jessehouwing/azure-pipelines-tfvc-tasks] FromStrings" with "2" argument(s) (Issue #117)

No, you're the first in 8 years to report this ;).

There's one place where this method is being called, and my guess would be that the ItemSpec isn't a valid one:

https://github.com/search?q=repo%3Ajessehouwing%2Fazure-pipelines-tfvc-tasks%20FromStrings&type=code

The ItemSpec is the stored in the Files to check in field.

— Reply to this email directly, view it on GitHubhttps://github.com/jessehouwing/azure-pipelines-tfvc-tasks/issues/117#issuecomment-2141471365, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ALCN5XQNTH4XG7SWPX62MZDZFAXSFAVCNFSM6AAAAABISHLSEKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBRGQ3TCMZWGU. You are receiving this because you authored the thread.Message ID: @.**@.>>

soerenpc commented 1 month ago

Hi Jesse

Why doesn't this work? [cid:1d82c43f-a720-40b0-a3ed-58a7689327e8]

2024-05-31T10:41:47.8405521Z ##[section]Starting: Check changes into source control 2024-05-31T10:41:47.8411831Z ============================================================================== 2024-05-31T10:41:47.8411976Z Task : TFVC - Check-in changes #{Extension.Tag}# 2024-05-31T10:41:47.8412072Z Description : Checks in any files changed in the repository. 2024-05-31T10:41:47.8412191Z Version : 2.6.13 2024-05-31T10:41:47.8412261Z Author : Jesse Houwing 2024-05-31T10:41:47.8412353Z Help : More Information 2024-05-31T10:41:47.8412508Z ============================================================================== 2024-05-31T10:42:02.8026289Z D:\a\14\s/LabelResources/de/. ; 2024-05-31T10:42:02.8027192Z D:\a\14\s/LabelResources/es/. ; 2024-05-31T10:42:04.6204336Z ##[error]Exception calling "FromStrings" with "2" argument(s): "The string must have at least one character. Parameter name: item" 2024-05-31T10:42:04.9669204Z ##[section]Finishing: Check changes into source control


From: Jesse Houwing @.> Sent: Friday, May 31, 2024 10:27 To: jessehouwing/azure-pipelines-tfvc-tasks @.> Cc: Søren Printz Christensen @.>; Author @.> Subject: Re: [jessehouwing/azure-pipelines-tfvc-tasks] FromStrings" with "2" argument(s) (Issue #117)

Can you share diagnostic logs? If you don't want to attach them here, send them to @.*** I may be able to spend some time on this next week.

— Reply to this email directly, view it on GitHubhttps://github.com/jessehouwing/azure-pipelines-tfvc-tasks/issues/117#issuecomment-2141480197, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ALCN5XVYQTLZUHZYQJLGM4TZFAX6PAVCNFSM6AAAAABISHLSEKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBRGQ4DAMJZG4. You are receiving this because you authored the thread.

jessehouwing commented 1 month ago

Can you turn on diagnostics and run again?

soerenpc commented 1 month ago

Here

2024-05-31T11:23:10.8243078Z ##[debug]Evaluating condition for step: 'Check changes into source control' 2024-05-31T11:23:10.8243914Z ##[debug]Evaluating: succeeded() 2024-05-31T11:23:10.8244162Z ##[debug]Evaluating succeeded: 2024-05-31T11:23:10.8244625Z ##[debug]=> True 2024-05-31T11:23:10.8244907Z ##[debug]Result: True 2024-05-31T11:23:10.8245202Z ##[section]Starting: Check changes into source control 2024-05-31T11:23:10.8251382Z ============================================================================== 2024-05-31T11:23:10.8251524Z Task : TFVC - Check-in changes #{Extension.Tag}# 2024-05-31T11:23:10.8251622Z Description : Checks in any files changed in the repository. 2024-05-31T11:23:10.8251741Z Version : 2.6.13 2024-05-31T11:23:10.8251811Z Author : Jesse Houwing 2024-05-31T11:23:10.8251910Z Help : More Information 2024-05-31T11:23:10.8252066Z ============================================================================== 2024-05-31T11:23:11.5623944Z ##[debug]VstsTaskSdk 0.11.0 commit 7ff27a3e0bdd6f7b06690ae5f5b63cb84d0f23f4 2024-05-31T11:23:11.6798371Z ##[debug]Entering script TfvcCheckin.v3.ps1 2024-05-31T11:23:11.7021776Z ##[debug]INPUT_COMMENT: 'From DTS pipeline' 2024-05-31T11:23:11.7106768Z ##[debug]INPUT_INCLUDENOCICOMMENT: 'true' 2024-05-31T11:23:11.7107739Z ##[debug] Converted to bool: True 2024-05-31T11:23:11.7112868Z ##[debug]INPUT_ITEMSPEC: 'D:\a\14\s/LabelResources/de/ 2024-05-31T11:23:11.7129620Z ##[debug]D:\a\14\s/LabelResources/es/' 2024-05-31T11:23:11.7152253Z ##[debug]INPUT_RECURSION: 'Full' 2024-05-31T11:23:11.7175779Z ##[debug]INPUT_CONFIRMUNDERSTAND: 'true' 2024-05-31T11:23:11.7215255Z ##[debug] Converted to bool: True 2024-05-31T11:23:11.7239195Z ##[debug]INPUT_OVERRIDEPOLICY: 'false' 2024-05-31T11:23:11.7240126Z ##[debug] Converted to bool: False 2024-05-31T11:23:11.7259138Z ##[debug]INPUT_OVERRIDEPOLICYREASON (empty) 2024-05-31T11:23:11.7310811Z ##[debug] Defaulted to: '' 2024-05-31T11:23:11.7337021Z ##[debug]INPUT_NOTES (empty) 2024-05-31T11:23:11.7356035Z ##[debug] Defaulted to: '' 2024-05-31T11:23:11.7382091Z ##[debug]INPUT_SKIPGATED: 'true' 2024-05-31T11:23:11.7400938Z ##[debug] Converted to bool: True 2024-05-31T11:23:11.7426072Z ##[debug]INPUT_SKIPSHELVESET: 'true' 2024-05-31T11:23:11.7447790Z ##[debug] Converted to bool: True 2024-05-31T11:23:11.7473723Z ##[debug]INPUT_AUTODETECTADDS: 'true' 2024-05-31T11:23:11.7492312Z ##[debug] Converted to bool: True 2024-05-31T11:23:11.7518288Z ##[debug]INPUT_AUTODETECTDELETES: 'false' 2024-05-31T11:23:11.7536129Z ##[debug] Converted to bool: False 2024-05-31T11:23:11.7560192Z ##[debug]INPUT_BYPASSGATEDCHECKIN: 'false' 2024-05-31T11:23:11.7578155Z ##[debug] Converted to bool: False 2024-05-31T11:23:11.7602035Z ##[debug]INPUT_AUTHOR: 'RequestedForId' 2024-05-31T11:23:11.7625346Z ##[debug]INPUT_AUTHORCUSTOM (empty) 2024-05-31T11:23:11.7643502Z ##[debug] Defaulted to: '' 2024-05-31T11:23:11.7673220Z ##[debug]Loading module from path 'D:\a_tasks\tf-vc-checkin_31f040e5-e040-4556-878a-59a47c7128bd\2.6.13\ps_modules\VstsTfvcShared\VstsTfvcShared.psm1'. 2024-05-31T11:23:11.7811872Z ##[debug]Loading module from path 'D:\a_tasks\tf-vc-checkin_31f040e5-e040-4556-878a-59a47c7128bd\2.6.13\ps_modules\VstsTfvcShared\TlsHelper\TlsHelper.psm1'. 2024-05-31T11:23:11.7878607Z ##[debug]Loading resource strings from: D:\a_tasks\tf-vc-checkin_31f040e5-e040-4556-878a-59a47c7128bd\2.6.13\ps_modules\VstsTfvcShared\TlsHelper/module.json 2024-05-31T11:23:11.8484419Z ##[debug]Loaded 3 strings. 2024-05-31T11:23:11.8881547Z ##[debug]SYSTEM_CULTURE: 'en-US' 2024-05-31T11:23:11.8892603Z ##[debug]Loading resource strings from: D:\a_tasks\tf-vc-checkin_31f040e5-e040-4556-878a-59a47c7128bd\2.6.13\ps_modules\VstsTfvcShared\TlsHelper\Strings\resources.resjson\en-US\resources.resjson 2024-05-31T11:23:11.8998065Z ##[debug]Loaded 3 strings. 2024-05-31T11:23:11.9015943Z ##[debug]Exporting function 'Add-Tls12InSession'. 2024-05-31T11:23:11.9278706Z ##[debug]Exporting function 'Assert-TlsError'. 2024-05-31T11:23:11.9290611Z ##[debug]Importing function 'Add-Tls12InSession'. 2024-05-31T11:23:11.9291493Z ##[debug]Importing function 'Assert-TlsError'. 2024-05-31T11:23:12.8725536Z ##[debug]TLS 1.2 already present in session. 2024-05-31T11:23:12.9796174Z ##[debug]Setting default assembly locations 2024-05-31T11:23:13.3609538Z ##[debug]Found Visual Studio 2017 or newer. 2024-05-31T11:23:13.3824824Z ##[debug]Trying: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Newtonsoft.Json.dll 2024-05-31T11:23:13.7099770Z ##[debug]Agent environment resources - Disk: D:\ Available 12424.00 MB out of 14333.00 MB, Memory: Used 1808.00 MB out of 7167.00 MB, CPU: Usage 2.77% 2024-05-31T11:23:13.9702120Z ##[debug]Loading assembly: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Newtonsoft.Json.dll 2024-05-31T11:23:14.0897189Z ##[debug]Setting default assembly locations 2024-05-31T11:23:14.1286559Z ##[debug]Found Visual Studio 2017 or newer. 2024-05-31T11:23:14.1309582Z ##[debug]Trying: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Microsoft.TeamFoundation.Client.dll 2024-05-31T11:23:14.6743715Z ##[debug]Loading assembly: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Microsoft.TeamFoundation.Client.dll 2024-05-31T11:23:14.7608953Z ##[debug]Setting default assembly locations 2024-05-31T11:23:14.7974008Z ##[debug]Found Visual Studio 2017 or newer. 2024-05-31T11:23:14.7996633Z ##[debug]Trying: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Microsoft.TeamFoundation.Common.dll 2024-05-31T11:23:15.2116896Z ##[debug]Loading assembly: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Microsoft.TeamFoundation.Common.dll 2024-05-31T11:23:15.3743937Z ##[debug]Setting default assembly locations 2024-05-31T11:23:15.4117858Z ##[debug]Found Visual Studio 2017 or newer. 2024-05-31T11:23:15.4140437Z ##[debug]Trying: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Microsoft.TeamFoundation.VersionControl.Client.dll 2024-05-31T11:23:15.8011660Z ##[debug]Loading assembly: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Microsoft.TeamFoundation.VersionControl.Client.dll 2024-05-31T11:23:15.8788727Z ##[debug]Setting default assembly locations 2024-05-31T11:23:15.9147652Z ##[debug]Found Visual Studio 2017 or newer. 2024-05-31T11:23:15.9169882Z ##[debug]Trying: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Microsoft.TeamFoundation.WorkItemTracking.Client.dll 2024-05-31T11:23:16.2423671Z ##[debug]Loading assembly: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Microsoft.TeamFoundation.WorkItemTracking.Client.dll 2024-05-31T11:23:16.3682683Z ##[debug]Setting default assembly locations 2024-05-31T11:23:16.4061902Z ##[debug]Found Visual Studio 2017 or newer. 2024-05-31T11:23:16.4084864Z ##[debug]Trying: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Microsoft.TeamFoundation.Diff.dll 2024-05-31T11:23:16.4459314Z ##[debug]Loading assembly: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Microsoft.TeamFoundation.Diff.dll 2024-05-31T11:23:16.5107223Z ##[debug]Exporting function 'Write-Message'. 2024-05-31T11:23:16.5127457Z ##[debug]Exporting function 'Invoke-DisposeSourceProvider'. 2024-05-31T11:23:16.5145754Z ##[debug]Exporting function 'Get-SourceProvider'. 2024-05-31T11:23:16.5164828Z ##[debug]Exporting function 'AutoPend-WorkspaceChanges'. 2024-05-31T11:23:16.5182557Z ##[debug]Exporting function 'Convert-ToItemSpecs'. 2024-05-31T11:23:16.5199507Z ##[debug]Exporting function 'Find-VisualStudio'. 2024-05-31T11:23:16.5218678Z ##[debug]The 'AutoPend-WorkspaceChanges' command in the VstsTfvcShared' module was imported, but because its name does not include an approved verb, it might be difficult to find. For a list of approved verbs, type Get-Verb. 2024-05-31T11:23:16.5234240Z ##[debug]Importing function 'AutoPend-WorkspaceChanges'. 2024-05-31T11:23:16.5249610Z ##[debug]Importing function 'Convert-ToItemSpecs'. 2024-05-31T11:23:16.5266864Z ##[debug]Importing function 'Find-VisualStudio'. 2024-05-31T11:23:16.5278215Z ##[debug]Importing function 'Get-SourceProvider'. 2024-05-31T11:23:16.5293574Z ##[debug]Importing function 'Invoke-DisposeSourceProvider'. 2024-05-31T11:23:16.5308458Z ##[debug]Importing function 'Write-Message'. 2024-05-31T11:23:16.5326349Z ##[debug]Importing modules 2024-05-31T11:23:16.5344671Z ##[debug]Entering script TfvcCheckin.v3.ps1 2024-05-31T11:23:17.1184854Z ##[debug]Entering Get-SourceProvider 2024-05-31T11:23:17.1279168Z ##[debug]SYSTEM_TEAMFOUNDATIONCOLLECTIONURI: 'https://fsbdevelopment.visualstudio.com/' 2024-05-31T11:23:17.1656750Z ##[debug]Found Visual Studio 2017 or newer. 2024-05-31T11:23:17.1946561Z ##[debug]Entering Get-VstsTfsClientCredentials. 2024-05-31T11:23:17.2072773Z ##[debug] OMDirectory: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\' 2024-05-31T11:23:17.2208429Z ##[debug]ENDPOINT_URL_SystemVssConnection: 'https://fsbdevelopment.visualstudio.com/' 2024-05-31T11:23:17.2230423Z ##[debug]ENDPOINT_AUTH_SystemVssConnection: '****' 2024-05-31T11:23:17.2253751Z ##[debug]ENDPOINT_DATA_SystemVssConnection (empty) 2024-05-31T11:23:17.2293336Z ##[debug]Testing file path: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Newtonsoft.Json.dll' 2024-05-31T11:23:17.2313744Z ##[debug]Adding assembly resolver. 2024-05-31T11:23:17.2461354Z ##[debug]Entering Get-OMType. 2024-05-31T11:23:17.2478483Z ##[debug] TypeName: 'Microsoft.TeamFoundation.Client.TfsClientCredentials' 2024-05-31T11:23:17.2494225Z ##[debug] OMKind: 'ExtendedClient' 2024-05-31T11:23:17.2510331Z ##[debug] OMDirectory: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\' 2024-05-31T11:23:17.2546927Z ##[debug] Require: 'True' 2024-05-31T11:23:17.2565181Z ##[debug]Testing whether type can be loaded: 'Microsoft.TeamFoundation.Client.TfsClientCredentials' 2024-05-31T11:23:17.2778903Z ##[debug]The type was loaded successfully. 2024-05-31T11:23:17.2816056Z ##[debug]Leaving Get-OMType. 2024-05-31T11:23:17.4845556Z ##[debug]Resolving 'Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' to 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Newtonsoft.Json.dll'. 2024-05-31T11:23:17.5075335Z ##[debug]Leaving Get-VstsTfsClientCredentials. 2024-05-31T11:23:18.7486693Z ##[debug]Agent environment resources - Disk: D:\ Available 12424.00 MB out of 14333.00 MB, Memory: Used 1810.00 MB out of 7167.00 MB, CPU: Usage 2.71% 2024-05-31T11:23:23.7915730Z ##[debug]Agent environment resources - Disk: D:\ Available 12424.00 MB out of 14333.00 MB, Memory: Used 1813.00 MB out of 7167.00 MB, CPU: Usage 2.65% 2024-05-31T11:23:24.2949101Z ##[debug]Unable to determine workspace from source folder: D:\a\14\s 2024-05-31T11:23:24.2970419Z ##[debug]Attempting to resolve workspace recursively from locally cached info. 2024-05-31T11:23:24.3083690Z ##[debug]Cached workspace info discovered. Server URI: https://fsbdevelopment.visualstudio.com/ ; Name: ws_14_14 ; Owner Name: c73ed2bf-b9a6-41ec-a6d7-8a1981c5a1b8 2024-05-31T11:23:24.4249822Z ##[debug]Leaving Get-SourceProvider 2024-05-31T11:23:24.4308753Z ##[debug]BUILD_SOURCETFVCSHELVESET (empty) 2024-05-31T11:23:24.4366770Z ##[debug]Build.SourceTfvcShelveset = ''. 2024-05-31T11:23:24.4501583Z D:\a\14\s/LabelResources/de/ 2024-05-31T11:23:24.4502179Z D:\a\14\s/LabelResources/es/ 2024-05-31T11:23:24.4557271Z ##[debug]Entering AutoPend-WorkspaceChanges 2024-05-31T11:23:24.4576486Z ##[debug]Entering Detect-WorkspaceChanges 2024-05-31T11:23:25.5247383Z ##[debug]Leaving Detect-WorkspaceChanges 2024-05-31T11:23:25.5451335Z ##[debug]Entering Invoke-DisposeSourceProvider 2024-05-31T11:23:25.5529792Z ##[debug]Disposing tfsTeamProjectCollection 2024-05-31T11:23:25.5577519Z ##[debug]Leaving Invoke-DisposeSourceProvider 2024-05-31T11:23:25.5789787Z ##[debug]Caught exception from task script. 2024-05-31T11:23:25.5819066Z ##[debug]Error record: 2024-05-31T11:23:25.6355537Z ##[debug]Detect-WorkspaceChanges : Exception calling "FromStrings" with "2" argument(s): "Illegal characters in path." 2024-05-31T11:23:25.6368977Z ##[debug]At D:\a_tasks\tf-vc-checkin_31f040e5-e040-4556-878a-59a47c7128bd\2.6.13\ps_modules\VstsTfvcShared\VstsTfvcShared.psm1:275 char:26 2024-05-31T11:23:25.6380989Z ##[debug]+ ... Changes = @(Detect-WorkspaceChanges -Provider $Provider -Items $Items ... 2024-05-31T11:23:25.6393277Z ##[debug]+ ~~~~~~~~~~~~~ 2024-05-31T11:23:25.6405006Z ##[debug] + CategoryInfo : NotSpecified: (:) [Detect-WorkspaceChanges], MethodInvocationException 2024-05-31T11:23:25.6415761Z ##[debug] + FullyQualifiedErrorId : ArgumentException,Detect-WorkspaceChanges 2024-05-31T11:23:25.6427483Z ##[debug] 2024-05-31T11:23:25.6445978Z ##[debug]Script stack trace: 2024-05-31T11:23:25.6479404Z ##[debug]at Convert-ToItemSpecs, D:\a_tasks\tf-vc-checkin_31f040e5-e040-4556-878a-59a47c7128bd\2.6.13\ps_modules\VstsTfvcShared\VstsTfvcShared.psm1: line 327 2024-05-31T11:23:25.6491188Z ##[debug]at Detect-WorkspaceChanges, D:\a_tasks\tf-vc-checkin_31f040e5-e040-4556-878a-59a47c7128bd\2.6.13\ps_modules\VstsTfvcShared\VstsTfvcShared.psm1: line 245 2024-05-31T11:23:25.6502810Z ##[debug]at AutoPend-WorkspaceChanges, D:\a_tasks\tf-vc-checkin_31f040e5-e040-4556-878a-59a47c7128bd\2.6.13\ps_modules\VstsTfvcShared\VstsTfvcShared.psm1: line 275 2024-05-31T11:23:25.6625320Z ##[debug]at , D:\a_tasks\tf-vc-checkin_31f040e5-e040-4556-878a-59a47c7128bd\2.6.13\TfvcCheckin.v3.ps1: line 227 2024-05-31T11:23:25.6636470Z ##[debug]at , : line 1 2024-05-31T11:23:25.6648147Z ##[debug]at , : line 22 2024-05-31T11:23:25.6659288Z ##[debug]at , : line 18 2024-05-31T11:23:25.6670639Z ##[debug]at , : line 1 2024-05-31T11:23:25.6688172Z ##[debug]Exception: 2024-05-31T11:23:25.6728832Z ##[debug]System.Management.Automation.MethodInvocationException: Exception calling "FromStrings" with "2" argument(s): "Illegal characters in path." ---> System.ArgumentException: Illegal characters in path. 2024-05-31T11:23:25.6740210Z ##[debug] at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional) 2024-05-31T11:23:25.6751683Z ##[debug] at System.IO.Path.GetFileName(String path) 2024-05-31T11:23:25.6763076Z ##[debug] at Microsoft.TeamFoundation.Common.FileSpec.GetFullPath(String path, Boolean checkForIllegalDollar) 2024-05-31T11:23:25.6774367Z ##[debug] at Microsoft.TeamFoundation.VersionControl.Common.VersionControlUtil.GetFullPath(String item, PathLength maxServerPathLength) 2024-05-31T11:23:25.6785762Z ##[debug] at Microsoft.TeamFoundation.VersionControl.Client.ItemSpec..ctor(String item, RecursionType recursionType, Int32 deletionId) 2024-05-31T11:23:25.6797016Z ##[debug] at Microsoft.TeamFoundation.VersionControl.Client.ItemSpec.FromStrings(String[] paths, RecursionType recursion) 2024-05-31T11:23:25.6808209Z ##[debug] at CallSite.Target(Closure , CallSite , Type , Array , Object ) 2024-05-31T11:23:25.6819407Z ##[debug] --- End of inner exception stack trace --- 2024-05-31T11:23:25.6830783Z ##[debug] at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception) 2024-05-31T11:23:25.6841846Z ##[debug] at System.Management.Automation.Interpreter.ActionCallInstruction2.Run(InterpretedFrame frame) 2024-05-31T11:23:25.6853070Z ##[debug] at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) 2024-05-31T11:23:25.6864169Z ##[debug] at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) 2024-05-31T11:23:25.6875337Z ##[debug] at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame) 2024-05-31T11:23:25.6886439Z ##[debug] at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0) 2024-05-31T11:23:25.6897967Z ##[debug] at System.Management.Automation.PSScriptCmdlet.RunClause(Action1 clause, Object dollarUnderbar, Object inputToProcess) 2024-05-31T11:23:25.6909095Z ##[debug] at System.Management.Automation.PSScriptCmdlet.DoEndProcessing() 2024-05-31T11:23:25.6920473Z ##[debug] at System.Management.Automation.CommandProcessorBase.Complete() 2024-05-31T11:23:25.7162276Z ##[error]Exception calling "FromStrings" with "2" argument(s): "Illegal characters in path." 2024-05-31T11:23:25.7169393Z ##[debug]Processed: ##vso[task.logissue type=error]Exception calling "FromStrings" with "2" argument(s): "Illegal characters in path." 2024-05-31T11:23:25.7171400Z ##[debug]Processed: ##vso[task.complete result=Failed] 2024-05-31T11:23:26.0125139Z ##[section]Finishing: Check changes into source control


From: Jesse Houwing @.> Sent: Friday, May 31, 2024 13:18 To: jessehouwing/azure-pipelines-tfvc-tasks @.> Cc: Søren Printz Christensen @.>; Author @.> Subject: Re: [jessehouwing/azure-pipelines-tfvc-tasks] FromStrings" with "2" argument(s) (Issue #117)

Can you turn on diagnostics and run again?

— Reply to this email directly, view it on GitHubhttps://github.com/jessehouwing/azure-pipelines-tfvc-tasks/issues/117#issuecomment-2141808125, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ALCN5XWLN4SXAHVHBLVX5HTZFBL7ZAVCNFSM6AAAAABISHLSEKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBRHAYDQMJSGU. You are receiving this because you authored the thread.Message ID: @.***>

jessehouwing commented 1 month ago

Looks like there is an underlying problem:

 : Exception calling "FromStrings" with "2" argument(s): "Illegal characters in path."

Can you try removing the ; separating the 2 itemspecs, the newline should be enough. Make sure there is no other whitespace.

Try entering all slashes in the windows direction: \ instead of /.

Try calling tf vc status /format:detailed to see if there are any files with reserved characters in their name.

soerenpc commented 1 month ago

Still get:

[error]Exception calling "FromStrings" with "2" argument(s): "Illegal characters in path."

$/Rdc365/Trunk/Main/Metadata/SmartFoundation/Smart Foundation/AxLabelFile/LabelResources/nb-NO/BCT.nb-NO.label.txt;C1478 User : Rdc365 Build Service (fsbdevelopment) Date : Friday, May 31, 2024 4:18:33 PM Lock : none Change : edit Workspace : ws_14_14 Local item : [fv-az398-875] D:\a\14\s\LabelResources\nb-NO\BCT.nb-NO.label.txt File type : utf-8

$/Rdc365/Trunk/Main/Metadata/SmartFoundation/Smart Foundation/AxLabelFile/LabelResources/nb-NO/IML.nb-NO.label.txt;C1478 User : Rdc365 Build Service (fsbdevelopment) Date : Friday, May 31, 2024 4:18:33 PM Lock : none Change : edit Workspace : ws_14_14 Local item : [fv-az398-875] D:\a\14\s\LabelResources\nb-NO\IML.nb-NO.label.txt File type : utf-8

$/Rdc365/Trunk/Main/Metadata/SmartFoundation/Smart Foundation/AxLabelFile/LabelResources/nb-NO/SmartFoundation.nb-NO.label.txt;C1470 User : Rdc365 Build Service (fsbdevelopment) Date : Friday, May 31, 2024 4:18:33 PM Lock : none Change : edit Workspace : ws_14_14 Local item : [fv-az398-875] D:\a\14\s\LabelResources\nb-NO\SmartFoundation.nb-NO.label.txt File type : utf-8

jessehouwing commented 1 month ago

Looks like you're building on your own agent. Is that agent persistent?

If so, you can edit the PS1 file for the task in the agent's _tasks folder. The chicken task should be cached there, can you add a couple of write-host lines to print the values of the parameters passed to the method that's failing?

https://github.com/jessehouwing/azure-pipelines-tfvc-tasks/blob/d515dd778c96a10743161351aa862f36196b5b7a/tf-vc-shared/v1/vsts-tfvc-shared.psm1#L303

I currently can't repro this locally.

soerenpc commented 1 month ago

It is DevOps pipeline not local.

soerenpc commented 1 month ago

I succeeded in creating a task for each folder: image

jessehouwing commented 1 month ago

Interesting....