Custom tool error: bufferAdapter is not a VsTextDocData

Discussion of open issues, suggestions and bugs regarding Entity Developer - ORM modeling and code generation tool
HelmutJ
Posts: 8
Joined: Mon 13 Nov 2017 14:25

Custom tool error: bufferAdapter is not a VsTextDocData

Post by HelmutJ » Tue 11 Sep 2018 08:11

Hi,

I get the following error while trying to generate EF Core code with Entity Developer Tools (6.3.569) for VS2017 (15.8.3). When using the standalone application, it works without problems:

Image

Any ideas?

Best Regards
Helmut

Win10 Pro
Entity Developer 6.3.569
VS 2017 15.8.3
MS SQL 2017
EF Core
.Net Core 2.1

Pinturiccio
Devart Team
Posts: 2420
Joined: Wed 02 Nov 2011 09:44

Re: Custom tool error: bufferAdapter is not a VsTextDocData

Post by Pinturiccio » Tue 11 Sep 2018 17:48

Please assign "DevartEFCoreGenerator" to the Custom Tool property of your *.efml model. Does it fix the issue?

Please also tell us whether the issue is reproduced only when you open an old model. Is it reproduced too when you create a new model, save it, reopen, and then rebuild it?

And tell us which .Net Core project you create (console, asp.net, library etc.).

HelmutJ
Posts: 8
Joined: Mon 13 Nov 2017 14:25

Re: Custom tool error: bufferAdapter is not a VsTextDocData

Post by HelmutJ » Thu 13 Sep 2018 11:20

Pinturiccio wrote: Tue 11 Sep 2018 17:48 Please assign "DevartEFCoreGenerator" to the Custom Tool property of your *.efml model. Does it fix the issue?
This was already assigned
Pinturiccio wrote: Tue 11 Sep 2018 17:48 Please also tell us whether the issue is reproduced only when you open an old model. Is it reproduced too when you create a new model, save it, reopen, and then rebuild it?
The error doesn't occure, when I work with a new model
Pinturiccio wrote: Tue 11 Sep 2018 17:48 And tell us which .Net Core project you create (console, asp.net, library etc.).
We have multiple class libraries, one where the .efml is stored, another one where the context is generated to and a third where the models are generated to.

Best Regards
Helmut

Pinturiccio
Devart Team
Posts: 2420
Joined: Wed 02 Nov 2011 09:44

Re: Custom tool error: bufferAdapter is not a VsTextDocData

Post by Pinturiccio » Fri 14 Sep 2018 13:50

Thank you for the provided information. Please create and send us a complete small test project with a model that reproduce the issue.
You can archive your project and upload it to our ftp server (ftp://ftp.devart.com, credentials: anonymous/anonymous ) or to any file exchange server so that we could download it from there. And send us the password to the archive.

HelmutJ
Posts: 8
Joined: Mon 13 Nov 2017 14:25

Re: Custom tool error: bufferAdapter is not a VsTextDocData

Post by HelmutJ » Tue 18 Sep 2018 12:49

Hi,

this morning, I sent a example via the your contact form containing a dropbox link.

Best Regards
Helmut Joost

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Custom tool error: bufferAdapter is not a VsTextDocData

Post by Shalex » Sat 22 Sep 2018 18:23

Thank you for the test project. We will investigate it and notify you about the result.

HelmutJ
Posts: 8
Joined: Mon 13 Nov 2017 14:25

Re: Custom tool error: bufferAdapter is not a VsTextDocData

Post by HelmutJ » Thu 11 Oct 2018 07:12

Hi,

any news on this topic? It's very annoying for me to work with it, using the external editor, because it generates in the wrong folders, so I have to copy every file by my own... :-(

Best Regards
Helmut Joost

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Custom tool error: bufferAdapter is not a VsTextDocData

Post by Shalex » Thu 11 Oct 2018 18:01

The bug with throwing "Custom tool error: bufferAdapter is not a VsTextDocData" in .NET Standard projects is fixed. We will notify you when the new public build is available.

Are you interested in getting the internal build with the fix?

HelmutJ
Posts: 8
Joined: Mon 13 Nov 2017 14:25

Re: Custom tool error: bufferAdapter is not a VsTextDocData

Post by HelmutJ » Mon 15 Oct 2018 09:49

Hi,

yes this build would be helpful for us at the moment! Please send it to me.

Best Regards
Helmut Joost

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Custom tool error: bufferAdapter is not a VsTextDocData

Post by Shalex » Mon 15 Oct 2018 12:12

We have just sent the download link to your email.

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Custom tool error: bufferAdapter is not a VsTextDocData

Post by Shalex » Thu 25 Oct 2018 17:25

New build of Entity Developer 6.3.606 is available for download now: viewtopic.php?f=32&t=37906.

JohnKesselman
Posts: 1
Joined: Thu 03 Sep 2020 16:00

Re: Custom tool error: bufferAdapter is not a VsTextDocData

Post by JohnKesselman » Thu 03 Sep 2020 16:07

I started seeing this error a couple of weeks ago but not as an error but as a pop up on save. Any ideas?

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Custom tool error: bufferAdapter is not a VsTextDocData

Post by Shalex » Mon 07 Sep 2020 17:53

We have reproduced the error with .NET Core / .NET 5 projects in VS2019 v16.7 and will notify you when it is fixed.

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Custom tool error: bufferAdapter is not a VsTextDocData

Post by Shalex » Tue 29 Sep 2020 09:22

The latest updates of Visual Studio 2019 brought a number of changes in behavior that is incompatible with older versions. Entity Developer integrated into VS2019 (Normal and Preview) has problems in a number of scenarios with saving models for .NET Core and .NET 5 projects. For now, we recommend that you use the standalone Entity Developer for .NET 5 development whenever possible to avoid losing your changes.

We are working on solving the arisen problems with VS2019.

As a temporary workaround, save the model in VS2019 via File > Save As and leave the original name. It should work this way.

Adaś
Posts: 12
Joined: Sat 06 Apr 2019 20:09

Re: Custom tool error: bufferAdapter is not a VsTextDocData

Post by Adaś » Wed 03 Feb 2021 15:56

Any idea when it will be fixed? Have same issue.
VS Info:
Microsoft Visual Studio Professional 2019
Version 16.8.4
VisualStudio.16.Release/16.8.4+30907.101
Microsoft .NET Framework
Version 4.8.03752

Installed Version: Professional

ASP.NET and Web Tools 2019 16.8.557.25636
ASP.NET and Web Tools 2019

ASP.NET Core Razor Language Services 16.1.0.2052803+84e121f1403378489b842e1797df2f3f5a49ac3c
Provides languages services for ASP.NET Core Razor.

ASP.NET Web Frameworks and Tools 2019 16.8.557.25636
For additional information, visit https://www.asp.net/

Azure App Service Tools v3.0.0 16.8.557.25636
Azure App Service Tools v3.0.0

Azure Functions and Web Jobs Tools 16.8.557.25636
Azure Functions and Web Jobs Tools

C# Tools 3.8.0-5.20604.10+9ed4b774d20940880de8df1ca8b07508aa01c8cd
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Common Azure Tools 1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

Devart dotConnect for MySQL 8.19.1792.0
Devart dotConnect for MySQL
Copyright 2002 - 2020 Devart. All rights reserved.
Web: www.devart.com/dotconnect/mysql
Support: [email protected]

Devart Entity Developer 6.10.1165.0
Devart Entity Developer
Copyright © 2008-2021 Devart. All rights reserved.
Web: www.devart.com/entitydeveloper
Support: [email protected]

Extensibility Message Bus 1.2.6 (master@34d6af2)
Provides common messaging-based MEF services for loosely coupled Visual Studio extension components communication and integration.

IntelliCode Extension 1.0
IntelliCode Visual Studio Extension Detailed Info

Microsoft Azure Tools 2.9
Microsoft Azure Tools for Microsoft Visual Studio 2019 - v2.9.30924.1

Microsoft Continuous Delivery Tools for Visual Studio 0.4
Simplifying the configuration of Azure DevOps pipelines from within the Visual Studio IDE.

Microsoft JVM Debugger 1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

Microsoft Library Manager 2.1.113+g422d40002e.RR
Install client-side libraries easily to any web project

Microsoft MI-Based Debugger 1.0
Provides support for connecting Visual Studio to MI compatible debuggers

Microsoft Visual Studio Tools for Containers 1.1
Develop, run, validate your ASP.NET Core applications in the target environment. F5 your application directly into a container with debugging, or CTRL + F5 to edit & refresh your app without having to rebuild the container.

Mono Debugging for Visual Studio 16.8.43 (00471f8)
Support for debugging Mono processes with Visual Studio.

NuGet Package Manager 5.8.1
NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/

ProjectServicesPackage Extension 1.0
ProjectServicesPackage Visual Studio Extension Detailed Info

SQL Server Data Tools 16.0.62012.31170
Microsoft SQL Server Data Tools

Syntax Highlighting Pack 2.8.134
Adds syntax highlighting and snippet support for a wide variety of programming languages such as Clojure, Go, Jade, Lua, Swift, Ruby and many more...

TypeScript Tools 16.0.21016.2001
TypeScript Tools for Microsoft Visual Studio

Visual Basic Tools 3.8.0-5.20604.10+9ed4b774d20940880de8df1ca8b07508aa01c8cd
Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Visual F# Tools 16.8.0-beta.20507.4+da6be68280c89131cdba2045525b80890401defd
Microsoft Visual F# Tools

Visual Studio Code Debug Adapter Host Package 1.0
Interop layer for hosting Visual Studio Code debug adapters in Visual Studio

Visual Studio Container Tools Extensions 1.0
View, manage, and diagnose containers within Visual Studio.

Visual Studio Tools for Containers 1.0
Visual Studio Tools for Containers

Visual Studio Tools for Unity 4.8.2.0
Visual Studio Tools for Unity

VisualStudio.DeviceLog 1.0
Information about my package

VisualStudio.Foo 1.0
Information about my package

VisualStudio.Mac 1.0
Mac Extension for Visual Studio

Xamarin 16.8.000.261 (d16-8@bb99248)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin Designer 16.8.0.507 (remotes/origin/d16-8@e87b24884)
Visual Studio extension to enable Xamarin Designer tools in Visual Studio.

Xamarin Templates 16.8.112 (86385a3)
Templates for building iOS, Android, and Windows apps with Xamarin and Xamarin.Forms.

Xamarin.Android SDK 11.1.0.26 (d16-8/a36ce73)
Xamarin.Android Reference Assemblies and MSBuild support.
Mono: 5e9cb6d
Java.Interop: xamarin/java.interop/d16-8@79d9533
ProGuard: Guardsquare/proguard/proguard6.2.2@ebe9000
SQLite: xamarin/sqlite/3.32.1@1a3276b
Xamarin.Android Tools: xamarin/xamarin-android-tools/d16-8@2fb1cbc


Xamarin.iOS and Xamarin.Mac SDK 14.8.0.3 (c51fabee8)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.

Post Reply