Skip to content

No matches while evalueting https://github.com/mguetta1/csharp-sample #69

@mguetta1

Description

@mguetta1

C# app: https://github.com/mguetta1/csharp-sample

1. Start the Server

# Terminal 1: Start server with debug logging
RUST_LOG=c_sharp_analyzer_provider_cli=DEBUG,INFO cargo run -- --port 9000 --name c-sharp --db-path testing.db

2. Initialize the Project

# Terminal 2: Send init request
grpcurl -max-time 1000 -plaintext -d '{
    "analysisMode": "source-only",
    "location": "/home/mguetta/git/konveyor/csharp-sample",
    "providerSpecificConfig": {
      "ilspy_cmd": "'${HOME}'/.dotnet/tools/ilspycmd",
      "paket_cmd": "'${HOME}'/.dotnet/tools/paket",
      "dotnet_install_cmd": "'$(pwd)'/scripts/dotnet-install.sh"
    }
  }' localhost:9000 provider.ProviderService.Init

3. Run a Query

# Query for references to System.Web.Mvc.*
grpcurl -max-msg-sz 10485760 -max-time 30 -plaintext -d '{
  "cap": "referenced",
  "conditionInfo": "{\"referenced\": {\"pattern\": \"System.Web.Mvc.*\"}}"
}' localhost:9000 provider.ProviderService.Evaluate

Actual result

{
  "successful": true,
  "response": {}
}

Expected result

4 incidents in file: Program.cs
Lines: 3, 25, 30, 33

Metadata

Metadata

Assignees

Labels

kind/bugCategorizes issue or PR as related to a bug.priority/important-soonMust be staffed and worked on either currently, or very soon, ideally in time for the next release.team/insights-discoveryRelated to insights discoverytriage/acceptedIndicates an issue or PR is ready to be actively worked on.

Type

No type

Projects

Status

🏗 In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions