Skip to content
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

TreeView control (C++-based, from Windows Universal Samples) can't be used in WASM app #3

Closed
danielkornev opened this issue May 8, 2018 · 4 comments
Labels
kind/enhancement New feature or request platform/wasm 🌐 Categorizes an issue or PR as relevant to the WebAssembly platform triage/most-wanted

Comments

@danielkornev
Copy link

Here's the control code:
https://github.com/Microsoft/Windows-universal-samples/tree/win10-1709/Samples/XamlTreeView/cpp/Control

Here's the error during building:

Error		Generation failed for aa. System.AggregateException: One or more errors occurred. ---> System.InvalidOperationException: The type {using:TreeViewControl}IntegerToIndentationConverter could not be found
   at ad.a(ar A_0)
   at ad.q(ar A_0)
   at ad.a(IIndentedStringBuilder A_0, Boolean A_1, IEnumerable`1 A_2)
   at ad.a(IIndentedStringBuilder A_0, Dictionary`2 A_1, Boolean A_2)
   at ad.c()
   at ad.e()
   at z.a.e(ac A_0)
   at System.Linq.Parallel.SelectQueryOperator`2.SelectQueryOperatorResults.GetElement(Int32 index)
   at System.Linq.Parallel.QueryResults`1.get_Item(Int32 index)
   at System.Linq.Parallel.PartitionedDataSource`1.ListContiguousIndexRangeEnumerator.MoveNext(T& currentElement, Int32& currentKey)
   at System.Linq.Parallel.StopAndGoSpoolingTask`2.SpoolingWork()
   at System.Linq.Parallel.SpoolingTaskBase.Work()
   at System.Linq.Parallel.QueryTask.BaseWork(Object unused)
   at System.Linq.Parallel.QueryTask.<>c.<.cctor>b__10_0(Object o)
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
   --- End of inner exception stack trace ---
   at System.Linq.Parallel.QueryTaskGroupState.QueryEnd(Boolean userInitiatedDispose)
   at System.Linq.Parallel.SpoolingTask.SpoolStopAndGo[TInputOutput,TIgnoreKey](QueryTaskGroupState groupState, PartitionedStream`2 partitions, SynchronousChannel`1[] channels, TaskScheduler taskScheduler)
   at System.Linq.Parallel.DefaultMergeHelper`2.System.Linq.Parallel.IMergeHelper<TInputOutput>.Execute()
   at System.Linq.Parallel.MergeExecutor`1.Execute()
   at System.Linq.Parallel.MergeExecutor`1.Execute[TKey](PartitionedStream`2 partitions, Boolean ignoreOutput, ParallelMergeOptions options, TaskScheduler taskScheduler, Boolean isOrdered, CancellationState cancellationState, Int32 queryId)
   at System.Linq.Parallel.PartitionedStreamMerger`1.Receive[TKey](PartitionedStream`2 partitionedStream)
   at System.Linq.Parallel.UnaryQueryOperator`2.UnaryQueryOperatorResults.GivePartitionedStream(IPartitionedStreamRecipient`1 recipient)
   at System.Linq.Parallel.QueryOperator`1.GetOpenedEnumerator(Nullable`1 mergeOptions, Boolean suppressOrder, Boolean forEffect, QuerySettings querySettings)
   at System.Linq.Parallel.QueryOpeningEnumerator`1.OpenQuery()
   at System.Linq.Parallel.QueryOpeningEnumerator`1.MoveNext()
   at System.Linq.ParallelEnumerable.ToList[TSource](ParallelQuery`1 source)
   at z.c()
   at aa.Execute(SourceGeneratorContext context)
   at Uno.SourceGeneration.Host.SourceGeneratorHost.<>c__DisplayClass2_0.<Generate>b__13(ValueTuple`2 generatorDef) in C:\projects\uno-sourcegeneration\src\Uno.SourceGenerationHost.Shared\SourceGeneratorHost.cs:line 150
---> (Inner Exception #0) System.InvalidOperationException: The type {using:TreeViewControl}IntegerToIndentationConverter could not be found
   at ad.a(ar A_0)
   at ad.q(ar A_0)
   at ad.a(IIndentedStringBuilder A_0, Boolean A_1, IEnumerable`1 A_2)
   at ad.a(IIndentedStringBuilder A_0, Dictionary`2 A_1, Boolean A_2)
   at ad.c()
   at ad.e()
   at z.a.e(ac A_0)
   at System.Linq.Parallel.SelectQueryOperator`2.SelectQueryOperatorResults.GetElement(Int32 index)
   at System.Linq.Parallel.QueryResults`1.get_Item(Int32 index)
   at System.Linq.Parallel.PartitionedDataSource`1.ListContiguousIndexRangeEnumerator.MoveNext(T& currentElement, Int32& currentKey)
   at System.Linq.Parallel.StopAndGoSpoolingTask`2.SpoolingWork()
   at System.Linq.Parallel.SpoolingTaskBase.Work()
   at System.Linq.Parallel.QueryTask.BaseWork(Object unused)
   at System.Linq.Parallel.QueryTask.<>c.<.cctor>b__10_0(Object o)
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()<---
	DomainEditor.Wasm	C:\Users\danielko\.nuget\packages\uno.sourcegenerationtasks\1.22.0-dev.32\build\net45\Uno.SourceGenerationTasks.targets	94	
@danielkornev
Copy link
Author

I'm updating VS 2017 to 15.7, and will later update Windows to 1803 to see whether the built-in TreeView control will work or not

@jeromelaban jeromelaban added the kind/enhancement New feature or request label Jun 26, 2018
@weitzhandler
Copy link
Member

Very essential control, please prioritize. Thanks!

@jeromelaban jeromelaban mentioned this issue Oct 3, 2018
4 tasks
@ghuntley ghuntley added platform/wasm 🌐 Categorizes an issue or PR as relevant to the WebAssembly platform priority/backlog labels May 23, 2019
@ghuntley ghuntley self-assigned this May 23, 2019
NicolasChampagne added a commit that referenced this issue Jul 23, 2019
# This is the 1st commit message:

Fix to projitems files

# This is the commit message #2:

added suggestions from code review

# This is the commit message #3:

Added a class for DependencyProperty.UnsetValue

fix wip

# This is the commit message #4:

Fix to remove the "collection changed" exception

# This is the commit message #5:

DataContext were considered valid when set to "UnsetValue"
Was causing a problem on Android when coming back from background, the DataContext is briefly set to UnsetValue, causing DependencyProperties to change to their default value.

# This is the commit message #6:

Fixed exception when using ExponentialEase on Android

# This is the commit message #7:

Removed useless setting of DataContext in a "reload" scenario.
This was mostly happening on Android when the application is coming back from background.

# This is the commit message #8:

Reverted IShadowChildrenProvider to use the List<T> type
@ghuntley ghuntley removed their assignment Oct 4, 2019
davidjohnoliver pushed a commit that referenced this issue Oct 18, 2019
@MartinZikmund
Copy link
Member

MartinZikmund commented Sep 9, 2020

@francoistanguay Can we close this one in favor of #2720 ?

@jeromelaban
Copy link
Member

Let's close this one indeed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request platform/wasm 🌐 Categorizes an issue or PR as relevant to the WebAssembly platform triage/most-wanted
Projects
None yet
Development

No branches or pull requests

5 participants