-
Notifications
You must be signed in to change notification settings - Fork 28
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
Add _ScintillaManagedDragDrop
& improve error messages
#114
Conversation
I like the drag/drop addition, it will take some time to review the satellite library changes. |
I'm getting errors at design time with these changes and unless I'm missing something, the current way of doing it will throw with the basepath that failed and using what you have suggested here will just show a list of paths. How would this help improve the errors? |
There are no changes to how satellite libraries are resolved in this PR. It improves the error message by showing the list of paths that were searched instead of just showing the last one. I suspect the designer error might be caused by you changing the version from |
The path checks are fairly linear logically, so it keeps checking until a good path is able to be returned. What is the value in knowing the full list, don't you just need the last one that failed? Knowing that other paths were not checked seems to not have a lot of value, but I might be missing something. I do like the idea of better logging, but I would like to flesh out this idea a little more before checking anything in. |
There is no point in arguing in favor of the current error message whatsoever. It makes the user think that ScintillaNET checks a single path. You see, when the designer fails with: If it instead gave the following error:
I would be able understand the issue immediately because |
Ping @desjarlais |
I'm still looking into adding the logging and figuring out why it is failing on my machine. |
.NET seems to work fine, but .NET Framework is giving me problems. When I try to add the control, it gives the error with no searchedPaths. I'm currently testing a StringBuilder field and each path gets added to the StringBuilder and is thrown instead of the last basePath. I think it is a similar idea to what you are saying here. So far it is working in .NET and .NET Framework. I'm going to try one more time getting this particular PR to work with .NET Framework. Have you tested what you have against .NET Framework apps? |
I don't understand why or how you're running into issues, I'm using this exact code in production in a .Net Framework 4.8.1 app. VS WinForms designer works just fine if I put the native DLLs under I was hoping you would merge this and publish a package soon. |
I can skip the testing and debugging I'm doing to see what causes the issue in the .NET Framework if you are willing to let me assign any new bugs with loading the satellite dll's to you after this is checked in as is? |
How about publishing a beta package with these changes first? I can test it as a nuget pkg to see if there is some obvious issue. |
I'm attaching version 21 with your changes, test it out and let me know how things go on your end. |
I tested my changes using a local NuGet source with both fresh .NET Framework 4.8 & .NET 6 WinForms projects and everything seems to be in order. Additional findings on my tests:
|
@desjarlais can you attach a small repro project? |
I'll attach one soon, but there is nothing in it. I did a new .net framework winform project set to 4.7.2 and added the local nuget for scintilla and tried to drag the control and got the error message. I'm going to check a different machine first and see if it's the same behavior. |
.NET Framework projects are created in legacy project format and use |
_ScintillaManagedDragDrop
for makingRevokeDragDrop()
optional