I have pylint installed in my virtual environment, and the virtual environment is configured and activated in the solution.
When I run pylint through command prompt (after activating the virtual environment), it works:
C:\Users\AmosH\Documents\Workspace\local_gallery>pylint projects
Using config file C:\Users\AmosH\Documents\Workspace\local_gallery\.pylintrc
************* Module projects.admin
C: 1, 0: Missing module docstring (missing-docstring)
************* Module projects.apps
C: 1, 0: Missing module docstring (missing-docstring)
C: 4, 0: Missing class docstring (missing-docstring)
************* Module projects.models
C: 1, 0: Missing module docstring (missing-docstring)
C: 5, 0: Missing class docstring (missing-docstring)
C: 15, 4: Missing method docstring (missing-docstring)
...
-----------------------------------
Your code has been rated at 2.29/10
But when I run it within Visual Studio (Right click on project > Python > Run PyLint) it simply shows strange warnings:
Severity Code Description Project File Line Suppression State
Warning No module named general\admin.py [F:fatal] local_gallery general\admin.py 1
Warning No module named download_some_images.py [F:fatal] local_gallery download_some_images.py 1
Warning No module named general\apps.py [F:fatal] local_gallery general\apps.py 1
Warning No module named general\management\commands\populate_db.py [F:fatal] local_gallery general\management\commands\populate_db.py 1
Warning No module named general\management\commands\__init__.py [F:fatal] local_gallery general\management\commands\__init__.py 1
Warning No module named general\management\__init__.py [F:fatal] local_gallery general\management\__init__.py 1
Warning No module named general\migrations\__init__.py [F:fatal] local_gallery general\migrations\__init__.py 1
Warning No module named general\models.py [F:fatal] local_gallery general\models.py 1
Warning No module named general\templatetags\lg.py [F:fatal] local_gallery general\templatetags\lg.py 1
Warning No module named general\tests.py [F:fatal] local_gallery general\tests.py 1
Warning No module named general\views.py [F:fatal] local_gallery general\views.py 1
Warning No module named general\__init__.py [F:fatal] local_gallery general\__init__.py 1
Warning No module named local_gallery\renderers.py [F:fatal] local_gallery local_gallery\renderers.py 1
Warning No module named local_gallery\settings.py [F:fatal] local_gallery local_gallery\settings.py 1
Warning No module named local_gallery\urls.py [F:fatal] local_gallery local_gallery\urls.py 1
...
Each file cannot load itself, or something like this (note that each module doesn't try to load other modules, but itself, and fails).
When I double click on any of the warnings, I might get an error like this:
Or another one that refers me to "C:\Users\AmosH\AppData\Roaming\Microsoft\VisualStudio\15.0_e34de02d\ActivityLog.xml", in which I'll find something like this:
System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\AmosH\Documents\Workspace\general\management\__init__.py'. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) at Microsoft.VisualStudio.Text.Implementation.TextDocumentFactoryService.OpenFileGuts(String filePath, DateTime& lastModifiedTimeUtc, Int64& fileSize) at Microsoft.VisualStudio.Text.Implementation.TextDocumentFactoryService.OpenFile(String filePath, DateTime& lastModifiedTimeUtc, Int64& fileSize) at Microsoft.VisualStudio.Text.Implementation.TextDocumentFactoryService.CreateAndLoadTextDocument(String filePath, IContentType contentType, Boolean attemptUtf8Detection, Boolean& characterSubstitutionsOccurred) at Microsoft.VisualStudio.Editor.Implementation.TextDocData.InitializeNewTextBufferFromFile(String fileName, Object source) at Microsoft.VisualStudio.Editor.Implementation.TextDocData.Load(String pszFilename, UInt32 grfMode, Int32 fReadOnly, Object source) at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo) at Microsoft.VisualStudio.ErrorHandler.ThrowOnFailure(Int32 hr, Int32[] expectedHRFailure) at Microsoft.VisualStudio.Shell.VsShellUtilities.OpenDocument(IServiceProvider provider, String fullPath, Guid logicalView, IVsUIHierarchy& hierarchy, UInt32& itemID, IVsWindowFrame& windowFrame, IVsTextView& view) at Microsoft.VisualStudioTools.Project.VsUtilities.OpenDocument(IServiceProvider serviceProvider, String filename, IVsTextView& viewAdapter, IVsWindowFrame& pWindowFrame) at Microsoft.VisualStudioTools.Project.VsUtilities.NavigateTo(IServiceProvider serviceProvider, String filename, Guid docViewGuidType, Int32 line, Int32 col) at Microsoft.PythonTools.Project.CustomCommand.ErrorListRedirector.OnNavigate(Object sender, EventArgs e) at Microsoft.VisualStudio.Shell.Task.OnNavigate(EventArgs e) at Microsoft.VisualStudio.Shell.Task.Microsoft.VisualStudio.Shell.Interop.IVsTaskItem.NavigateTo() at Microsoft.VisualStudio.ErrorListPkg.Shims.ErrorListPackageEventProcessor.PreprocessNavigate(ITableEntryHandle entryHandle, TableEntryNavigateEventArgs e) at Microsoft.VisualStudio.Shell.TableControl.Implementation.TableControlEventManager.<>c__DisplayClass40_0.<OnEntryElementNavigate>b__2(ITableControlEventProcessor p, ITableEntryHandle entry) at Microsoft.VisualStudio.Shell.TableControl.Implementation.TableControlEventManager.<>c__DisplayClass60_1`1.<EventProcessorHandler>b__0() at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.CallExtensionPoint(Object errorSource, Action call) --- End of stack trace from previous location where exception was thrown --- at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)
Apparently there is a bug in Visual Studio 2017 that causes this issue if you do not choose the location of the .pyproj file as the root directory of your project. In my case I chose the parent directory, and Visual Studio 2017 did not make the proper adjustments required for pylint to work under these circumstances. Whenever I run pylint through Visual Studio 2017 it seeks the modules in the parent directory, even though I can navigate through my project and edit the files with no problems at all using Visual Studio 2017. It is strange indeed.
Related
I have a project in .NET 4.8 and C# 7.3
I'm using System.IO.Compression.ZipFile.ExtractToDirectory to unzip a zip-file.
I have referenced System.IO.Compression.FileSystem Version 4.0.0.0, File Version: 4.8.3761.0
string layout = #"c:\foo\bar\layout1.zip";
string directory = #"C:\temp"
ZipFile.ExtractToDirectory(layout, directory);
I get this exception on the above line
System.ArgumentOutOfRangeException
HResult=0x80131502
Message=Year, Month, and Day parameters describe an un-representable DateTime.
Source=mscorlib
StackTrace:
at System.DateTime.DateToTicks(Int32 year, Int32 month, Int32 day) in f:\dd\ndp\clr\src\BCL\system\datetime.cs:line 611
The file is unzipped, so is this an exception that I can ignore?
If not, what's the problem and how do I fix it??
I'm trying to package my application into a zip file, in order to send it to Octopus.
The log looks like this:
2021-05-17T21:15:00.8077153Z D:\a\r1\a>dotnet "C:\hostedtoolcache\windows\octo\7.4.3213\x64\/octo.dll" pack "--id=KFPortal" "--format=Zip" "--version=1.0.19" "--compressionlevel=optimal" "--outFolder=D:\a\r1\a" "--basePath=D:\a\r1\a\_KFPortal-CI\drop\19.zip" "--overwrite=false"
2021-05-17T21:15:05.3741444Z Setting Zip compression level to Optimal
2021-05-17T21:15:05.3940706Z Packing KFPortal version "1.0.19"...
2021-05-17T21:15:05.4077016Z Saving "KFPortal.1.0.19.zip" to "D:\a\r1\a"...
2021-05-17T21:15:05.4095140Z Adding files from "D:\a\r1\a\_KFPortal-CI\drop\19.zip" matching pattern "**"
2021-05-17T21:15:06.7197552Z
2021-05-17T21:15:06.7200093Z System.IO.IOException: The parameter is incorrect : 'D:\a\r1\a\_KFPortal-CI\drop\19.zip'
2021-05-17T21:15:06.7200973Z at System.IO.Enumeration.FileSystemEnumerator`1.GetData()
2021-05-17T21:15:06.7201594Z at System.IO.Enumeration.FileSystemEnumerator`1.FindNextEntry()
2021-05-17T21:15:06.7202125Z at System.IO.Enumeration.FileSystemEnumerator`1.MoveNext()
2021-05-17T21:15:06.7202656Z at System.Collections.Generic.LargeArrayBuilder`1.AddRange(IEnumerable`1 items)
2021-05-17T21:15:06.7203234Z at System.Collections.Generic.EnumerableHelpers.ToArray[T](IEnumerable`1 source)
2021-05-17T21:15:06.7203850Z at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
2021-05-17T21:15:06.7204507Z at NuGet.Common.PathResolver.PerformWildcardSearch(String basePath, String searchPath, Boolean includeEmptyDirectories, String& normalizedBasePath)
2021-05-17T21:15:06.7205322Z at NuGet.Common.PathResolver.PerformWildcardSearch(String basePath, String searchPath)
2021-05-17T21:15:06.7206400Z at Octopus.Cli.Commands.Package.ZipPackageBuilder.BuildPackage(String basePath, IList`1 includes, ManifestMetadata metadata, String outFolder, Boolean overwrite, Boolean verboseInfo) in C:\buildAgent\work\289bf0fca31007af\source\Octopus.Cli\Commands\Package\ZipPackageBuilder.cs:line 62
2021-05-17T21:15:06.7208001Z at Octopus.Cli.Commands.Package.PackCommand.<>c__DisplayClass21_0.<Execute>b__0() in C:\buildAgent\work\289bf0fca31007af\source\Octopus.Cli\Commands\Package\PackCommand.cs:line 167
2021-05-17T21:15:06.7208829Z at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
2021-05-17T21:15:06.7209379Z --- End of stack trace from previous location where exception was thrown ---
2021-05-17T21:15:06.7209871Z at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
2021-05-17T21:15:06.7210349Z --- End of stack trace from previous location where exception was thrown ---
2021-05-17T21:15:06.7210984Z at Octopus.Cli.CliProgram.Run(String[] args) in C:\buildAgent\work\289bf0fca31007af\source\Octopus.Cli\CliProgram.cs:line 54
2021-05-17T21:15:06.7211497Z Exit code: -3
2021-05-17T21:15:06.7420731Z ##[error]Error: The process 'C:\hostedtoolcache\windows\octo\7.4.3213\x64\octo.cmd' failed with exit code 4294967293
2021-05-17T21:15:06.7437803Z ##[error]Failed to execute octo pack command. The process 'C:\hostedtoolcache\windows\octo\7.4.3213\x64\octo.cmd' failed with exit code 4294967293
2021-05-17T21:15:06.7489404Z ##[section]Finishing: Package KFPortal
And this is my configuration
What am I doing wrong?
I think the real issue is that you did not set the right Sources Path for the project under the hosted agent.
If your repos's branch has the folder called _KFPortal-CI, then you should set the Sources Path to
$(System.DefaultWorkingDirectory)/_KFPortal-CI
That is enough and the the drop folder is from artifact task and only exists temporarily in an Artifact Task and it never exists under repos.
The Code & Question
I'm trying out Microsoft's Application Verifier and hitting a read-access violation on the simple code below. Is this my fault? If not, who should I report this to?
#include <D3D11_1.h>
#pragma comment(lib, "d3d11.lib")
void main()
{
ID3D11Device* device = NULL;
D3D11CreateDevice(
NULL,
D3D_DRIVER_TYPE_HARDWARE,
NULL,
0,
NULL,
0,
D3D11_SDK_VERSION,
&device,
NULL,
NULL);
}
Application Verifier Output
Page heap: pid 0x1034: page heap enabled with flags 0x3.
AVRF: D3D11_Fails_AppVerifier.exe: pid 0x1034: flags 0x81643027: application verifier enabled
First-chance exception at 0x00007FFA4EA681B9 (atiuxp64.dll) in D3D11_Fails_AppVerifier.exe: 0xC0000005: Access violation reading location 0x0000009411813000.
=======================================
VERIFIER STOP 0000000000000013: pid 0x1034: First chance access violation for current stack trace.
0000009411813000 : Invalid address causing the exception.
00007FFA4EA681B9 : Code address executing the invalid access.
000000940FA5B430 : Exception record.
000000940FA5AF40 : Context record.
WinDBG Callstack
*** ERROR: Symbol file could not be found. Defaulted to export symbols for vrfcore.dll -
vrfcore!VerifierStopMessageEx+0x6f4:
00007ffa`48d33a00 cc int 3
0:000> k
Child-SP RetAddr Call Site
00000094`0fa5a1b0 00007ffa`48d39d20 vrfcore!VerifierStopMessageEx+0x6f4
*** ERROR: Symbol file could not be found. Defaulted to export symbols for verifier.dll -
00000094`0fa5a510 00007ffa`48c5a9d0 vrfcore!VerifierDisableVerifier+0x948
00000094`0fa5a5a0 00007ffa`54b6a743 verifier!VerifierStopMessage+0xa0
*** ERROR: Module load completed but symbols could not be loaded for vfbasics.dll
00000094`0fa5a640 00007ffa`48cc62d9 ntdll!RtlApplicationVerifierStop+0x103
00000094`0fa5a6a0 00007ffa`48cc8246 vfbasics+0x62d9
00000094`0fa5a700 00007ffa`48cc787e vfbasics+0x8246
00000094`0fa5a790 00007ffa`54af5f42 vfbasics+0x787e
00000094`0fa5a7e0 00007ffa`54af4763 ntdll!RtlRestoreContext+0x182
00000094`0fa5a870 00007ffa`54b330aa ntdll!RtlRaiseException+0xe33
00000094`0fa5af40 00007ffa`4ea681b9 ntdll!KiUserExceptionDispatcher+0x3a
*** ERROR: Symbol file could not be found. Defaulted to export symbols for atiuxp64.dll -
00000094`0fa5b658 00000094`1170b0f0 atiuxp64!OpenAdapter10_2+0x12525
00000094`0fa5b660 00000094`0fa5b800 0x00000094`1170b0f0
00000094`0fa5b668 00007ffa`4ea5aa93 0x00000094`0fa5b800
00000094`0fa5b670 00007ffa`4ea55dbe atiuxp64!OpenAdapter10_2+0x4dff
*** ERROR: Symbol file could not be found. Defaulted to export symbols for aticfx64.dll -
00000094`0fa5b720 00007ffa`4f18120e atiuxp64!OpenAdapter10_2+0x12a
*** ERROR: Symbol file could not be found. Defaulted to export symbols for d3d11.dll -
00000094`0fa5b750 00007ffa`4f3a88c1 aticfx64!OpenAdapter10_2+0x13e
00000094`0fa5b780 00007ffa`4f3a8691 d3d11!D3D11CoreCreateLayeredDevice+0x1ba1
00000094`0fa5b8a0 00007ffa`4f3a85db d3d11!D3D11CoreCreateLayeredDevice+0x1971
00000094`0fa5b900 00007ffa`4f387f3d d3d11!D3D11CoreCreateLayeredDevice+0x18bb
00000094`0fa5ba30 00007ffa`4f387e60 d3d11+0x7f3d
00000094`0fa5ba90 00007ffa`4f3a7c6e d3d11+0x7e60
00000094`0fa5bc60 00007ffa`4f3a81fb d3d11!D3D11CoreCreateLayeredDevice+0xf4e
00000094`0fa5c4c0 00007ffa`4f3a80ad d3d11!D3D11CoreCreateLayeredDevice+0x14db
00000094`0fa5c8a0 00007ffa`4f3a6cf9 d3d11!D3D11CoreCreateLayeredDevice+0x138d
00000094`0fa5c8d0 00007ffa`4f3a73cf d3d11!D3D11CoreCreateDevice+0xb09
00000094`0fa5c910 00007ffa`4f3a730b d3d11!D3D11CoreCreateLayeredDevice+0x6af
00000094`0fa5c960 00007ffa`4f3a7295 d3d11!D3D11CoreCreateLayeredDevice+0x5eb
00000094`0fa5c9d0 00007ffa`4f3a6e61 d3d11!D3D11CoreCreateLayeredDevice+0x575
00000094`0fa5caa0 00007ffa`4f3a7573 d3d11!D3D11CoreCreateLayeredDevice+0x141
00000094`0fa5cb40 00007ffa`4f3a5b7f d3d11!D3D11CoreCreateLayeredDevice+0x853
00000094`0fa5f260 00007ffa`4f3a58e4 d3d11!D3D11CreateDeviceAndSwapChain+0x37f
00000094`0fa5f590 00007ffa`4f3a57ec d3d11!D3D11CreateDeviceAndSwapChain+0xe4
00000094`0fa5f650 00007ffa`4f3a576c d3d11!D3D11CreateDevice+0x14c
*** WARNING: Unable to verify checksum for D3D11_Fails_AppVerifier.exe
00000094`0fa5f6c0 00007ff7`a70b1087 d3d11!D3D11CreateDevice+0xcc
00000094`0fa5f770 00007ff7`a70b175d D3D11_Fails_AppVerifier!main+0x77 [c:\_personalprojects\d3d11_fails_appverifier\main.cpp # 18]
00000094`0fa5f800 00007ff7`a70b188e D3D11_Fails_AppVerifier!__tmainCRTStartup+0x19d [f:\dd\vctools\crt_bld\self_64_amd64\crt\src\crtexe.c # 536]
*** ERROR: Symbol file could not be found. Defaulted to export symbols for kernel32.dll -
00000094`0fa5f870 00007ffa`540113d2 D3D11_Fails_AppVerifier!mainCRTStartup+0xe [f:\dd\vctools\crt_bld\self_64_amd64\crt\src\crtexe.c # 377]
00000094`0fa5f8a0 00007ffa`54ab5454 kernel32!BaseThreadInitThunk+0x22
00000094`0fa5f8d0 00000000`00000000 ntdll!RtlUserThreadStart+0x34
My PC's Info
Windows 8.1 Pro 64-bit (6.3, Build 9600)
AMD Radeon (TM) R9 200 Series
AMD Catalyst driver (15.7.1) Up to Date (Last checked 10/15/2015 10:16:39 PM)
App-Verifier no longer detects a read violation after using D3D_DRIVER_TYPE_WARP.
I've contacted AMD. Thanks for the suggestion Chuck Walbourn!
I have application with CMFCShellTreeCtrl on one of it's dialog and it is crashing when running on some Win8 machines. It happen when tree control trying to initialize and calls SHGetFileInfo in this part of afxshelltreectrl.cpp:
int CMFCShellTreeCtrl::OnGetItemIcon(LPAFX_SHELLITEMINFO pItem, BOOL bSelected)
{
ENSURE(pItem != NULL);
SHFILEINFO sfi;
UINT uiFlags = SHGFI_PIDL | SHGFI_SYSICONINDEX | SHGFI_SMALLICON;
if (bSelected)
{
uiFlags |= SHGFI_OPENICON;
}
else
{
uiFlags |= SHGFI_LINKOVERLAY;
}
if (SHGetFileInfo((LPCTSTR)pItem->pidlFQ, 0, &sfi, sizeof(sfi), uiFlags))
{
return sfi.iIcon;
}
return -1;
}
Application was build in VS2010 on Win7 32-bit.
I could not replicate this bug on VM so I debug remotely on client PC.
I compared the values of arguments for SHGetFileInfo function, and they looked the same on my machine and the client's, except the memory addresses.
Call stack after exception:
screenshot
WinDbg log:
ModLoad: 02b70000 02bc9000 cmd.exe
ModLoad: 60780000 607ca000 C:\windows\SysWOW64\mscoree.dll
ModLoad: 60700000 6077a000 C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscoreei.dll
ModLoad: 711b0000 71250000 C:\windows\SysWOW64\sxs.dll
ModLoad: 60150000 606ff000 C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll
ModLoad: 70e30000 70ecb000 C:\windows\WinSxS\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.6910_none_d089c358442de345\MSVCR80.dll
*** ERROR: Symbol file could not be found. Defaulted to export symbols for C:\windows\WinSxS\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.6910_none_d089c358442de345\MSVCR80.dll -
ModLoad: 5f650000 6014a000 C:\windows\assembly\NativeImages_v2.0.50727_32\mscorlib\7f763721bf47dc8d58ec21cb64cbec91\mscorlib.ni.dll
ModLoad: 71770000 71778000 C:\Windows\Microsoft.NET\Framework\v2.0.50727\culture.dll
(c18.227c): CLR exception - code e0434f4d (first chance)
(c18.227c): Access violation - code c0000005 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
*** ERROR: Symbol file could not be found. Defaulted to export symbols for C:\windows\SysWOW64\combase.dll -
eax=002d0068 ebx=80040154 ecx=04b1f654 edx=04b1f678 esi=0018b654 edi=76cbbda0
eip=002d0068 esp=0018b63c ebp=0018b648 iopl=0 nv up ei ng nz ac pe cy
cs=0023 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00010297
002d0068 ?? ???
According to the call stack error occurs in some COM functions.
I am not familiar with COM so may be some one can help me to find the reason why SHGetFileInfo cause exception.
c0000005 is memory accessing exception. check whether your pItem has been initialized before calling this function. Or you can check whether 'pItem->pidlFQ' is valid.
I am using VS 2012 with TFS 2012. I am checking in a set of changes that includes deleting a file with a long combined path/file name. The gated build fails with:
Exception Message: TF400889: The following path contains more than the allowed 259 characters: C:\Builds\10\MFirstPartOfMyPath>\__Unmapped__\78118\<SecondPartOfMyPath>\<MyFileName>.sql. Specify a shorter path. (type InvalidPathException)
Exception Stack Trace:
Server stack trace:
at Microsoft.TeamFoundation.Common.FileSpec.GetFullPathWrapper(String path)
at Microsoft.TeamFoundation.Common.FileSpec.GetFullPath(String path, Boolean checkForIllegalDollar)
at Microsoft.TeamFoundation.VersionControl.Client.Workspace.Map(String serverPath, String localPath)
at Microsoft.TeamFoundation.Build.Workflow.Activities.TfWorkfold.RunCommand(VersionControlScope versionControlScope, Workspace workspace, TfWorkfoldAction action, String serverPath, String localPath)
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase)
at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData& msgData)
at System.Action`5.EndInvoke(IAsyncResult result)
at Microsoft.TeamFoundation.Build.Workflow.Activities.TfWorkfold.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
Inner Exception Details:
Exception Message: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. (type PathTooLongException)
Exception Stack Trace: at System.IO.PathHelper.GetFullPathName()
at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength)
at System.IO.Path.GetFullPath(String path)
at Microsoft.TeamFoundation.Common.FileSpec.GetFullPathWrapper(String path)
I could understand this if I were trying to add such a file, but the check-in is trying to delete one that already exists. How can I work around this error?
The trick is to:
Undo the delete
Rename the file to a shorter name
Check-in (triggering the build)
Get Latest
Delete the file
Check-in