This application has been working fine for a while now. My local environment works but production gets crashed when tooltip moves too quickly or over too much of the line chart.
After i updated some features it still worked normally in development. So i added logger to production and it resolved. Obviously i can't leave logger in production.
Recharts recently had an update. Could middleware be affecting it's implementation?
I had a yarn file in my build even though i'm using npm and json-package.lock. Once deleted the issue resolved. I can't explain how the logger interacted but it was completely consistent behaviour if taken out vs in.
I imagine there is a conflict between packages of recharts and something else. Once i deleted the yarn file i think it allowed my json.lock to make sure the correct version of recharts was being used. I'm not sure how logger effected this though.
Related
I am trying to figure out how my VSIX project stopped working [VS2022]. following this article, I was able to run and debug my VSIX project with an IWizard implementation. Something changed, I'm not sure what. I can F5-run and everything works but the code executing is not the latest code and I'm unable to hit any breakpoints (VS says No Symbols have been loaded for this document). I can tell its not the latest code because of the debug console messages and the UI is an older version.
I've tried a number of things including
Clean install
Made sure I'm in debug
Removed the extension from VS, and just tried running debug from VS
Verified compiled output is in AppData\Local\Microsoft\VisualStudio\17.0_c281014fExp\Extensions\ {myextension}
Property settings are set
Assets have not changed
I did mess around adding additional install targets but I don't think this caused any issues
Any ideas how the the project can be out of sync with the code?
I could go back to the start and implement a new project but hoping someone out there can help resolve this issue. Appreciate the help.
I figured this out. I don't know why it works the way it does, but this definitely fixed the problem.
I removed ALL extensions from VS using the extensions manager interface. So, all old instances are gone (but are they?)
In my VSIXProject I would do a clean solution, rebuild, run. I verified that the latest DLL's were being output to
C:\Users{user}\AppData\Local\Microsoft\VisualStudio\17.0_c281014fExp\Extensions{username}\Acme Project Template\1.0\VSIProject1.dll - VS Build output went here
In the debugger, when my little windows form loaded, I could tell it was old code and caught the reference in the output windows that it was loading an older version of the package.
C:\Users{user}\AppData\Local\Microsoft\VisualStudio\17.0_c281014fExp\Extensions{username}\Multi Project Name\1.0\VSIProject1.dll - debugger loaded this
C:\Users{user}\AppData\Local\Microsoft\VisualStudio\17.0_c281014fExp\Extensions{username}\Acme Project Name\1.0\VSIProject1.dll - debugger loaded this after deleting above
C:\Users{user}\AppData\Local\Microsoft\VisualStudio\17.0_c281014fExp\Extensions{username}\Acme Project Template\1.0\VSIProject1.dll - VS Build output went here
After I deleted all the previous extensions in file explorer and re-ran my project, the right code executed and debugging was enabled. IDK why the older versions were picked during debugging but it's fixed. HTH someone.
I have a Xamarin.Forms Android project, am I'm trying migrate from the old Android support packages to AndroidX. The migrate seems to work, and I end up having to add a reference to the AndroidX media package during compile.
The issue is that when I try to actually run the app, I get the exception
System.InvalidCastException: 'Unable to convert instance of type 'Android.Widget.RelativeLayout' to type 'AndroidX.AppCompat.Widget.Toolbar'.'
from the Xamarin.Forms.Platform.Android.FormsAppCompatActivity.OnCreate. My MainActivity class subclasses FormsAppCompatActivity and MainActivity's OnCreate immediately calls the base OnCreate. Visual Studio says the exception is from external code, so it doesn't show me anything.
The OnStart and OnResume overrides in my MainActivity are called and finish fine (its only one line of code configuring the CrossCurrentActivity plugin being used.
I'm at a loss as to how to track down the problem. I suspect the issue is somewhere in one of the packages I'm using, my main suspect being the Xam.Plugin.Iconize since it hasn't been updated for a while, but we rely on it and I'm not really sure how to prove where the issue is.
I recently migrated to AndroidX and published the app. Users have been reporting a lot of crashes on start. I'm still figuring it out. Weird part is that, it works fine on some devices but crashes on some others.
I have noticed a few files in Android project still refer to the old 'Android Support' lib. Make sure you change them manually to AndroidX.
Check the Toolbar.xml and Tabbar.xml (Android proj>Resources>Layout). I had this in my app, which was still using android.support.v7......
I suggest to check in all the files and update manually where ever required.
I'm working with a .NET Core + React project (dotnet new react), and am testing out how pages render by just adjusting the default components and views that it starts out with. I adjusted the default component text (not code), just to see if it'll display my changes. For example, changing their Hello World to something else. However, none of my changes showed up. It just continues to display the default/original text.
I've tried doing dotnet restore prior to dotnet run, and tried changing the default text in a couple of the component .tsx files. But none of the files displayed the update. For some reason, when my friend opens up my project on their computer, they're able to see my changes. I tried hard refreshing and clearing my cache too, in case it was a cache issue, but still nothing.
I can't figure out why it's not working. This is my first time working with React. Thanks in advance!
EDIT: I've been working with VS Code for this. When I open up my project in VS Community (and create a solution file for it), it displays the updates! However, if I have a project with no solution file, it still doesn't display the updates. Is there a specific extension or something I need for VS Code in order for it to work?
Set the ASPNETCORE_ENVIRONMENT variable to Development.
In the same session dotnet run is being called,
$env:ASPNETCORE_ENVIRONMENT="Development"
When not set, the environment will default to Production.
Looking at the generated Startup.cs, hot module replacement is only enabled when it's set to Development.
There is probably a way to set this value in VS Code without need to set it via command line.
I have this project hosted here:
https://github.com/thistleknot/DiffMatchPatch
I was VERY meticulous and verified each of my commit’s ran a successful compiled version.
However, now… no matter what commit I use, by copying to a new directory, or try to create a new blank project and import old header’s, forms, and cpp files in… I can not get the app to run. It builds, just never opens.
I even tried debugging my main function by inserting breakpoints and it just skips right by them.
Any ideas? This happened to me last night when someone was assisting me. The compiled app just exits from task manager with no errors or messages. It does ask if I want to run as admin however. But that’s it.
You're building on a platform that doesn't inform you of things that are wrong. Namely, there are two main symbols in the project. You can't have the test harness and the application under test in one project. Those need to be separate projects.
Simply remove diff_match_patch_test.[cpp|h] from the project and you'll be all set.
I took a fully working Xcode project and added a Podfile to it. After doing the pod install, opening the newly created workspace and trying to build, it no longer works. When I compile now I get errors from a couple system header files. For example, NSFetchRequestExpression.h tells me:
Attempting to use the forward class 'NSExpression' as superclass of 'NSFetchRequestExpression'
I manually went in and added $(inherited) to the front of the "Framework Search Paths" and "Other Linker Flags" build settings. Any ideas on what I need to change to make this work?
Finally figured this out. CocoaPods actually changes the way includes work. I had a core data entity called Time, which creates and NSManagedObject subclass called Time.h. When CocoaPods mucks with the header include search paths, suddenly the system files which asked for found my time file instead. I renamed that class (which I shouldn't have had to do!) and now everything works fine.