-
Notifications
You must be signed in to change notification settings - Fork 386
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create a new Resource (resx) file an error occurs #1409
Comments
This looks to occur when when RESX generator returns a null output, which it does apparently when it encounters an error. I can't repro this. Ask the customer for more info. |
@davkean, I had this issue several times, so I can certainly confirm it occurs. I made the test on
This is with .Net Core 1.1 projects. There are two kinds of bugs that are frequent for resx's with VS 2017 RC.
Renaming it again solves 2, but this error message keeps popping up. Perhaps the warning below is related to the issue while I used only the NuGet Package Manager Console to add/remove packages: |
@Ponant Can you share me the solution? |
@davkean , my project is fairly big, so I would rather make a new one and send it to you; jus give me some time and I will come back. |
BTW , it is .Net core (.Net 4.6.1) |
@Ponant A repro project or specific repro steps would be great. Thanks! |
I just made it.
Output:
I have to leave in a few minutes so I am not sure I can send it up, let me know if you can repro |
It seems to be with a webapp template (empty is enough), no issue with a console app so far |
Thanks! |
could you reproduce? cheers! |
I haven't tried yet, won't be able to look at this until next week. |
@Ponant Does your project look like this: |
Okay, investigated my issue above, and it's due to #1538. |
Also filed #1539 to track rename, trying to track the other two issues that you called out. |
@Ponant Okay, in summary I can repro two bugs with the solution you provided me:
I cannot repro:
Can you repro these two issues consistently with a fresh project? |
@davkean I can definitely confirm the existence of 1 (Object instance not set an instance of an object when opening a RESX). I have 3 projects which display this form since one week, so the only way to edit or view the resx is to open it with notepad or the like. The other one happened just yesterday. |
It is hard to tell you how to make it happen. For instance, as I downloaded the very same project I gave you, I could open the file and no error showed up, which is wierd.
I can send you one resx that has issue 1, if you want, but I am not sure this will help. |
I added 4-5 resx's from another project and all display "Object instance not set an instance of an object when opening a RESX" |
Thanks, I'll try against tomorrow. Failing that I might have to get you to attach to VS itself and capture the stack when it occurs. |
Okay, I spent another hour on this trying to repro. I can now repro the second error "Custom tool ResXFIleCodeGeneator failed to produce an output for input file" and filed: #1553. I still cannot, no matter how many projects and different project types, resx's I create, rename, include "." in their names, repro the "object instance not set to an instance of a open when opening a RESX". If you can consistently repro this, can I ask you to do the following:
|
@davkean I will strip out a project and send it to you. |
@davkean ok go and have a beer and I will do it today, cheers |
@davkean , before doing what you want, can you clone and double click on the res files there? |
There's no code in that repo. :) |
done, I removed controllers and unnecessary stuff and I see the bug appearing, try it out, otherwise I will Stack |
So what, we are done? |
You can pull the repo now I have the source, still debugging - want to absolutely confirm that it's the underlying cause. |
I deleted the services folder and close the solution and restart and now I can open the resx again. Funny. |
Yeah, similar to #1499 - but it's not. Looks like the References are in a bad state and we're null-referring on accessing them. |
ok happy to contribute to the mess, cheers |
Actually, can you keep that code around? I'm seeing a few other issues as well that I'd like us to fix. |
Sure, I will leave them |
somewhat related dotnet/aspnetcore#2075 |
I am getting the same problem. I have, in the past tried to move this solution to a different directory, but then moved it back to it's original location. Based on the history, that may be relevant. Microsoft Visual Studio Community 2017 Installed Version: Community Visual Basic 2017 00369-60000-00001-AA555 Visual C# 2017 00369-60000-00001-AA555 Visual C++ 2017 00369-60000-00001-AA555 Visual F# 4.1 00369-60000-00001-AA555 Application Insights Tools for Visual Studio Package 8.9.00809.2 ASP.NET and Web Tools 2017 15.0.30925.0 ASP.NET Core Razor Language Services 1.0 ASP.NET Web Frameworks and Tools 2012 4.0.20601.0 ASP.NET Web Frameworks and Tools 2017 5.2.50921.0 Azure App Service Tools v3.0.0 15.0.30915.0 Azure Data Lake Node 1.0 Azure Data Lake Tools for Visual Studio 2.3.0000.1 Azure Data Lake Tools for Visual Studio 2.3.0000.1 Common Azure Tools 1.10 Cookiecutter 3.0.17262.1 Dotfuscator Community Edition 5.30.0.5167-c98e2f8 Fabric.DiagnosticEvents 1.0 GitHub.VisualStudio 2.2.0.10 JavaScript Language Service 2.0 JavaScript Project System 2.0 Merq 1.1.17-rc (cba4571) Microsoft Azure HDInsight Azure Node 2.3.0000.1 Microsoft Azure Hive Query Language Service 2.3.0000.1 Microsoft Azure Service Fabric Tools for Visual Studio 1.8 Microsoft Azure Stream Analytics Language Service 2.3.0000.1 Microsoft Azure Stream Analytics Node 1.0 Microsoft Azure Tools 2.9 Microsoft Continuous Delivery Tools for Visual Studio 0.3 Microsoft JVM Debugger 1.0 Microsoft MI-Based Debugger 1.0 Microsoft Visual C++ Wizards 1.0 Microsoft Visual Studio VC Package 1.0 Mono Debugging for Visual Studio 4.7.4-pre (c2d89eb) Node.js Tools 1.4.10918.1 NuGet Package Manager 4.4.0 Python 3.0.17262.1 Python - Django support 3.0.17262.1 Python - IronPython support 3.0.17262.1 Python - Profiling support 3.0.17262.1 SQL Server Data Tools 15.1.61707.200 ToolWindowHostedEditor 1.0 TypeScript 2.3.5.0 Visual Studio Code Debug Adapter Host Package 1.0 Visual Studio tools for CMake 1.0 Visual Studio Tools for Unity 3.4.0.2 VisualStudio.IoT 1.0 VisualStudio.Mac 1.0 WebJobs Tools v1.0.0 15.0.30923.0 Xamarin 4.7.10.22 (fe36bec) Xamarin.Android SDK 8.0.0.33 (HEAD/7a6a056e8) Xamarin.iOS and Xamarin.Mac SDK 11.2.0.8 (9a9f054) |
Opened #2934. |
This bug is created from customer feedback https://developercommunity.visualstudio.com/content/problem/15297/when-creating-new-resource-resx-file-error-occurs.html
When I create a new Resource file, I get following error: "Custom tool ResXFileCodeGenerator failed to produce an output for input file ... but did not log a specific error.". Project is ASP.NET Core on .NET Framework
The text was updated successfully, but these errors were encountered: