-
Notifications
You must be signed in to change notification settings - Fork 3
Extension load error "cannot find type Def in typeInfoMap" #119
Comments
yes. the extension loads all required metadatas from reading DLL. this is because
I should've printed logs with more detail for easy debugging. I'll add more of it so it helps finding what is broken. |
How do I launch VSCode in debug mode? You mean debugging the extension, so cloning your repo and trying to debug it? Thanks for responding so quick and trying to help out! |
you can clone the repo, and launch vscode to enter extension debug mode. I described how to set-up a project on readme. you need the following tools
|
I released v0.32.0 which improve logging on client/server side. |
Trying to set up the dev environment on windows. Got it working mostly, I can build the source with And when I try to install webpack via npm, it throws an error: So if I can't test it locally, I can't provide you with a new log yet, as I guess you haven't updated the marketplace version yet. |
So I guess the And do I have to run in the main folder, or the extension folder? Running in the extension folder gives me a different error, with an invalid config file: I'm so sorry for causing this much trouble. |
I don't know why it is broken. I'm trying to figure it out... |
I think there is some kind of underlying issue how syringe resolves the depency objects, as it can't finde the type info to construct those objects, from what it looks like. I could fix the I can submit a PR for that later, but I think we will run into a few more DI errors... Google says maybe the LogManager has to be imported explicitly as |
@Wolfsblvt thanks for investigating issues. I merged a PR to fix the detailed issue you posted. check #123 after a CI build completes, the new version will be released. you can use that (takes up to ~ 30min for upload to marketplace) |
Thanks, I will test this again once the CI build is working again! (As it looks like the CI is still broken, build failing) |
Nice, that's a pretty detailed log now! So, either I am not understanding correctly what the Extension actually is doing, or it doesn't really load up any of the features. I also tried opening several mods in my workshop folder, and none really showed any features available either, with similar logs. Nothing happening on opening the "Data" folder in Rimworld install either. So am I understanding something wrong, or is it not working for me? Attached both client and server logs. Server still has the one with "Def" not found that looks like it might be culprit. Server Log
Client Log
|
Okay, I tested a bit more, digged through some old issues here, and found another possible cause. I got a few mods that got some features loaded, and I noticed they all had a The
Something wrong on my end? Are those known issues? Should I open a new GitHub issue? On one workshop mod the References info shows up for times :D Server Log
Client Log
|
it seems dll load works fine.
extension can run with/without
this log happens when the server receives typeInfos from client and there's no data for
some nodes are not registered as linkable. it is not intended and needs to be fix.
quick info is called "CodeLens". anyway, the reason why it's broken is a bit complex. you can see codelens code here it is not a intended feature and needs to be fix. |
I just remembered that this is a known issue. |
Cheers! Thanks for taking your time to responding to me and my issues. If you need help I could see if I can learn how typescript works and help out with code. Or tell how I can buy you a coffee, for the headaches I caused. |
I appreciate your coffee but I can get it on my own :3 you can close this issue anytime if the problem is solved. |
Like your attitude <3 I stared already and I am going to share it whenever I can! I guess the original problem here is solved, extension is loading and working well, I am going to close it. |
Hey,
no matter what I'm trying, I can't seem to get your installation to work.
I already moved Rimworld to the default install path to prevent problems that I've read about here, I entered all paths in the extension settings manually.
Now when my newly created nearly empty mod folder, the extension doesn't load up. Extension Output log shows:
The extension is enabled, but doesn't show any runtime info, like other extension would do when they are loaded:
![image](https://user-images.githubusercontent.com/9962104/170563239-25248d29-0587-4605-920a-3f93fc186499.png)
This is a pretty fresh install of Visual Code.
I love the idea of your extensions, and would be really happy if I could get this to work.
EDIT: I also tried opening the Rimworld folder itself, and some workshop mod folders, always the same errors.
I tried to dive into the code to see which def it tried to load, but it got a bit confusing. Are you loading DLLs manually there to register type definitions?
The text was updated successfully, but these errors were encountered: