Comments (5)
I had the same issue but my Avalonia version was 11.0.10.
I guess the reason behind it is that there is no references
file in the folder obj/Debug/net8.0/Avalonia
. Since I had several local Avalonia projects, I just found an Avalonia project which worked well regarding autocomplete and then copied the references
file from it to the one which did not work well...It worked for me.
from avaloniavs.
I had the same issue. But my project compile is working very well.
I am trying to figure out what is wrong with my project settings, but I can't find the problem.
09:07:46.828 [Information] Started AvaloniaDesigner.CreateCompletionMetadataAsync() for "C:\Workspace\Samples\AvaloniaApplicationTest\AATestProject.Desktop\obj\Debug\net7.0\Avalonia\references"
09:07:46.838 [Information] 0 Starting previewer process for '"C:\Workspace\Samples\AvaloniaApplicationTest\AATestProject.Desktop\bin\Debug\net7.0\AATestProject.Desktop.dll"'
09:07:46.840 [Information] 24392 Started previewer process for '"C:\Workspace\Samples\AvaloniaApplicationTest\AATestProject.Desktop\bin\Debug\net7.0\AATestProject.Desktop.dll"'. Waiting for connection to be initialized.
09:07:46.897 [Information] 24392 Connection initialized
09:07:46.935 [Error] Error creating XAML completion metadata
System.InvalidOperationException: Sequence contains no elements
at System.Linq.Enumerable.First[TSource](IEnumerable1 source) at Avalonia.Ide.CompletionEngine.MetadataConverter.ConvertMetadata(IMetadataReaderSession provider) at Avalonia.Ide.CompletionEngine.AssemblyMetadata.MetadataReader.GetForTargetAssembly(IAssemblyProvider assemblyProvider) at System.Threading.Tasks.Task
1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at AvaloniaVS.Views.AvaloniaDesigner.d__64.MoveNext() in D:\a\1\s\AvaloniaVS.Shared\Views\AvaloniaDesigner.xaml.cs:line 609
from avaloniavs.
This is a known issue.
You can fix it by uninstalling the newest version of Avalonia for Visual Studio Extension
and installing the previous version of the extension.
Worked for me!
from avaloniavs.
Thank you, @Bruce9009 ✌️ . Now, I can autocomplete in my new project.
from avaloniavs.
Fixed in 11.7 plugin version.
from avaloniavs.
Related Issues (20)
- Add XAML Editor configuration persistance in Visual Studio HOT 1
- High memory and CPU usage when (indirectly) referencing DevExpress libraries HOT 10
- Tooltip flashing in preview window
- preview and autocomplete only work if you have a desktop application HOT 3
- Incorrect behavior of adding a new Avalonia item to project in Visual Studio HOT 1
- Broken installation on linux HOT 1
- Reference the library from an executable or wait for the solution to finish loading. HOT 1
- Autocomplete of binding properties doesn't work in Visual Studio 2022 mostly HOT 7
- Autocomplete of binding properties doesn't work in Visual Studio 2022 mostly HOT 1
- Add ability to change themes in the previewer. HOT 1
- Regions in AXAML files HOT 1
- New Event shown in Code-Behind
- "No executable found" when integrating Microsoft.ML.OnnxRuntime.DirectML HOT 6
- Add XAML editor's behaviour "Show inline color previews"
- Remove dependency from Avalonia TemplateStudio HOT 1
- Intellisense does not work whem mix assembly version
- .vsix does not install offline HOT 5
- Error message only shows when using dark theme
- UserControl template misses directory name in the namespaces HOT 3
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 avaloniavs.