JaneySprings / DotNet.Meteor

A VSCode extension that can run and debug .NET apps (Xamarin, MAUI, Avalonia)
https://marketplace.visualstudio.com/items?itemName=nromanov.dotnet-meteor
MIT License
269 stars 10 forks source link

Goto definition does not work with v5.4.0 #119

Closed marcoseraphin closed 1 month ago

marcoseraphin commented 1 month ago

Goto definition does not work with v5.4.0. The code is not colored and I am not able to navigate inside the code to a method by pressing CMD+D

Bildschirmfoto 2024-09-10 um 08 54 49

By going back to v5.3.5 all works normal.

JaneySprings commented 1 month ago

Hi! Information about external code passed through debugger in the new version (see SourceRequest). This only applies to external code that can be downloaded via SourceLink (for example: MAUI assemblies).

In 5.3.5 source from external code was created in the .meteor folder of your project. Maybe this folder was included in your project before? I think this is not a good thing, as it could affect the IntelliSense in your project.

How critical is this problem for you? I can revert this changes.

marcoseraphin commented 1 month ago

Thanx for the fast response. What do you mean by "included in your project before" ? The folder exists in the project folder in the finder as a hidden folder BUT it is not part of the project (csproj file)? Should I remove the folder ?

JaneySprings commented 1 month ago

Yes, the debugger automatically creates hidden .meteor folder in 5.3.5. When you select any frame in the CALLSTACK VSCode tab, if this frame has SourceLink (url to the source code) - debugger automatically downloads this file in the .meteor/sources folder and shows it.

In 5.4.0 I have removed this folder. Now source code from SourceLink passed through debugger.

It is very easy to check, in the old version you could edit this file, but in the new one it is ReadOnly: image

marcoseraphin commented 1 month ago

I am NOT in debug mode ! I have the project open NOT running the app and just want to navigate thru the code. So should I remove the .meteor folder if I am using v5.4.0 ?

JaneySprings commented 1 month ago

Yes, you can remove it.


I am NOT in debug mode !

This should not affect the IntelliSense of your project. .NET Meteor is just a debugger and it activates only in debug mode.

What kind of extension do you use for IntelliSense? C# DevKit or DotRush?

marcoseraphin commented 1 month ago

It is working with v5.4.0, I am able to navigate (not in debug mode) to my own methods or to external code with CMD+D again...thanx

Currently I am using C# Dev Kit.

JaneySprings commented 1 month ago

Yeah, I think this is a bug on the C# DevKit side. We at DevExpress don't use C# DevKit and MAUI extensions.

If you also have a lot of problems with this extension, I recommend that you use DotRush instead. It doesn't have Solution Explorer and razor support, but IntelliSense works much better.

marcoseraphin commented 1 month ago

yes, I probably will try it...thanx