Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 14:29
    atykhyy commented #44093
  • 14:27
    atykhyy commented #44093
  • 14:25
    atykhyy commented #44093
  • 13:25
    dotnet-maestro[bot] edited #57969
  • 13:13
    dotnet-issue-labeler[bot] labeled #59037
  • 13:13
    dotnet-maestro[bot] review_requested #59037
  • 13:13
    dotnet-maestro[bot] opened #59037
  • 13:13

    dotnet-maestro[bot] on darc-main-779afa34-d5ce-420b-bb3d-afd4f6418e23

    Update dependencies from https:… (compare)

  • 13:13

    dotnet-maestro[bot] on darc-main-779afa34-d5ce-420b-bb3d-afd4f6418e23

    (compare)

  • 13:09
    dotnet-maestro[bot] edited #59015
  • 09:38
    stap123 commented #58913
  • 09:37
    stap123 commented #58913
  • 09:35
    stap123 edited #58913
  • 09:20
    mavasani commented #53045
  • 09:19
    mavasani labeled #53045
  • 09:18
    Tragetaschen commented #56274
  • 08:36
    mavasani synchronize #57172
  • 08:33
    wmjordan commented #58557
  • 07:43
    jcouv synchronize #58949
  • 05:21
    jinujoseph labeled #42864
Elan Hasson
@elanhasson:matrix.org
[m]
Why are source generators only additive?
Joe4evr
@Joe4evr
because it's exponentially more complicated to spec order of execution when replacement is involved
Leandro T. C. Melo
@ltcmelo
hi...
I have an unexpected situation: an object propSym (of type IPropertySymbol) whose Name is null, ie, propSym.Name == null holds
I don't have any context about the source in question because this error is coming from a (customer) log
my understanding is that propSym.Name could return an empty string but not null
I'm wondering whether this could happen anyhow... does anyone have a hint?
Bernd Baumanns
@bernd5
hey
I'd like to analyze the dataflow of a ConstructorInitializerSyntax
Unfortenately it is not an expression nor a statement
it has the same characteristics as a statement - but it does not inherit from it (because it is only valid at a single position...)
For now I "solved" it by creating a dummy method with an ObjectCreationExpressionSyntax of the base / delegated constructor and analyzed that
the result is fine - but I need to map the new symbols back to the old ones
Could we allow AnalyzeDataFlow not only for statements and expression's but also for ConstructorInitializer expressions?
Bernd Baumanns
@bernd5
Or do you have another good idea?
Bernd Baumanns
@bernd5
@ltcmelo it could be an indexer
indexers do not have a name ...
that they are mapped to IPropertySymbol is a bit strange, but ...
I think in VB they can have names - in csharp not
Leandro T. C. Melo
@ltcmelo
@bernd5 thanks but an indexer does have a valid name
BTW, about your question @bernd5 : you could rewrite the initializer into the constructor body (prior to analysis)
I do similar things in this library https://github.com/ShiftLeftSecurity/SharpSyntaxRewriter
Bernd Baumanns
@bernd5
That is what I did - but the rewrite the symbols are different (they belong to the rewritten code ...)
@ltcmelo what is the name of an indexer?
Is "this" returned?
I would think null would be okay, too
the best is maybe to extend roslyn... I create a PR
Leandro T. C. Melo
@ltcmelo

the rewrite the symbols are different (they belong to the rewritten code ...)

correct, so what I do is to recompute the semantic model, then you get valid symbols and a correspondence

Bernd Baumanns
@bernd5
Bernd Baumanns
@bernd5
Bernd Baumanns
@bernd5
at least the GC is not deterministic
1 reply
but that is not a roslyn question it is a runtime question
Antonín Procházka
@prochan2
Hi, why are all the Microsoft.CodeAnalysis* NuGet packages of version 4.0.0 unlisted at NuGet.org and why there's no 4.0.0 version of Microsoft.VisualStudio.LanguageServices yet? Are these waiting for .NET Conf? It's confusing because VS 2022 is out already.
Joe4evr
@Joe4evr
probably waiting for .NETConf, yea
Bernd Baumanns
@bernd5
you can download the preview versions
But I assume the final versions will be published soon
Ryan
@ryan:chat.binarydad.com
[m]
Was anyone else having issues searching for files in any of the 2022 previews?
I would type in solution Explorer and it would never find any files
Bernd Baumanns
@bernd5
here it works
Ryan
@ryan:chat.binarydad.com
[m]
hmm...never did for me. i can ctrl+F just fine, but searching in the right under solution explorer never shows anything
ok... disregard. updated to RTM for 2022 and it seems to work...
Авдеев Вячеслав
@lsoft
dotnet6 is here, but what's about incremental generators docs? did I miss it? the existings doc ( https://github.com/dotnet/roslyn/blob/main/docs/features/incremental-generators.md ) is obsolete even in terms of classes names...
Joe4evr
@Joe4evr
how is it that I get build errors that are not pushed to the Error List?
image.png
CyrusNajmabadi
@CyrusNajmabadi
Sounds like a bug. Please report it
Mohammad Hamdy Ghanem
@VBAndCs
untitled12.jpg
Remove unused local function? This is too scary!
Bernd Baumanns
@bernd5
what is scary?
Paul M Cohen
@paul1956
For VB functions that are Event Handlers appear as unused and VS 2022 removes handles clauses sometimes so the function would be deleted.
CyrusNajmabadi
@CyrusNajmabadi
That's a bug if so. Please file.
Jon Evans
@glitch100

Morning all.

Is it still the case that debugging Roslyn Analyzers/ CodeFixProviders can only be done via the VSIX Extension project? Is it possible to debug a unit test that is written? As in step into the Analyzer code?

Joe4evr
@Joe4evr
I've always used a unit test to step into analyzer code
never heard of a VSIX project being "the only way" to debug an analyzer
Jon Evans
@glitch100
Do you use a specific helper method to invoke your Analyzer code?
Jon Evans
@glitch100
My goodness
Antony Male
@canton7
I took that and modified it a bunch, ended up with something quite nice