GithubHelp home page GithubHelp logo

jetbrains / resharper-rider-plugin Goto Github PK

View Code? Open in Web Editor NEW
161.0 14.0 43.0 7.16 MB

https://www.jetbrains.com/help/resharper/sdk/

Home Page: https://www.jetbrains.org/intellij/sdk/docs/

License: Apache License 2.0

PowerShell 76.86% C# 13.02% Batchfile 10.13%

resharper-rider-plugin's Introduction

JetBrains incubator project

Plugin Template for ReSharper and Rider

This repository defines a template for easy development of ReSharper and Rider plugins according to the official documentation for the ReSharper SDK and IntelliJ SDK.

Getting Started

Download the JetBrains.ReSharper.SamplePlugin.*.nupkg template package from the releases page and invoke from the download directory:

dotnet new install JetBrains.ReSharper.SamplePlugin.*.nupkg

Afterwards, a new project can be created from the installed template. The name identifier should be letters-only:

dotnet new resharper-rider-plugin --name MyAwesomePlugin [--resharper-only] [--build-only]

Warning
The template comes with its own solution file. Therefore, it MUST be used from the command-line as shown above.

This will create a new folder with all the structure ready to go and all identifiers, like namespaces, ids and file names, replaced with MyAwesomePlugin. Passing --resharper-only will exclude all Rider related files. With the --build-only --force, all the build-relevant files can be updated (some reverts are most likely necessary). Metadata including project website, description, author and others should be entered in Plugin.props and plugins.xml.

Warning
The only place that currently needs to be updated manually is the RIDER_PLUGIN_ID in README.md, which you'll only get after uploading your Rider plugin the first time.

Samples

This repository contains a few sample projects for various extension points:

Development

For general development, there are a couple of scripts/invocations worth knowing. Most importantly, to run and debug your plugin, invoke:

# For Rider
gradlew :runIde

# For ReSharper (VisualStudio)
powershell .\runVisualStudio.ps1

If your Rider plugin requires a model to share information between ReSharper backend and IntelliJ frontend, there is a sample protocol defined in protocol directory. To generate the Kotlin and C# implementation, call:

gradlew :rdgen

Debbuging your plugin requires your debugger to be attached to the corresponding IDE process. You can find the correct process by searching for Backend when running your extension in Rider, or devenv for Visual Studio. Read more about attaching here:

Opening the solution in Rider or IntelliJ IDEA will automatically provide the corresponding run configurations:

Version Relevant Code

There are a couple of version identifiers that should always be updated synchronously:

  • The ProductVersion variable in build.gradle is responsible for download a certain Rider frontend distribution
  • The SdkVersion property in Plugin.props will affect the referenced JetBrains.ReSharper.SDK NuGet package and will also determine the wave version that is required for the Extension Manager in ReSharper
  • The runVisualStudio.ps1 script will always download the latest available installer for ReSharper - this can be either a normal release or early-access-program (EAP) release

Available versions are listed here for ReSharper and Rider (under com.jetbrains.intellij.rider).

Visual Studio / ReSharper Relevant Directories

Installing ReSharper and the plugin into an experimental Visual Studio instance (hive) affects the following directories:

  • %LOCALAPPDATA%/JetBrains/plugins contains a copy of the plugin package, similar to the global NuGet package cache
  • %LOCALAPPDATA%/JetBrains/Installations contains settings directories per experimental instance, whereas packages.config defines what plugins should be installed
  • %APPDATA%/JetBrains/ReSharperPlatformVs[version] contains binary directories per experimental instance with all assemblies to run ReSharper and the plugin

Using attached folders can be of great help to track these directories while developing a ReSharper plugin.

Deployment

Both plugins can be published by calling:

# For Rider & ReSharper (Gradle)
gradlew :publishPlugin -PPluginVersion=<version> -PPublishToken=<token>

# For ReSharper (PowerShell)
powershell ./publishPlugin.ps1 -Version <version> -ApiKey <ApiKey>

Warning
The first deployment must be done through the marketplace.

resharper-rider-plugin's People

Contributors

citizenmatt avatar derigel23 avatar evan-choi avatar fornever avatar khalidabuhakmeh avatar laurentkempe avatar ludeknovy avatar matkoch avatar nudopnu avatar pagrom avatar socolin avatar ulex avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

resharper-rider-plugin's Issues

About a debugger plug-in for a Rider getting breakpoints

To make a debugger plug-in for Rider, I have looked up a lot of information but do not know where to get the data of breakpoints, such as the location of breakpoints. Now know the access method is to use the Kotlin com. Jetbrains. Rider. Test. ScriptingApi. ToggleBreakpoint access breakpoints to c #. Want to know that the Rider API can get breakpoint data directly

comman extension

First command should be with extension?
Is: dotnet new --install JetBrains.ReSharper.SamplePlugin --nuget-source ./
Should be: dotnet new --install JetBrains.ReSharper.SamplePlugin.nupkg --nuget-source ./

Latest package (2021.1.0) fails to run example plugin

Although the master branch is correctly configured and specifies a gradle distribution that works:
distributionUrl=https\://cache-redirector.jetbrains.com/services.gradle.org/distributions/gradle-7.1-all.zip

The example plugin installed using 2021.1.0 release specifies:
distributionUrl=https\://cache-redirector.jetbrains.com/services.gradle.org/distributions/gradle-6.8.3-all.zip

The commit to fix this gradle version was made recently: c4fa5f1
The project should probably release a new version to ensure the default template works.

EAP branch

Hello,

I tend to revisit this repository when there is a new Rider version out.
To see how I can update my own plugin.
Would it be possible to also have an eap branch that updates the template to support the latest EAP version?
I understand if this might be too much hassle to maintain.
Let me know what you think.

"condition `index < meta->heap_strings.size' not met" error when running from Rider on macOS

Help wanted, is there any workaround on this issue? Thanks!

Environment

  • .NET Core SDK (reflecting any global.json):
    Version: 2.2.107
    Commit: 2212cac826
  • Host (useful for support):
    Version: 2.2.5
    Commit: 0a3c9209c0
  • .NET Core SDKs installed:
    2.1.302 [/usr/local/share/dotnet/sdk]
    2.1.505 [/usr/local/share/dotnet/sdk]
    2.2.107 [/usr/local/share/dotnet/sdk]
  • .NET Core runtimes installed:
    Microsoft.AspNetCore.All 2.1.2 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All]
    Microsoft.AspNetCore.All 2.1.9 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All]
    Microsoft.AspNetCore.All 2.2.5 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All]
    Microsoft.AspNetCore.App 2.1.2 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
    Microsoft.AspNetCore.App 2.1.9 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
    Microsoft.AspNetCore.App 2.2.5 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
    Microsoft.NETCore.App 2.1.2 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
    Microsoft.NETCore.App 2.1.9 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
    Microsoft.NETCore.App 2.2.5 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
  • Mono JIT compiler version 5.18.1.3 (2018-08/fdb26b0a445 Wed Mar 20 10:02:02 EDT 2019)
  • Microsoft (R) Build Engine version 16.0.42-preview+g804bde742b for Mono
  • JetBrains Rider 2019.1.1 Build #RD-191.6733.985, built on May 1, 2019
  • JRE: 1.8.0_202-release-1483-b49 x86_64
  • JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
  • macOS 10.14.5

Step

  • Install JetBrains.ReSharper.SamplePlugin.0.9.0.nupkg
  • Run dotnet new resharper-rider-plugin --name UIWidgetsSearchFlutterDoc
  • Open the sln in Rider
  • Run the "Rider (Unix)" config from Rider

Error Message

/bin/bash gradlew :runIde
> Task :findMsBuild

> Task :compileDotNet
Microsoft (R) Build Engine version 16.0.42-preview+g804bde742b for Mono
Copyright (C) Microsoft Corporation. All rights reserved.

  Restore completed in 38.65 ms for /Users/fincher/Develop/DotNet/UIWidgetsSearchFlutterDoc/src/dotnet/ReSharperPlugin.UIWidgetsSearchFlutterDoc/ReSharperPlugin.UIWidgetsSearchFlutterDoc.csproj.
  Restore completed in 1.87 ms for /Users/fincher/Develop/DotNet/UIWidgetsSearchFlutterDoc/src/dotnet/ReSharperPlugin.UIWidgetsSearchFlutterDoc/ReSharperPlugin.UIWidgetsSearchFlutterDoc.Rider.csproj.
  Restore completed in 1.97 ms for /Users/fincher/Develop/DotNet/UIWidgetsSearchFlutterDoc/src/dotnet/ReSharperPlugin.UIWidgetsSearchFlutterDoc.Tests/ReSharperPlugin.UIWidgetsSearchFlutterDoc.Tests.csproj.
  Restore completed in 0.85 ms for /Users/fincher/Develop/DotNet/UIWidgetsSearchFlutterDoc/src/dotnet/ReSharperPlugin.UIWidgetsSearchFlutterDoc/ReSharperPlugin.UIWidgetsSearchFlutterDoc.csproj.
* Assertion at metadata.c:1048, condition `index < meta->heap_strings.size' not met


=================================================================
	Native Crash Reporting
=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

=================================================================
	Basic Fault Adddress Reporting
=================================================================
Memory around native instruction pointer (0x7fff701492c6):0x7fff701492b6  ff ff c3 90 90 90 b8 48 01 00 02 49 89 ca 0f 05  .......H...I....
0x7fff701492c6  73 08 48 89 c7 e9 87 a1 ff ff c3 55 48 89 e5 41  s.H........UH..A
0x7fff701492d6  57 41 56 41 55 41 54 53 48 81 ec 88 00 00 00 4d  WAVAUATSH......M
0x7fff701492e6  89 cf 49 89 f4 48 8d 05 76 a2 83 36 48 8b 00 48  ..I..H..v..6H..H

=================================================================
	Native stacktrace:
=================================================================
	0x10de2cb78 - /Library/Frameworks/Mono.framework/Versions/5.18.1/bin/mono : mono_dump_native_crash_info
	0x10ddd0355 - /Library/Frameworks/Mono.framework/Versions/5.18.1/bin/mono : mono_handle_native_crash
	0x7fff701f9b5d - /usr/lib/system/libsystem_platform.dylib : _sigtramp
	0x10e106950 - /Library/Frameworks/Mono.framework/Versions/5.18.1/bin/mono : mono_profiler_state
	0x7fff700b36a6 - /usr/lib/system/libsystem_c.dylib : abort
	0x10e01b277 - /Library/Frameworks/Mono.framework/Versions/5.18.1/bin/mono : monoeg_assert_abort
	0x10dffd1df - /Library/Frameworks/Mono.framework/Versions/5.18.1/bin/mono : mono_log_write_logfile
	0x10e01b5fe - /Library/Frameworks/Mono.framework/Versions/5.18.1/bin/mono : monoeg_g_logv_nofree
	0x10e01b77f - /Library/Frameworks/Mono.framework/Versions/5.18.1/bin/mono : monoeg_assertion_message
	0x10deff2d1 - /Library/Frameworks/Mono.framework/Versions/5.18.1/bin/mono : mono_metadata_string_heap
	0x10dee43b9 - /Library/Frameworks/Mono.framework/Versions/5.18.1/bin/mono : do_mono_image_load
	0x10dee49a7 - /Library/Frameworks/Mono.framework/Versions/5.18.1/bin/mono : mono_image_open_a_lot
	0x10dea6b06 - /Library/Frameworks/Mono.framework/Versions/5.18.1/bin/mono : mono_assembly_open_predicate
	0x10de9f2e1 - /Library/Frameworks/Mono.framework/Versions/5.18.1/bin/mono : ves_icall_System_Reflection_Assembly_LoadFrom
	0x10fe30ca7 - Unknown
	0x122f910fb - Unknown
	0x122f90b33 - Unknown

=================================================================
	Telemetry Dumper:
=================================================================
Pkilling 0x11a0465c0 from 0x700007123000
Pkilling 0x700006511000 from 0x700007123000
Pkilling 0x70000772c000 from 0x700007123000
Pkilling 0x70000630e000 from 0x700007123000
Pkilling 0x7000060c8000 from 0x700007123000
Pkilling 0x700007529000 from 0x700007123000
Pkilling 0x70000610b000 from 0x700007123000
Pkilling 0x700005ec5000 from 0x700007123000
Pkilling 0x700007326000 from 0x700007123000
Pkilling 0x7000059b9000 from 0x700007123000
Pkilling 0x700005cc2000 from 0x700007123000
Pkilling 0x700006f20000 from 0x700007123000
Pkilling 0x700006d1d000 from 0x700007123000
Pkilling 0x700006b1a000 from 0x700007123000
Pkilling 0x700006917000 from 0x700007123000
Pkilling 0x700006714000 from 0x700007123000
Pkilling 0x70000792f000 from 0x700007123000
Entering thread summarizer pause from 0x700007123000
Finished thread summarizer pause from 0x700007123000.

Waiting for dumping threads to resume

Debug info from gdb:


=================================================================
	External Debugger Dump:
=================================================================
(lldb) command source -s 0 '/tmp/mono-gdb-commands.7034'
Executing commands in '/tmp/mono-gdb-commands.7034'.
(lldb) process attach --pid 7034
Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "/usr/local/Cellar/python@2/2.7.15_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy.py", line 52, in <module>
    import weakref
  File "/usr/local/Cellar/python@2/2.7.15_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/weakref.py", line 14, in <module>
    from _weakref import (
ImportError: cannot import name _remove_dead_weakref
warning: (x86_64) /Library/Frameworks/Mono.framework/Versions/5.18.1/lib/mono/4.5/mscorlib.dll.dylib empty dSYM file detected, dSYM was created with an executable with no debug info.
warning: (x86_64) /Library/Frameworks/Mono.framework/Versions/5.18.1/lib/mono/4.5/System.Reflection.Metadata.dll.dylib empty dSYM file detected, dSYM was created with an executable with no debug info.
Process 7034 stopped
* thread #1, name = 'tid_307', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
    frame #0: 0x00007fff7014686a libsystem_kernel.dylib`__psynch_cvwait + 10
libsystem_kernel.dylib`__psynch_cvwait:
->  0x7fff7014686a <+10>: jae    0x7fff70146874            ; <+20>
    0x7fff7014686c <+12>: movq   %rax, %rdi
    0x7fff7014686f <+15>: jmp    0x7fff70143457            ; cerror_nocancel
    0x7fff70146874 <+20>: retq   
Target 0: (mono) stopped.

Executable module set to "/Library/Frameworks/Mono.framework/Versions/5.18.1/bin/mono".
Architecture set to: x86_64h-apple-macosx-.
(lldb) thread list
Process 7034 stopped
* thread #1: tid = 0x6755a, 0x00007fff7014686a libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'tid_307', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
  thread #2: tid = 0x6755b, 0x00007fff7014686a libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'SGen worker'
  thread #3: tid = 0x6755c, 0x00007fff70143266 libsystem_kernel.dylib`semaphore_wait_trap + 10, name = 'Finalizer'
  thread #4: tid = 0x6755d, 0x00007fff70144bfe libsystem_kernel.dylib`__workq_kernreturn + 10
  thread #5: tid = 0x6755e, 0x00007fff70144bfe libsystem_kernel.dylib`__workq_kernreturn + 10
  thread #6: tid = 0x67563, 0x00007fff7014686a libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'tid_5203'
  thread #7: tid = 0x67564, 0x00007fff7014327e libsystem_kernel.dylib`semaphore_timedwait_trap + 10, name = 'Thread Pool Worker'
  thread #8: tid = 0x67565, 0x00007fff7014327e libsystem_kernel.dylib`semaphore_timedwait_trap + 10, name = 'Thread Pool Worker'
  thread #9: tid = 0x67566, 0x00007fff7014686a libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'In-proc Node (Default)'
  thread #10: tid = 0x67567, 0x00007fff7014686a libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'RequestBuilder thread'
  thread #11: tid = 0x67568, 0x00007fff7014327e libsystem_kernel.dylib`semaphore_timedwait_trap + 10, name = 'Thread Pool Worker'
  thread #12: tid = 0x67569, 0x00007fff7014327e libsystem_kernel.dylib`semaphore_timedwait_trap + 10, name = 'Thread Pool Worker'
  thread #13: tid = 0x6756a, 0x00007fff7014327e libsystem_kernel.dylib`semaphore_timedwait_trap + 10, name = 'Thread Pool Worker'
  thread #14: tid = 0x6756b, 0x00007fff7014686a libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'Thread Pool Worker'
  thread #15: tid = 0x6756e, 0x00007fff7014327e libsystem_kernel.dylib`semaphore_timedwait_trap + 10, name = 'Thread Pool Worker'
  thread #16: tid = 0x6756f, 0x00007fff7014327e libsystem_kernel.dylib`semaphore_timedwait_trap + 10, name = 'Thread Pool Worker'
  thread #17: tid = 0x67570, 0x00007fff70148356 libsystem_kernel.dylib`__wait4 + 10, name = 'RequestBuilder thread'
  thread #18: tid = 0x67572, 0x00007fff7014327e libsystem_kernel.dylib`semaphore_timedwait_trap + 10, name = 'Thread Pool Worker'
  thread #19: tid = 0x67575, 0x00007fff7014686a libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'RequestBuilder thread'
  thread #20: tid = 0x6757a, 0x00007fff7014327e libsystem_kernel.dylib`semaphore_timedwait_trap + 10, name = 'Thread Pool Worker'
  thread #21: tid = 0x6757b, 0x00007fff7014686a libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'Thread Pool Worker'
(lldb) thread backtrace all
* thread #1, name = 'tid_307', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
  * frame #0: 0x00007fff7014686a libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #1: 0x00007fff7020556e libsystem_pthread.dylib`_pthread_cond_wait + 722
    frame #2: 0x000000010e004fa0 mono`mono_os_cond_timedwait [inlined] mono_os_cond_wait(cond=0x00007fbf15808720, mutex=0x00007fbf158086e0) at mono-os-mutex.h:173:8 [opt]
    frame #3: 0x000000010e004f95 mono`mono_os_cond_timedwait(cond=0x00007fbf15808720, mutex=0x00007fbf158086e0, timeout_ms=4294967295) at mono-os-mutex.c:32 [opt]
    frame #4: 0x000000010df6b769 mono`mono_w32handle_timedwait_signal_handle at mono-coop-mutex.h:102:8 [opt]
    frame #5: 0x000000010df6b73c mono`mono_w32handle_timedwait_signal_handle [inlined] mono_w32handle_timedwait_signal_naked(poll=0, alerted=<unavailable>) at w32handle.c:643 [opt]
    frame #6: 0x000000010df6b73c mono`mono_w32handle_timedwait_signal_handle(handle_data=<unavailable>, timeout=<unavailable>, poll=0, alerted=<unavailable>) at w32handle.c:758 [opt]
    frame #7: 0x000000010df6b631 mono`mono_w32handle_wait_one(handle=<unavailable>, timeout=<unavailable>, alertable=<unavailable>) at w32handle.c:876:13 [opt]
    frame #8: 0x000000010df6b8b2 mono`mono_w32handle_wait_multiple(handles=0x00007ffee1ee84a0, nhandles=1, waitall=0, timeout=<unavailable>, alertable=1) at w32handle.c:914:10 [opt]
    frame #9: 0x000000010df47577 mono`ves_icall_System_Threading_WaitHandle_Wait_internal(handles=<unavailable>, numhandles=<unavailable>, waitall=<unavailable>, timeout=-1, error=0x00007ffee1ee83c0) at threads.c:2126:9 [opt]
    frame #10: 0x000000010fed408d
    frame #11: 0x00000001142660f0 mscorlib.dll.dylib`System_Threading_WaitHandle_InternalWaitOne_System_Runtime_InteropServices_SafeHandle_long_bool_bool + 64
    frame #12: 0x000000011426609c mscorlib.dll.dylib`System_Threading_WaitHandle_WaitOne_long_bool + 44
    frame #13: 0x0000000114265f03 mscorlib.dll.dylib`System_Threading_WaitHandle_WaitOne_int_bool + 51
    frame #14: 0x0000000114266001 mscorlib.dll.dylib`System_Threading_WaitHandle_WaitOne + 33
    frame #15: 0x0000000114bd81e0
    frame #16: 0x000000010fe8aadb
    frame #17: 0x000000010f6da123
    frame #18: 0x000000010f6d405b
    frame #19: 0x000000010dd29083 mono`mono_jit_runtime_invoke(method=<unavailable>, obj=<unavailable>, params=0x00007ffee1ee8fb8, exc=0x00000000ffffffff, error=<unavailable>) at mini-runtime.c:3148:12 [opt]
    frame #20: 0x000000010df273f4 mono`do_runtime_invoke(method=0x00007fbf15513eb8, obj=0x0000000000000000, params=0x00007ffee1ee8fb8, exc=0x0000000000000000, error=0x00007ffee1ee8ff0) at object.c:2960:11 [opt]
    frame #21: 0x000000010df2aecc mono`do_exec_main_checked [inlined] mono_runtime_invoke_checked(method=<unavailable>, obj=<unavailable>, params=<unavailable>, error=0x00007ffee1ee8ff0) at object.c:3128:9 [opt]
    frame #22: 0x000000010df2aebd mono`do_exec_main_checked(method=0x00007fbf15513eb8, args=<unavailable>, error=0x00007ffee1ee8ff0) at object.c:4949 [opt]
    frame #23: 0x000000010dd9004d mono`mono_jit_exec at driver.g.c:1236:13 [opt]
    frame #24: 0x000000010dd9003f mono`mono_jit_exec(domain=<unavailable>, assembly=<unavailable>, argc=5, argv=0x00007ffee1ee93b0) at driver.g.c:1195 [opt]
    frame #25: 0x000000010dd9322f mono`mono_main [inlined] main_thread_handler at driver.g.c:1313:3 [opt]
    frame #26: 0x000000010dd931f8 mono`mono_main(argc=6, argv=<unavailable>) at driver.g.c:2483 [opt]
    frame #27: 0x000000010dd17ea8 mono`main [inlined] mono_main_with_options(argc=<unavailable>, argv=<unavailable>) at main.c:50:9 [opt]
    frame #28: 0x000000010dd17e94 mono`main(argc=6, argv=<unavailable>) at main.c:405 [opt]
    frame #29: 0x00007fff7000e3d5 libdyld.dylib`start + 1
    frame #30: 0x00007fff7000e3d5 libdyld.dylib`start + 1
  thread #2, name = 'SGen worker'
    frame #0: 0x00007fff7014686a libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #1: 0x00007fff7020556e libsystem_pthread.dylib`_pthread_cond_wait + 722
    frame #2: 0x000000010dff443e mono`thread_func [inlined] mono_os_cond_wait(mutex=<unavailable>) at mono-os-mutex.h:173:8 [opt]
    frame #3: 0x000000010dff442b mono`thread_func at sgen-thread-pool.c:165 [opt]
    frame #4: 0x000000010dff441d mono`thread_func(data=0x0000000000000000) at sgen-thread-pool.c:196 [opt]
    frame #5: 0x00007fff702022eb libsystem_pthread.dylib`_pthread_body + 126
    frame #6: 0x00007fff70205249 libsystem_pthread.dylib`_pthread_start + 66
    frame #7: 0x00007fff7020140d libsystem_pthread.dylib`thread_start + 13
  thread #3, name = 'Finalizer'
    frame #0: 0x00007fff70143266 libsystem_kernel.dylib`semaphore_wait_trap + 10
    frame #1: 0x000000010dfa1cfa mono`finalizer_thread [inlined] mono_os_sem_wait(flags=MONO_SEM_FLAGS_ALERTABLE) at mono-os-semaphore.h:90:8 [opt]
    frame #2: 0x000000010dfa1cef mono`finalizer_thread at mono-coop-semaphore.h:43 [opt]
    frame #3: 0x000000010dfa1cd5 mono`finalizer_thread(unused=<unavailable>) at gc.c:918 [opt]
    frame #4: 0x000000010df4d173 mono`start_wrapper [inlined] start_wrapper_internal at threads.c:1155:3 [opt]
    frame #5: 0x000000010df4d0e3 mono`start_wrapper(data=0x00007fbf1550f6c0) at threads.c:1215 [opt]
    frame #6: 0x00007fff702022eb libsystem_pthread.dylib`_pthread_body + 126
    frame #7: 0x00007fff70205249 libsystem_pthread.dylib`_pthread_start + 66
    frame #8: 0x00007fff7020140d libsystem_pthread.dylib`thread_start + 13
  thread #4
    frame #0: 0x00007fff70144bfe libsystem_kernel.dylib`__workq_kernreturn + 10
    frame #1: 0x00007fff70201636 libsystem_pthread.dylib`_pthread_wqthread + 458
    frame #2: 0x00007fff702013fd libsystem_pthread.dylib`start_wqthread + 13
  thread #5
    frame #0: 0x00007fff702013f0 libsystem_pthread.dylib`start_wqthread
  thread #6, name = 'tid_5203'
    frame #0: 0x00007fff7014686a libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #1: 0x00007fff702055a1 libsystem_pthread.dylib`_pthread_cond_wait + 773
    frame #2: 0x000000010e004f84 mono`mono_os_cond_timedwait(cond=0x000000010e105b40, mutex=0x000000010e105b00, timeout_ms=500) at mono-os-mutex.c:44:8 [opt]
    frame #3: 0x000000010e0103b7 mono`mono_thread_info_sleep at mono-coop-mutex.h:102:8 [opt]
    frame #4: 0x000000010e01038b mono`mono_thread_info_sleep [inlined] sleep_interruptable(ms=<unavailable>, alerted=<unavailable>) at mono-threads.c:1560 [opt]
    frame #5: 0x000000010e01033d mono`mono_thread_info_sleep(ms=500, alerted=<unavailable>) at mono-threads.c:1592 [opt]
    frame #6: 0x000000010de99e63 mono`monitor_thread(unused=<unavailable>) at threadpool-worker-default.c:708:8 [opt]
    frame #7: 0x000000010df4d173 mono`start_wrapper [inlined] start_wrapper_internal at threads.c:1155:3 [opt]
    frame #8: 0x000000010df4d0e3 mono`start_wrapper(data=0x00007fbf15447a10) at threads.c:1215 [opt]
    frame #9: 0x00007fff702022eb libsystem_pthread.dylib`_pthread_body + 126
    frame #10: 0x00007fff70205249 libsystem_pthread.dylib`_pthread_start + 66
    frame #11: 0x00007fff7020140d libsystem_pthread.dylib`thread_start + 13
  thread #7, name = 'Thread Pool Worker'
    frame #0: 0x00007fff7014327e libsystem_kernel.dylib`semaphore_timedwait_trap + 10
    frame #1: 0x000000010de9a43d mono`worker_thread [inlined] mono_os_sem_timedwait(flags=MONO_SEM_FLAGS_ALERTABLE) at mono-os-semaphore.h:124:8 [opt]
    frame #2: 0x000000010de9a3bf mono`worker_thread at mono-coop-semaphore.h:57 [opt]
    frame #3: 0x000000010de9a3a5 mono`worker_thread at threadpool-worker-default.c:391 [opt]
    frame #4: 0x000000010de9a2b1 mono`worker_thread(unused=<unavailable>) at threadpool-worker-default.c:490 [opt]
    frame #5: 0x000000010df4d173 mono`start_wrapper [inlined] start_wrapper_internal at threads.c:1155:3 [opt]
    frame #6: 0x000000010df4d0e3 mono`start_wrapper(data=0x00007fbf15447ac0) at threads.c:1215 [opt]
    frame #7: 0x00007fff702022eb libsystem_pthread.dylib`_pthread_body + 126
    frame #8: 0x00007fff70205249 libsystem_pthread.dylib`_pthread_start + 66
    frame #9: 0x00007fff7020140d libsystem_pthread.dylib`thread_start + 13
  thread #8, name = 'Thread Pool Worker'
    frame #0: 0x00007fff7014327e libsystem_kernel.dylib`semaphore_timedwait_trap + 10
    frame #1: 0x000000010de9a43d mono`worker_thread [inlined] mono_os_sem_timedwait(flags=MONO_SEM_FLAGS_ALERTABLE) at mono-os-semaphore.h:124:8 [opt]
    frame #2: 0x000000010de9a3bf mono`worker_thread at mono-coop-semaphore.h:57 [opt]
    frame #3: 0x000000010de9a3a5 mono`worker_thread at threadpool-worker-default.c:391 [opt]
    frame #4: 0x000000010de9a2b1 mono`worker_thread(unused=<unavailable>) at threadpool-worker-default.c:490 [opt]
    frame #5: 0x000000010df4d173 mono`start_wrapper [inlined] start_wrapper_internal at threads.c:1155:3 [opt]
    frame #6: 0x000000010df4d0e3 mono`start_wrapper(data=0x00007fbf1567fbd0) at threads.c:1215 [opt]
    frame #7: 0x00007fff702022eb libsystem_pthread.dylib`_pthread_body + 126
    frame #8: 0x00007fff70205249 libsystem_pthread.dylib`_pthread_start + 66
    frame #9: 0x00007fff7020140d libsystem_pthread.dylib`thread_start + 13
  thread #9, name = 'In-proc Node (Default)'
    frame #0: 0x00007fff7014686a libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #1: 0x00007fff7020556e libsystem_pthread.dylib`_pthread_cond_wait + 722
    frame #2: 0x000000010e004fa0 mono`mono_os_cond_timedwait [inlined] mono_os_cond_wait(cond=0x000000010e0f5f40, mutex=0x000000010e0f5f00) at mono-os-mutex.h:173:8 [opt]
    frame #3: 0x000000010e004f95 mono`mono_os_cond_timedwait(cond=0x000000010e0f5f40, mutex=0x000000010e0f5f00, timeout_ms=4294967295) at mono-os-mutex.c:32 [opt]
    frame #4: 0x000000010df6c338 mono`mono_w32handle_timedwait_signal at mono-coop-mutex.h:102:8 [opt]
    frame #5: 0x000000010df6c308 mono`mono_w32handle_timedwait_signal [inlined] mono_w32handle_timedwait_signal_naked(timeout=<unavailable>, poll=<unavailable>, alerted=<unavailable>) at w32handle.c:643 [opt]
    frame #6: 0x000000010df6c2f4 mono`mono_w32handle_timedwait_signal(timeout=4294967295, poll=<unavailable>, alerted=0x000070000610a1c0) at w32handle.c:703 [opt]
    frame #7: 0x000000010df6bdad mono`mono_w32handle_wait_multiple(handles=<unavailable>, nhandles=<unavailable>, waitall=<unavailable>, timeout=<unavailable>, alertable=<unavailable>) at w32handle.c:1064:14 [opt]
    frame #8: 0x000000010df47577 mono`ves_icall_System_Threading_WaitHandle_Wait_internal(handles=<unavailable>, numhandles=<unavailable>, waitall=<unavailable>, timeout=-1, error=0x000070000610a7d0) at threads.c:2126:9 [opt]
    frame #9: 0x000000010fed408d
    frame #10: 0x0000000114266622 mscorlib.dll.dylib`System_Threading_WaitHandle_WaitAny_System_Threading_WaitHandle___int_bool + 226
    frame #11: 0x000000011426688c mscorlib.dll.dylib`System_Threading_WaitHandle_WaitAny_System_Threading_WaitHandle__ + 28
    frame #12: 0x00000001169a0bbb
  thread #10, name = 'RequestBuilder thread'
    frame #0: 0x00007fff7014686a libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #1: 0x00007fff7020556e libsystem_pthread.dylib`_pthread_cond_wait + 722
    frame #2: 0x000000010e004fa0 mono`mono_os_cond_timedwait [inlined] mono_os_cond_wait(cond=0x00007fbf158091c0, mutex=0x00007fbf15809180) at mono-os-mutex.h:173:8 [opt]
    frame #3: 0x000000010e004f95 mono`mono_os_cond_timedwait(cond=0x00007fbf158091c0, mutex=0x00007fbf15809180, timeout_ms=4294967295) at mono-os-mutex.c:32 [opt]
    frame #4: 0x000000010df6b769 mono`mono_w32handle_timedwait_signal_handle at mono-coop-mutex.h:102:8 [opt]
    frame #5: 0x000000010df6b73c mono`mono_w32handle_timedwait_signal_handle [inlined] mono_w32handle_timedwait_signal_naked(poll=0, alerted=<unavailable>) at w32handle.c:643 [opt]
    frame #6: 0x000000010df6b73c mono`mono_w32handle_timedwait_signal_handle(handle_data=<unavailable>, timeout=<unavailable>, poll=0, alerted=<unavailable>) at w32handle.c:758 [opt]
    frame #7: 0x000000010df6b631 mono`mono_w32handle_wait_one(handle=<unavailable>, timeout=<unavailable>, alertable=<unavailable>) at w32handle.c:876:13 [opt]
    frame #8: 0x000000010dfa31ee mono`ves_icall_System_Threading_Monitor_Monitor_wait(obj=0x0000000117376f20, ms=4294967295) at monitor.c:1387:8 [opt]
    frame #9: 0x0000000116ba5a1e
    frame #10: 0x000000011425e06d mscorlib.dll.dylib`System_Threading_Monitor_Wait_object_int_bool + 45
    frame #11: 0x000000011425e0f4 mscorlib.dll.dylib`System_Threading_Monitor_Wait_object_int + 20
    frame #12: 0x00000001142564ca mscorlib.dll.dylib`System_Threading_SemaphoreSlim_WaitUntilCountOrTimeout_int_uint_System_Threading_CancellationToken + 106
    frame #13: 0x000000011425621c mscorlib.dll.dylib`System_Threading_SemaphoreSlim_Wait_int_System_Threading_CancellationToken + 652
    frame #14: 0x00000001169bb3bb
    frame #15: 0x00000001169baa43
    frame #16: 0x00000001169b9c02
    frame #17: 0x000000011425ed57 mscorlib.dll.dylib`System_Threading_ThreadHelper_ThreadStart_Context_object + 151
    frame #18: 0x000000011425ca67 mscorlib.dll.dylib`System_Threading_ExecutionContext_RunInternal_System_Threading_ExecutionContext_System_Threading_ContextCallback_object_bool + 407
    frame #19: 0x000000011425c8c1 mscorlib.dll.dylib`System_Threading_ExecutionContext_Run_System_Threading_ExecutionContext_System_Threading_ContextCallback_object_bool + 33
    frame #20: 0x000000011425c854 mscorlib.dll.dylib`System_Threading_ExecutionContext_Run_System_Threading_ExecutionContext_System_Threading_ContextCallback_object + 84
    frame #21: 0x000000011425ee9f mscorlib.dll.dylib`System_Threading_ThreadHelper_ThreadStart + 47
    frame #22: 0x000000010f6df449
    frame #23: 0x000000010dd29083 mono`mono_jit_runtime_invoke(method=<unavailable>, obj=<unavailable>, params=0x000070000630dec8, exc=0x000000011842b5b0, error=<unavailable>) at mini-runtime.c:3148:12 [opt]
    frame #24: 0x000000010df273f4 mono`do_runtime_invoke(method=0x00007fbf18a364d8, obj=0x00000001103d80e0, params=0x000070000630dec8, exc=0x0000000000000000, error=0x000070000630de60) at object.c:2960:11 [opt]
    frame #25: 0x000000010df291bb mono`mono_runtime_delegate_try_invoke [inlined] mono_runtime_invoke_checked(params=<unavailable>, error=<unavailable>) at object.c:3128:9 [opt]
    frame #26: 0x000000010df291b3 mono`mono_runtime_delegate_try_invoke(delegate=0x00000001103d80e0, params=0x000070000630dec8, exc=0x0000000000000000, error=0x000070000630de60) at object.c:4230 [opt]
    frame #27: 0x000000010df4d19e mono`start_wrapper at threads.c:1163:3 [opt]
    frame #28: 0x000000010df4d0e3 mono`start_wrapper(data=0x00007fbf157eaad0) at threads.c:1215 [opt]
    frame #29: 0x00007fff702022eb libsystem_pthread.dylib`_pthread_body + 126
    frame #30: 0x00007fff70205249 libsystem_pthread.dylib`_pthread_start + 66
    frame #31: 0x00007fff7020140d libsystem_pthread.dylib`thread_start + 13
  thread #11, name = 'Thread Pool Worker'
    frame #0: 0x00007fff7014327e libsystem_kernel.dylib`semaphore_timedwait_trap + 10
    frame #1: 0x000000010de9a43d mono`worker_thread [inlined] mono_os_sem_timedwait(flags=MONO_SEM_FLAGS_ALERTABLE) at mono-os-semaphore.h:124:8 [opt]
    frame #2: 0x000000010de9a3bf mono`worker_thread at mono-coop-semaphore.h:57 [opt]
    frame #3: 0x000000010de9a3a5 mono`worker_thread at threadpool-worker-default.c:391 [opt]
    frame #4: 0x000000010de9a2b1 mono`worker_thread(unused=<unavailable>) at threadpool-worker-default.c:490 [opt]
    frame #5: 0x000000010df4d173 mono`start_wrapper [inlined] start_wrapper_internal at threads.c:1155:3 [opt]
    frame #6: 0x000000010df4d0e3 mono`start_wrapper(data=0x00007fbf15657620) at threads.c:1215 [opt]
    frame #7: 0x00007fff702022eb libsystem_pthread.dylib`_pthread_body + 126
    frame #8: 0x00007fff70205249 libsystem_pthread.dylib`_pthread_start + 66
    frame #9: 0x00007fff7020140d libsystem_pthread.dylib`thread_start + 13
  thread #12, name = 'Thread Pool Worker'
    frame #0: 0x00007fff7014327e libsystem_kernel.dylib`semaphore_timedwait_trap + 10
    frame #1: 0x000000010de9a43d mono`worker_thread [inlined] mono_os_sem_timedwait(flags=MONO_SEM_FLAGS_ALERTABLE) at mono-os-semaphore.h:124:8 [opt]
    frame #2: 0x000000010de9a3bf mono`worker_thread at mono-coop-semaphore.h:57 [opt]
    frame #3: 0x000000010de9a3a5 mono`worker_thread at threadpool-worker-default.c:391 [opt]
    frame #4: 0x000000010de9a2b1 mono`worker_thread(unused=<unavailable>) at threadpool-worker-default.c:490 [opt]
    frame #5: 0x000000010df4d173 mono`start_wrapper [inlined] start_wrapper_internal at threads.c:1155:3 [opt]
    frame #6: 0x000000010df4d0e3 mono`start_wrapper(data=0x00007fbf1c0554b0) at threads.c:1215 [opt]
    frame #7: 0x00007fff702022eb libsystem_pthread.dylib`_pthread_body + 126
    frame #8: 0x00007fff70205249 libsystem_pthread.dylib`_pthread_start + 66
    frame #9: 0x00007fff7020140d libsystem_pthread.dylib`thread_start + 13
  thread #13, name = 'Thread Pool Worker'
    frame #0: 0x00007fff7014327e libsystem_kernel.dylib`semaphore_timedwait_trap + 10
    frame #1: 0x000000010de9a43d mono`worker_thread [inlined] mono_os_sem_timedwait(flags=MONO_SEM_FLAGS_ALERTABLE) at mono-os-semaphore.h:124:8 [opt]
    frame #2: 0x000000010de9a3bf mono`worker_thread at mono-coop-semaphore.h:57 [opt]
    frame #3: 0x000000010de9a3a5 mono`worker_thread at threadpool-worker-default.c:391 [opt]
    frame #4: 0x000000010de9a2b1 mono`worker_thread(unused=<unavailable>) at threadpool-worker-default.c:490 [opt]
    frame #5: 0x000000010df4d173 mono`start_wrapper [inlined] start_wrapper_internal at threads.c:1155:3 [opt]
    frame #6: 0x000000010df4d0e3 mono`start_wrapper(data=0x00007fbf154480f0) at threads.c:1215 [opt]
    frame #7: 0x00007fff702022eb libsystem_pthread.dylib`_pthread_body + 126
    frame #8: 0x00007fff70205249 libsystem_pthread.dylib`_pthread_start + 66
    frame #9: 0x00007fff7020140d libsystem_pthread.dylib`thread_start + 13
  thread #14, name = 'Thread Pool Worker'
    frame #0: 0x00007fff7014686a libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #1: 0x00007fff7020556e libsystem_pthread.dylib`_pthread_cond_wait + 722
    frame #2: 0x000000010e004fa0 mono`mono_os_cond_timedwait [inlined] mono_os_cond_wait(cond=0x000000010e0f5f40, mutex=0x000000010e0f5f00) at mono-os-mutex.h:173:8 [opt]
    frame #3: 0x000000010e004f95 mono`mono_os_cond_timedwait(cond=0x000000010e0f5f40, mutex=0x000000010e0f5f00, timeout_ms=4294967295) at mono-os-mutex.c:32 [opt]
    frame #4: 0x000000010df6c338 mono`mono_w32handle_timedwait_signal at mono-coop-mutex.h:102:8 [opt]
    frame #5: 0x000000010df6c308 mono`mono_w32handle_timedwait_signal [inlined] mono_w32handle_timedwait_signal_naked(timeout=<unavailable>, poll=<unavailable>, alerted=<unavailable>) at w32handle.c:643 [opt]
    frame #6: 0x000000010df6c2f4 mono`mono_w32handle_timedwait_signal(timeout=4294967295, poll=<unavailable>, alerted=0x0000700006b18fc0) at w32handle.c:703 [opt]
    frame #7: 0x000000010df6bdad mono`mono_w32handle_wait_multiple(handles=<unavailable>, nhandles=<unavailable>, waitall=<unavailable>, timeout=<unavailable>, alertable=<unavailable>) at w32handle.c:1064:14 [opt]
    frame #8: 0x000000010df47577 mono`ves_icall_System_Threading_WaitHandle_Wait_internal(handles=<unavailable>, numhandles=<unavailable>, waitall=<unavailable>, timeout=-1, error=0x0000700006b195d0) at threads.c:2126:9 [opt]
    frame #9: 0x000000010fed408d
    frame #10: 0x0000000114266622 mscorlib.dll.dylib`System_Threading_WaitHandle_WaitAny_System_Threading_WaitHandle___int_bool + 226
    frame #11: 0x00000001142667f5 mscorlib.dll.dylib`System_Threading_WaitHandle_WaitAny_System_Threading_WaitHandle___System_TimeSpan_bool + 85
    frame #12: 0x000000011426a340 mscorlib.dll.dylib`System_Threading_RegisteredWaitHandle_Wait_object + 240
  thread #15, name = 'Thread Pool Worker'
    frame #0: 0x00007fff7014327e libsystem_kernel.dylib`semaphore_timedwait_trap + 10
    frame #1: 0x000000010de9a43d mono`worker_thread [inlined] mono_os_sem_timedwait(flags=MONO_SEM_FLAGS_ALERTABLE) at mono-os-semaphore.h:124:8 [opt]
    frame #2: 0x000000010de9a3bf mono`worker_thread at mono-coop-semaphore.h:57 [opt]
    frame #3: 0x000000010de9a3a5 mono`worker_thread at threadpool-worker-default.c:391 [opt]
    frame #4: 0x000000010de9a2b1 mono`worker_thread(unused=<unavailable>) at threadpool-worker-default.c:490 [opt]
    frame #5: 0x000000010df4d173 mono`start_wrapper [inlined] start_wrapper_internal at threads.c:1155:3 [opt]
    frame #6: 0x000000010df4d0e3 mono`start_wrapper(data=0x00007fbf175002c0) at threads.c:1215 [opt]
    frame #7: 0x00007fff702022eb libsystem_pthread.dylib`_pthread_body + 126
    frame #8: 0x00007fff70205249 libsystem_pthread.dylib`_pthread_start + 66
    frame #9: 0x00007fff7020140d libsystem_pthread.dylib`thread_start + 13
  thread #16, name = 'Thread Pool Worker'
    frame #0: 0x00007fff7014327e libsystem_kernel.dylib`semaphore_timedwait_trap + 10
    frame #1: 0x000000010de9a43d mono`worker_thread [inlined] mono_os_sem_timedwait(flags=MONO_SEM_FLAGS_ALERTABLE) at mono-os-semaphore.h:124:8 [opt]
    frame #2: 0x000000010de9a3bf mono`worker_thread at mono-coop-semaphore.h:57 [opt]
    frame #3: 0x000000010de9a3a5 mono`worker_thread at threadpool-worker-default.c:391 [opt]
    frame #4: 0x000000010de9a2b1 mono`worker_thread(unused=<unavailable>) at threadpool-worker-default.c:490 [opt]
    frame #5: 0x000000010df4d173 mono`start_wrapper [inlined] start_wrapper_internal at threads.c:1155:3 [opt]
    frame #6: 0x000000010df4d0e3 mono`start_wrapper(data=0x00007fbf1c132400) at threads.c:1215 [opt]
    frame #7: 0x00007fff702022eb libsystem_pthread.dylib`_pthread_body + 126
    frame #8: 0x00007fff70205249 libsystem_pthread.dylib`_pthread_start + 66
    frame #9: 0x00007fff7020140d libsystem_pthread.dylib`thread_start + 13
  thread #17, name = 'RequestBuilder thread'
    frame #0: 0x00007fff70148356 libsystem_kernel.dylib`__wait4 + 10
    frame #1: 0x000000010de2cdd0 mono`mono_dump_native_crash_info at mini-posix.c:1112:3 [opt]
    frame #2: 0x000000010de2cb14 mono`mono_dump_native_crash_info(signal=<unavailable>, ctx=<unavailable>, info=<unavailable>) at mini-posix.c:1149 [opt]
    frame #3: 0x000000010ddd0355 mono`mono_handle_native_crash(signal="SIGABRT", ctx=0x000070000711e3c0, info=0x000070000711e358) at mini-exceptions.c:3290:2 [opt]
    frame #4: 0x00007fff701f9b5d libsystem_platform.dylib`_sigtramp + 29
    frame #5: 0x00007fff701492c7 libsystem_kernel.dylib`__pthread_kill + 11
    frame #6: 0x00007fff70204bf1 libsystem_pthread.dylib`pthread_kill + 284
    frame #7: 0x00007fff700b36a6 libsystem_c.dylib`abort + 127
    frame #8: 0x000000010e01b277 mono`monoeg_assert_abort at goutput.c:57:3 [opt]
    frame #9: 0x000000010dffd1df mono`mono_log_write_logfile(log_domain=<unavailable>, level=<unavailable>, hdr=<unavailable>, message="* Assertion at metadata.c:1048, condition `index < meta->heap_strings.size' not met\n") at mono-log-common.c:135:3 [opt]
    frame #10: 0x000000010e01b5fe mono`monoeg_g_logv_nofree [inlined] monoeg_g_logstr(log_domain=0x0000000000000000, log_level=G_LOG_LEVEL_ERROR, msg=<unavailable>) at goutput.c:134:2 [opt]
    frame #11: 0x000000010e01b5d5 mono`monoeg_g_logv_nofree(log_domain=0x0000000000000000, log_level=G_LOG_LEVEL_ERROR, format="* Assertion at %s:%d, condition `%s' not met\n", args=<unavailable>) at goutput.c:149 [opt]
    frame #12: 0x000000010e01b77f mono`monoeg_assertion_message(format=<unavailable>) at goutput.c:184:22 [opt]
    frame #13: 0x000000010deff2d1 mono`mono_metadata_string_heap(meta=<unavailable>, index=<unavailable>) at metadata.c:1048:2 [opt]
    frame #14: 0x000000010dee43b9 mono`do_mono_image_load [inlined] mono_image_load_names(image=0x00007fbf161ddc00) at image.c:1081:26 [opt]
    frame #15: 0x000000010dee4390 mono`do_mono_image_load(image=0x00007fbf161ddc00, status=<unavailable>, care_about_cli=<unavailable>, care_about_pecoff=1) at image.c:1392 [opt]
    frame #16: 0x000000010dee49a7 mono`mono_image_open_a_lot(fname="/Users/fincher/.nuget/packages/jetbrains.psi.features.diagramming/191.0.20190429.185738/build/net461/../../DotFiles/yWorks.yFilesWPF.Viewer.dll", status=<unavailable>, refonly=1, load_from_context=1) at image.c:1819:10 [opt]
    frame #17: 0x000000010dea6b06 mono`mono_assembly_open_predicate(filename="/Users/fincher/.nuget/packages/jetbrains.psi.features.diagramming/191.0.20190429.185738/build/net461/../../DotFiles/yWorks.yFilesWPF.Viewer.dll", asmctx=<unavailable>, predicate=<unavailable>, user_data=<unavailable>, requesting_assembly=0x0000000000000000, status=<unavailable>) at assembly.c:2295:11 [opt]
    frame #18: 0x000000010de9f2e1 mono`ves_icall_System_Reflection_Assembly_LoadFrom(fname=MonoStringHandle @ rbx, refOnly='\x01', error=0x000070000711ed60) at appdomain.c:2336:22 [opt]
    frame #19: 0x000000010fe30ca7
    frame #20: 0x0000000122f910fb
    frame #21: 0x0000000122f90b33
  thread #18, name = 'Thread Pool Worker'
    frame #0: 0x00007fff7014327e libsystem_kernel.dylib`semaphore_timedwait_trap + 10
    frame #1: 0x000000010de9a43d mono`worker_thread [inlined] mono_os_sem_timedwait(flags=MONO_SEM_FLAGS_ALERTABLE) at mono-os-semaphore.h:124:8 [opt]
    frame #2: 0x000000010de9a3bf mono`worker_thread at mono-coop-semaphore.h:57 [opt]
    frame #3: 0x000000010de9a3a5 mono`worker_thread at threadpool-worker-default.c:391 [opt]
    frame #4: 0x000000010de9a2b1 mono`worker_thread(unused=<unavailable>) at threadpool-worker-default.c:490 [opt]
    frame #5: 0x000000010df4d173 mono`start_wrapper [inlined] start_wrapper_internal at threads.c:1155:3 [opt]
    frame #6: 0x000000010df4d0e3 mono`start_wrapper(data=0x00007fbf1c1418c0) at threads.c:1215 [opt]
    frame #7: 0x00007fff702022eb libsystem_pthread.dylib`_pthread_body + 126
    frame #8: 0x00007fff70205249 libsystem_pthread.dylib`_pthread_start + 66
    frame #9: 0x00007fff7020140d libsystem_pthread.dylib`thread_start + 13
  thread #19, name = 'RequestBuilder thread'
    frame #0: 0x00007fff7014686a libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #1: 0x00007fff7020556e libsystem_pthread.dylib`_pthread_cond_wait + 722
    frame #2: 0x000000010e004fa0 mono`mono_os_cond_timedwait [inlined] mono_os_cond_wait(cond=0x00007fbf158083f0, mutex=0x00007fbf158083b0) at mono-os-mutex.h:173:8 [opt]
    frame #3: 0x000000010e004f95 mono`mono_os_cond_timedwait(cond=0x00007fbf158083f0, mutex=0x00007fbf158083b0, timeout_ms=4294967295) at mono-os-mutex.c:32 [opt]
    frame #4: 0x000000010df6b769 mono`mono_w32handle_timedwait_signal_handle at mono-coop-mutex.h:102:8 [opt]
    frame #5: 0x000000010df6b73c mono`mono_w32handle_timedwait_signal_handle [inlined] mono_w32handle_timedwait_signal_naked(poll=0, alerted=<unavailable>) at w32handle.c:643 [opt]
    frame #6: 0x000000010df6b73c mono`mono_w32handle_timedwait_signal_handle(handle_data=<unavailable>, timeout=<unavailable>, poll=0, alerted=<unavailable>) at w32handle.c:758 [opt]
    frame #7: 0x000000010df6b631 mono`mono_w32handle_wait_one(handle=<unavailable>, timeout=<unavailable>, alertable=<unavailable>) at w32handle.c:876:13 [opt]
    frame #8: 0x000000010dfa31ee mono`ves_icall_System_Threading_Monitor_Monitor_wait(obj=0x0000000117376f20, ms=4294967295) at monitor.c:1387:8 [opt]
    frame #9: 0x0000000116ba5a1e
    frame #10: 0x000000011425e06d mscorlib.dll.dylib`System_Threading_Monitor_Wait_object_int_bool + 45
    frame #11: 0x000000011425e0f4 mscorlib.dll.dylib`System_Threading_Monitor_Wait_object_int + 20
    frame #12: 0x00000001142564ca mscorlib.dll.dylib`System_Threading_SemaphoreSlim_WaitUntilCountOrTimeout_int_uint_System_Threading_CancellationToken + 106
    frame #13: 0x000000011425621c mscorlib.dll.dylib`System_Threading_SemaphoreSlim_Wait_int_System_Threading_CancellationToken + 652
    frame #14: 0x00000001169bb3bb
    frame #15: 0x00000001169baa43
    frame #16: 0x00000001169b9c02
    frame #17: 0x000000011425ed57 mscorlib.dll.dylib`System_Threading_ThreadHelper_ThreadStart_Context_object + 151
    frame #18: 0x000000011425ca67 mscorlib.dll.dylib`System_Threading_ExecutionContext_RunInternal_System_Threading_ExecutionContext_System_Threading_ContextCallback_object_bool + 407
    frame #19: 0x000000011425c8c1 mscorlib.dll.dylib`System_Threading_ExecutionContext_Run_System_Threading_ExecutionContext_System_Threading_ContextCallback_object_bool + 33
    frame #20: 0x000000011425c854 mscorlib.dll.dylib`System_Threading_ExecutionContext_Run_System_Threading_ExecutionContext_System_Threading_ContextCallback_object + 84
    frame #21: 0x000000011425ee9f mscorlib.dll.dylib`System_Threading_ThreadHelper_ThreadStart + 47
    frame #22: 0x000000010f6df449
    frame #23: 0x000000010dd29083 mono`mono_jit_runtime_invoke(method=<unavailable>, obj=<unavailable>, params=0x0000700007528ec8, exc=0x0000000110a75d68, error=<unavailable>) at mini-runtime.c:3148:12 [opt]
    frame #24: 0x000000010df273f4 mono`do_runtime_invoke(method=0x00007fbf18a364d8, obj=0x00000001107b1ed8, params=0x0000700007528ec8, exc=0x0000000000000000, error=0x0000700007528e60) at object.c:2960:11 [opt]
    frame #25: 0x000000010df291bb mono`mono_runtime_delegate_try_invoke [inlined] mono_runtime_invoke_checked(params=<unavailable>, error=<unavailable>) at object.c:3128:9 [opt]
    frame #26: 0x000000010df291b3 mono`mono_runtime_delegate_try_invoke(delegate=0x00000001107b1ed8, params=0x0000700007528ec8, exc=0x0000000000000000, error=0x0000700007528e60) at object.c:4230 [opt]
    frame #27: 0x000000010df4d19e mono`start_wrapper at threads.c:1163:3 [opt]
    frame #28: 0x000000010df4d0e3 mono`start_wrapper(data=0x00007fbf1c0cc1a0) at threads.c:1215 [opt]
    frame #29: 0x00007fff702022eb libsystem_pthread.dylib`_pthread_body + 126
    frame #30: 0x00007fff70205249 libsystem_pthread.dylib`_pthread_start + 66
    frame #31: 0x00007fff7020140d libsystem_pthread.dylib`thread_start + 13
  thread #20, name = 'Thread Pool Worker'
    frame #0: 0x00007fff7014327e libsystem_kernel.dylib`semaphore_timedwait_trap + 10
    frame #1: 0x000000010de9a43d mono`worker_thread [inlined] mono_os_sem_timedwait(flags=MONO_SEM_FLAGS_ALERTABLE) at mono-os-semaphore.h:124:8 [opt]
    frame #2: 0x000000010de9a3bf mono`worker_thread at mono-coop-semaphore.h:57 [opt]
    frame #3: 0x000000010de9a3a5 mono`worker_thread at threadpool-worker-default.c:391 [opt]
    frame #4: 0x000000010de9a2b1 mono`worker_thread(unused=<unavailable>) at threadpool-worker-default.c:490 [opt]
    frame #5: 0x000000010df4d173 mono`start_wrapper [inlined] start_wrapper_internal at threads.c:1155:3 [opt]
    frame #6: 0x000000010df4d0e3 mono`start_wrapper(data=0x00007fbf17381f70) at threads.c:1215 [opt]
    frame #7: 0x00007fff702022eb libsystem_pthread.dylib`_pthread_body + 126
    frame #8: 0x00007fff70205249 libsystem_pthread.dylib`_pthread_start + 66
    frame #9: 0x00007fff7020140d libsystem_pthread.dylib`thread_start + 13
  thread #21, name = 'Thread Pool Worker'
    frame #0: 0x00007fff7014686a libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #1: 0x00007fff7020556e libsystem_pthread.dylib`_pthread_cond_wait + 722
    frame #2: 0x000000010e004fa0 mono`mono_os_cond_timedwait [inlined] mono_os_cond_wait(cond=0x000000010e0f5f40, mutex=0x000000010e0f5f00) at mono-os-mutex.h:173:8 [opt]
    frame #3: 0x000000010e004f95 mono`mono_os_cond_timedwait(cond=0x000000010e0f5f40, mutex=0x000000010e0f5f00, timeout_ms=4294967295) at mono-os-mutex.c:32 [opt]
    frame #4: 0x000000010df6c338 mono`mono_w32handle_timedwait_signal at mono-coop-mutex.h:102:8 [opt]
    frame #5: 0x000000010df6c308 mono`mono_w32handle_timedwait_signal [inlined] mono_w32handle_timedwait_signal_naked(timeout=<unavailable>, poll=<unavailable>, alerted=<unavailable>) at w32handle.c:643 [opt]
    frame #6: 0x000000010df6c2f4 mono`mono_w32handle_timedwait_signal(timeout=4294967295, poll=<unavailable>, alerted=0x000070000792dfc0) at w32handle.c:703 [opt]
    frame #7: 0x000000010df6bdad mono`mono_w32handle_wait_multiple(handles=<unavailable>, nhandles=<unavailable>, waitall=<unavailable>, timeout=<unavailable>, alertable=<unavailable>) at w32handle.c:1064:14 [opt]
    frame #8: 0x000000010df47577 mono`ves_icall_System_Threading_WaitHandle_Wait_internal(handles=<unavailable>, numhandles=<unavailable>, waitall=<unavailable>, timeout=-1, error=0x000070000792e5d0) at threads.c:2126:9 [opt]
    frame #9: 0x000000010fed408d
    frame #10: 0x0000000114266622 mscorlib.dll.dylib`System_Threading_WaitHandle_WaitAny_System_Threading_WaitHandle___int_bool + 226
    frame #11: 0x00000001142667f5 mscorlib.dll.dylib`System_Threading_WaitHandle_WaitAny_System_Threading_WaitHandle___System_TimeSpan_bool + 85
    frame #12: 0x000000011426a340 mscorlib.dll.dylib`System_Threading_RegisteredWaitHandle_Wait_object + 240
(lldb) detach
Process 7034 detached
(lldb) quit

=================================================================
	Managed Stacktrace:
=================================================================
	  at <unknown> <0xffffffff>
	  at System.Reflection.Assembly:LoadFrom <0x000d6>
	  at System.Reflection.Assembly:ReflectionOnlyLoadFrom <0x0001d>
	  at Microsoft.Build.Tasks.AssemblyInformation:.ctor <0x0022a>
	  at Microsoft.Build.Tasks.AssemblyDependency.AssemblyMetadata:.ctor <0x00052>
	  at <>c:<GetAssemblyMetadata>b__21_0 <0x0004a>
	  at System.Collections.Concurrent.ConcurrentDictionary`2:GetOrAdd <0x000a9>
	  at Microsoft.Build.Tasks.AssemblyInformation:GetAssemblyMetadata <0x00132>
	  at <Module>:invoke_void_string_ConcurrentDictionary`2<string, AssemblyMetadata>_AssemblyNameExtension[]&_string[]&_FrameworkName& <0x000b4>
	  at Microsoft.Build.Tasks.SystemState:GetAssemblyMetadata <0x00090>
	  at Microsoft.Build.Tasks.ReferenceTable:GetUnifiedAssemblyMetadata <0x000c7>
	  at Microsoft.Build.Tasks.ReferenceTable:FindDependenciesAndScatterFiles <0x001f2>
	  at Microsoft.Build.Tasks.ReferenceTable:FindAssociatedFiles <0x0049a>
	  at Microsoft.Build.Tasks.ReferenceTable:ComputeClosure <0x0005a>
	  at Microsoft.Build.Tasks.ReferenceTable:ComputeClosure <0x000b2>
	  at Microsoft.Build.Tasks.ResolveAssemblyReference:Execute <0x01972>
	  at Microsoft.Build.Tasks.ResolveAssemblyReference:Execute <0x0069a>
	  at Microsoft.Build.BackEnd.TaskExecutionHost:Microsoft.Build.BackEnd.ITaskExecutionHost.Execute <0x0007f>
	  at <ExecuteInstantiatedTask>d__26:MoveNext <0x00772>
	  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:Start <0x000d2>
	  at Microsoft.Build.BackEnd.TaskBuilder:ExecuteInstantiatedTask <0x0021a>
	  at <InitializeAndExecuteTask>d__24:MoveNext <0x00172>
	  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:Start <0x000ca>
	  at Microsoft.Build.BackEnd.TaskBuilder:InitializeAndExecuteTask <0x0021a>
	  at <ExecuteBucket>d__19:MoveNext <0x00712>
	  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:Start <0x000d2>
	  at Microsoft.Build.BackEnd.TaskBuilder:ExecuteBucket <0x001e2>
	  at <ExecuteTask>d__18:MoveNext <0x00662>
	  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:Start <0x000da>
	  at Microsoft.Build.BackEnd.TaskBuilder:ExecuteTask <0x0017a>
	  at <ExecuteTask>d__13:MoveNext <0x005da>
	  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:Start <0x000da>
	  at Microsoft.Build.BackEnd.TaskBuilder:ExecuteTask <0x00302>
	  at <ProcessBucket>d__52:MoveNext <0x001ce>
	  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:Start <0x000da>
	  at Microsoft.Build.BackEnd.TargetEntry:ProcessBucket <0x0023a>
	  at <ExecuteTarget>d__45:MoveNext <0x00cc2>
	  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder:Start <0x000da>
	  at Microsoft.Build.BackEnd.TargetEntry:ExecuteTarget <0x00212>
	  at <ProcessTargetStack>d__21:MoveNext <0x00e7a>
	  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder:Start <0x000da>

	  at Microsoft.Build.BackEnd.TargetBuilder:ProcessTargetStack <0x0016a>
FAILURE: Build failed with an exception.
	  at <BuildTargets>d__10:MoveNext <0x00c72>

	  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:Start <0x000da>
* Where:
	  at Microsoft.Build.BackEnd.TargetBuilder:BuildTargets <0x0029a>
Build file '/Users/fincher/Develop/DotNet/UIWidgetsSearchFlutterDoc/build.gradle' line: 96
	  at <BuildProject>d__58:MoveNext <0x00b41>

	  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:Start <0x000da>
* What went wrong:
	  at Microsoft.Build.BackEnd.RequestBuilder:BuildProject <0x00162>
Execution failed for task ':compileDotNet'.
	  at <BuildAndReport>d__50:MoveNext <0x000fa>
> Process 'command '/Library/Frameworks/Mono.framework/Versions/Current/Commands/msbuild'' finished with non-zero exit value 134
	  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder:Start <0x000da>

	  at Microsoft.Build.BackEnd.RequestBuilder:BuildAndReport <0x00142>
* Try:
	  at <RequestThreadProc>d__49:MoveNext <0x0008a>
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
	  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder:Start <0x000d2>

	  at Microsoft.Build.BackEnd.RequestBuilder:RequestThreadProc <0x00162>
* Get more help at https://help.gradle.org
	  at Microsoft.Build.BackEnd.RequestBuilder:<StartBuilderThread>b__45_2 <0x0001a>

	  at System.Threading.Tasks.Task`1:InnerInvoke <0x00053>
BUILD FAILED in 8s
	  at System.Threading.Tasks.Task:Execute <0x00023>
	  at System.Threading.Tasks.Task:ExecutionContextCallback <0x00045>
	  at System.Threading.ExecutionContext:RunInternal <0x00196>
	  at System.Threading.ExecutionContext:Run <0x00020>
	  at System.Threading.Tasks.Task:ExecuteWithThreadLocal <0x000e2>
	  at System.Threading.Tasks.Task:ExecuteEntry <0x000d4>
	  at System.Threading.Tasks.TaskScheduler:TryExecuteTask <0x0002f>
	  at DedicatedThreadsTaskScheduler:<InjectThread>b__6_0 <0x0008a>
	  at System.Threading.ThreadHelper:ThreadStart_Context <0x00096>
	  at System.Threading.ExecutionContext:RunInternal <0x00196>
	  at System.Threading.ExecutionContext:Run <0x00020>
	  at System.Threading.ExecutionContext:Run <0x00053>
	  at System.Threading.ThreadHelper:ThreadStart <0x0002e>
	  at System.Object:runtime_invoke_void__this__ <0x000d8>
=================================================================

> Task :compileDotNet FAILED
2 actionable tasks: 2 executed

Process finished with exit code 1

Add a sample window

Hello.
I spent a few days creating a window for the plugin, but I still couldn't do it.
for IDEA I could do it via JBPopupFactory.getInstance().createComponentPopupBuilder().

It would be easier if this was already in example. There is such an example in old template, but it doesn't work either.
Is it possible to add an example here?
Is there any up-to-date documentation explaining how to create a rider plugin window?

how to upgrade the plugin for rider 2022.3

Got an error when installing plugin from disk:

Plugin 'xxx' (version '9999.0.0') is not compatible with the current version of the IDE, because it requires build 221.* or older but the current build is RD-223.7571.232

Example runIde task chrashes on linux

using gradle runIde

java.io.IOException: Cannot run program "/home/benj/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.rider/riderRD/2021.1.3/9afc70d25c6c7730b23aa954766cdaf1460bf480/riderRD-2021.1.3/lib/ReSharperHost/linux-x64/dotnet/dotnet": error=13, Permission denied

and it is fixed by manually changing the mode of this dotnet executable (chmod +x)

Is must install visual studio?

image
image

when I run build plugin task,I got this error。 I found that run vswhere.exe first. I don't install the Visual studio.but I had install the rider.
how can I redirect the path to the rider's msbuild (..\JetBrains Rider\tools\MSBuild) or I must install the VS ?

Icon identification mismatch

Apparently, the identifier for the Rider assembly can win, which results in icons being not available in ReSharper plugin

How to create the run configuration?

I'm trying to create a ContextAction that "detects" comments like this:

//>Filestar.exe -load=MediaToolKit -command="convert to webp" sample:sample.mp4

And then creates a run configuration and then execute this.

How can I create the run configuration?

Fix/Improve the dependency to com.jetbrains.rdgen

Hey guys,

I recently updated the build files of my plugin using your nuget package with --build-only --force. After that I had missing dependencies.
Luckily, Ivan Migalev, a member of your slack community, showed me a sample of how he included the new 2022.1 rdgen and it worked.

I suggest the change here because some other people might run into it. Also the new way uses the versioning in the style 2022.1 and not the confusing 0.221.xxx versioning which improves the build.gradle.

Suggestion for the build.gradle file:
Remove this line:

plugins {
    id 'com.jetbrains.rdgen' version '0.212.307'  // remove this line
   // other plugins
}

In Favor of this:

buildscript {
    repositories {
        maven { setUrl("https://cache-redirector.jetbrains.com/maven-central") }
    }

    // https://search.maven.org/artifact/com.jetbrains.rd/rd-gen
    dependencies {
        classpath("com.jetbrains.rd:rd-gen:2022.1.3")
    }
}

plugins {
   // other plugins
}

apply {
    plugin("com.jetbrains.rdgen")
}

Notworking flags in command

In that command from getting started: dotnet new resharper-rider-plugin --name MyAwesomePlugin [--include-samples] [--resharper-only] [--build-only]
Don't work frags from square brackets.
image

"VisualStudio" build target fails

I am not able to succesfully run the "VisualStudio" build target. I get the following errors instead:

Downloading from https://download.jetbrains.com/resharper/ReSharperUltimate.2019.2.2/JetBrains.ReSharperUltimate.2019.2.2.exe
Installing experimental hive
> F:\DWPersonal\Projekte\dws\Infrablack\GCX\X\MyAwesomePlugin\build\installer\JetBrains.ReSharperUltimate.2019.2.2.exe /VsVersion=16.0 /SpecificProductNames=ReSharper /Hive=MyAwesomePlugin /Silent=True
3176
> dotnet msbuild /t:Restore;Rebuild;Pack F:\DWPersonal\Projekte\dws\Infrablack\GCX\X\MyAwesomePlugin\MyAwesomePlugin.sln /p:PackageVersion=1337.0.0 /p:PackageOutputPath="F:\DWPersonal\Projekte\dws\Infrablack\GCX\X\MyAwesomePlugin\output"
3164
Microsoft (R)-Build-Engine, Version 16.2.32702+c4012a063 für .NET Core
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.

  Wiederherstellung in "338,33 ms" für "F:\DWPersonal\Projekte\dws\Infrablack\GCX\X\MyAwesomePlugin\src\dotnet\ReSharperPlugin.MyAwesomePlugin.Tests\ReSharperPlugin.MyAwesomePlugin.Tests.csproj" abgeschlossen.
  Wiederherstellung in "338,33 ms" für "F:\DWPersonal\Projekte\dws\Infrablack\GCX\X\MyAwesomePlugin\src\dotnet\ReSharperPlugin.MyAwesomePlugin\ReSharperPlugin.MyAwesomePlugin.csproj" abgeschlossen.
  Wiederherstellung in "338,33 ms" für "F:\DWPersonal\Projekte\dws\Infrablack\GCX\X\MyAwesomePlugin\src\dotnet\ReSharperPlugin.MyAwesomePlugin\ReSharperPlugin.MyAwesomePlugin.Rider.csproj" abgeschlossen.
C:\Program Files\dotnet\sdk\2.2.402\Microsoft.Common.CurrentVersion.targets(2106,5): warning MSB3277: Es wurden Konflikte zwischen verschiedenen Versionen von "System.Collections.Immutable" gefunden, die nicht gelöst werden konnten. Diese Verweisk
onflikte werden im Buildprotokoll aufgelistet, wenn die Protokollausführlichkeit auf "Ausführlich" festgelegt ist. [F:\DWPersonal\Projekte\dws\Infrablack\GCX\X\MyAwesomePlugin\src\dotnet\ReSharperPlugin.MyAwesomePlugin\ReSharperPlugin.MyAwesomePlu
gin.csproj]
  ReSharperPlugin.MyAwesomePlugin -> F:\DWPersonal\Projekte\dws\Infrablack\GCX\X\MyAwesomePlugin\src\dotnet\ReSharperPlugin.MyAwesomePlugin\bin\ReSharperPlugin.MyAwesomePlugin\Debug\ReSharperPlugin.MyAwesomePlugin.dll
  ReSharperPlugin.MyAwesomePlugin.Rider -> F:\DWPersonal\Projekte\dws\Infrablack\GCX\X\MyAwesomePlugin\src\dotnet\ReSharperPlugin.MyAwesomePlugin\bin\ReSharperPlugin.MyAwesomePlugin.Rider\Debug\ReSharperPlugin.MyAwesomePlugin.dll
C:\Program Files\dotnet\sdk\2.2.402\Microsoft.Common.CurrentVersion.targets(2106,5): warning MSB3277: Es wurden Konflikte zwischen verschiedenen Versionen von "System.Collections.Immutable" gefunden, die nicht gelöst werden konnten. Diese Verweisk
onflikte werden im Buildprotokoll aufgelistet, wenn die Protokollausführlichkeit auf "Ausführlich" festgelegt ist. [F:\DWPersonal\Projekte\dws\Infrablack\GCX\X\MyAwesomePlugin\src\dotnet\ReSharperPlugin.MyAwesomePlugin.Tests\ReSharperPlugin.MyAwes
omePlugin.Tests.csproj]
  ReSharperPlugin.MyAwesomePlugin.Tests -> F:\DWPersonal\Projekte\dws\Infrablack\GCX\X\MyAwesomePlugin\src\dotnet\ReSharperPlugin.MyAwesomePlugin.Tests\bin\ReSharperPlugin.MyAwesomePlugin.Tests\Debug\ReSharperPlugin.MyAwesomePlugin.Tests.dll
  Das Paket "F:\DWPersonal\Projekte\dws\Infrablack\GCX\X\MyAwesomePlugin\output\ReSharperPlugin.MyAwesomePlugin.1337.0.0.nupkg" wurde erfolgreich erstellt.
> F:\DWPersonal\Projekte\dws\Infrablack\GCX\X\MyAwesomePlugin\tools\nuget.exe install ReSharperPlugin.MyAwesomePlugin -OutputDirectory C:\Users\drago\AppData\Local\JetBrains\plugins -Source F:\DWPersonal\Projekte\dws\Infrablack\GCX\X\MyAwesomePlug
in\output -DependencyVersion Ignore
3184
Feeds used:
  F:\DWPersonal\Projekte\dws\Infrablack\GCX\X\MyAwesomePlugin\output

Installing package 'ReSharperPlugin.MyAwesomePlugin' to 'C:\Users\drago\AppData\Local\JetBrains\plugins'.
Resolved actions to install package 'ReSharperPlugin.MyAwesomePlugin.1337.0.0'
Retrieving package 'ReSharperPlugin.MyAwesomePlugin 1337.0.0' from 'F:\DWPersonal\Projekte\dws\Infrablack\GCX\X\MyAwesomePlugin\output'.
Adding package 'ReSharperPlugin.MyAwesomePlugin.1337.0.0' to folder 'C:\Users\drago\AppData\Local\JetBrains\plugins'
Added package 'ReSharperPlugin.MyAwesomePlugin.1337.0.0' to folder 'C:\Users\drago\AppData\Local\JetBrains\plugins'
Successfully installed 'ReSharperPlugin.MyAwesomePlugin 1337.0.0' to C:\Users\drago\AppData\Local\JetBrains\plugins
Executing nuget actions took 71,65 ms
Re-installing experimental hive
> F:\DWPersonal\Projekte\dws\Infrablack\GCX\X\MyAwesomePlugin\build\installer\JetBrains.ReSharperUltimate.2019.2.2.exe /VsVersion=16.0 /SpecificProductNames=ReSharper /Hive=MyAwesomePlugin /Silent=True
1088
> dotnet msbuild /t:Restore;Rebuild F:\DWPersonal\Projekte\dws\Infrablack\GCX\X\MyAwesomePlugin\MyAwesomePlugin.sln
3160
Microsoft (R)-Build-Engine, Version 16.2.32702+c4012a063 für .NET Core
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.

  Wiederherstellung in "296,8 ms" für "F:\DWPersonal\Projekte\dws\Infrablack\GCX\X\MyAwesomePlugin\src\dotnet\ReSharperPlugin.MyAwesomePlugin\ReSharperPlugin.MyAwesomePlugin.csproj" abgeschlossen.
  Wiederherstellung in "296,79 ms" für "F:\DWPersonal\Projekte\dws\Infrablack\GCX\X\MyAwesomePlugin\src\dotnet\ReSharperPlugin.MyAwesomePlugin.Tests\ReSharperPlugin.MyAwesomePlugin.Tests.csproj" abgeschlossen.
  Wiederherstellung in "296,8 ms" für "F:\DWPersonal\Projekte\dws\Infrablack\GCX\X\MyAwesomePlugin\src\dotnet\ReSharperPlugin.MyAwesomePlugin\ReSharperPlugin.MyAwesomePlugin.Rider.csproj" abgeschlossen.
  ReSharperPlugin.MyAwesomePlugin.Rider -> F:\DWPersonal\Projekte\dws\Infrablack\GCX\X\MyAwesomePlugin\src\dotnet\ReSharperPlugin.MyAwesomePlugin\bin\ReSharperPlugin.MyAwesomePlugin.Rider\Debug\ReSharperPlugin.MyAwesomePlugin.dll
C:\Program Files\dotnet\sdk\2.2.402\Microsoft.Common.CurrentVersion.targets(2106,5): warning MSB3277: Es wurden Konflikte zwischen verschiedenen Versionen von "System.Collections.Immutable" gefunden, die nicht gelöst werden konnten. Diese Verweisk
onflikte werden im Buildprotokoll aufgelistet, wenn die Protokollausführlichkeit auf "Ausführlich" festgelegt ist. [F:\DWPersonal\Projekte\dws\Infrablack\GCX\X\MyAwesomePlugin\src\dotnet\ReSharperPlugin.MyAwesomePlugin\ReSharperPlugin.MyAwesomePlu
gin.csproj]
  ReSharperPlugin.MyAwesomePlugin -> F:\DWPersonal\Projekte\dws\Infrablack\GCX\X\MyAwesomePlugin\src\dotnet\ReSharperPlugin.MyAwesomePlugin\bin\ReSharperPlugin.MyAwesomePlugin\Debug\ReSharperPlugin.MyAwesomePlugin.dll
C:\Users\drago\.nuget\packages\jetbrains.platform.sdk\192.0.20190807.143715\DotFiles\JetBrains.CommonSdk.targets(24,5): error MSB4018: Unerwarteter Fehler bei der InstalledProductsDiscoveryTask-Aufgabe. [F:\DWPersonal\Projekte\dws\Infrablack\GCX\X
\MyAwesomePlugin\src\dotnet\ReSharperPlugin.MyAwesomePlugin\ReSharperPlugin.MyAwesomePlugin.csproj]
C:\Users\drago\.nuget\packages\jetbrains.platform.sdk\192.0.20190807.143715\DotFiles\JetBrains.CommonSdk.targets(24,5): error MSB4018: System.MissingMethodException: Method not found: 'System.Runtime.Remoting.ObjectHandle System.Activator.CreateIn
stance(System.String, System.String)'. [F:\DWPersonal\Projekte\dws\Infrablack\GCX\X\MyAwesomePlugin\src\dotnet\ReSharperPlugin.MyAwesomePlugin\ReSharperPlugin.MyAwesomePlugin.csproj]
C:\Users\drago\.nuget\packages\jetbrains.platform.sdk\192.0.20190807.143715\DotFiles\JetBrains.CommonSdk.targets(24,5): error MSB4018:    at JetBrains.Platform.SDK.Helper.InstalledProductsDiscoveryTask.Execute() [F:\DWPersonal\Projekte\dws\Infrabl
ack\GCX\X\MyAwesomePlugin\src\dotnet\ReSharperPlugin.MyAwesomePlugin\ReSharperPlugin.MyAwesomePlugin.csproj]
C:\Users\drago\.nuget\packages\jetbrains.platform.sdk\192.0.20190807.143715\DotFiles\JetBrains.CommonSdk.targets(24,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [F:\DWPerso
nal\Projekte\dws\Infrablack\GCX\X\MyAwesomePlugin\src\dotnet\ReSharperPlugin.MyAwesomePlugin\ReSharperPlugin.MyAwesomePlugin.csproj]
C:\Users\drago\.nuget\packages\jetbrains.platform.sdk\192.0.20190807.143715\DotFiles\JetBrains.CommonSdk.targets(24,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLogg
ingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) [F:\DWPersonal\Projekte\dws\Infrablack\GCX\X\MyAwesomePlugin\src\dotnet\ReSharperPlugin.MyAwesomePlugin\ReSharperPlugin.MyAwesomePlugin.csproj
]
'dotnet msbuild /t:Restore;Rebuild F:\DWPersonal\Projekte\dws\Infrablack\GCX\X\MyAwesomePlugin\MyAwesomePlugin.sln' failed with exit code 1, valid exit codes: 0
In F:\DWPersonal\Projekte\dws\Infrablack\GCX\X\MyAwesomePlugin\settings.ps1:33 Zeichen:9
+         throw "'$Executable $Arguments' failed with exit code $($rc.E ...
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: ('dotnet msbuild...d exit codes: 0:String) [], RuntimeException
    + FullyQualifiedErrorId : 'dotnet msbuild /t:Restore;Rebuild F:\DWPersonal\Projekte\dws\Infrablack\GCX\X\MyAwesomePlugin\MyAwesomePlugin.sln' failed with exit code 1, valid exit codes: 0

The actual error starts at

C:\Users\drago\.nuget\packages\jetbrains.platform.sdk\192.0.20190807.143715\DotFiles\JetBrains.CommonSdk.targets(24,5): error MSB4018: Unerwarteter Fehler bei der InstalledProductsDiscoveryTask-Aufgabe. [F:\DWPersonal\Projekte\dws\Infrablack\GCX\X
\MyAwesomePlugin\src\dotnet\ReSharperPlugin.MyAwesomePlugin\ReSharperPlugin.MyAwesomePlugin.csproj]

Can someone verify for me that the "VisualStudio" target should, indeed, currently work?

Please note that

  • I originaly also ran into the max-pathlength (#6) but I enabled pathlength support on my win10 OS. The paths have been shortened in the pasted log above for readability.
  • My system language is german, which means some of the compiler messages are in german (sorry, I'm sad about that myself) - I'd be glad to translate on request
  • I had to copy vswhere.exe from an older revision first, because of #22
  • I have both, VS 2017 and VS 2019 installed, though I am not sure which one the script is trying to start (looking at the picked Resharper version, I suspect 2019)

:rdgen fails "NoSuchMethod getNlsString"

I can reproduce it by

dotnet new resharper-rider-plugin --name BestResharper --include-samples
cd BestResharper
gradle :rdgen
> Task :rdgen
Reading hash from /home/benj/repos/kotlin/BestResharper/build/.rdgen
Hashes are different at key 'file: /home/benj/.gradle/caches/modules-2/files-2.1/com.jetbrains.rd/rd-gen/0.211.235/c208e05c251ac636b4179151d770ca95b6ad5f22/rd-gen-0.211.235.jar', oldHash: , newHash:2021-08-04_15:53:57.352
Temporary folder created: /tmp/rdgen-15010838409650662933
Searching for Kotlin compiler
Compiling sources from '/home/benj/repos/kotlin/BestResharper/protocol/src/main/kotlin/model/rider' to '/tmp/rdgen-15010838409650662933'
User classpath: '/home/benj/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.rider/riderRD/2021.2/a9ef7670ed1ce9867cfdf6dfc73782362db29322/riderRD-2021.2/lib/rd/rider-model.jar'
Rdgen default classpath: '/home/benj/.gradle/caches/modules-2/files-2.1/com.jetbrains.rd/rd-gen/0.211.235/c208e05c251ac636b4179151d770ca95b6ad5f22/rd-gen-0.211.235.jar:/home/benj/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-compiler-embeddable/1.4.0/e5f0d669a77787ccbccd49c71b57bfd7b35faec4/kotlin-compiler-embeddable-1.4.0.jar:/home/benj/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-reflect/1.4.0/aa2101a19d8688e368ae6e35e8967550ced73884/kotlin-reflect-1.4.0.jar:/home/benj/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.4.0/63e75298e93d4ae0b299bb869cf0c627196f8843/kotlin-stdlib-1.4.0.jar:/home/benj/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.4.0/1c752cce0ead8d504ccc88a4fed6471fd83ab0dd/kotlin-stdlib-common-1.4.0.jar:/home/benj/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-script-runtime/1.4.0/52ac54a56c9121f54fcca387c5a0f441d1af9be8/kotlin-script-runtime-1.4.0.jar'
Resulting kotlinc classpath: '/home/benj/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.rider/riderRD/2021.2/a9ef7670ed1ce9867cfdf6dfc73782362db29322/riderRD-2021.2/lib/rd/rider-model.jar:/home/benj/.gradle/caches/modules-2/files-2.1/com.jetbrains.rd/rd-gen/0.211.235/c208e05c251ac636b4179151d770ca95b6ad5f22/rd-gen-0.211.235.jar:/home/benj/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-compiler-embeddable/1.4.0/e5f0d669a77787ccbccd49c71b57bfd7b35faec4/kotlin-compiler-embeddable-1.4.0.jar:/home/benj/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-reflect/1.4.0/aa2101a19d8688e368ae6e35e8967550ced73884/kotlin-reflect-1.4.0.jar:/home/benj/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.4.0/63e75298e93d4ae0b299bb869cf0c627196f8843/kotlin-stdlib-1.4.0.jar:/home/benj/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.4.0/1c752cce0ead8d504ccc88a4fed6471fd83ab0dd/kotlin-stdlib-common-1.4.0.jar:/home/benj/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-script-runtime/1.4.0/52ac54a56c9121f54fcca387c5a0f441d1af9be8/kotlin-script-runtime-1.4.0.jar'
kotlinc -cp /home/benj/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.rider/riderRD/2021.2/a9ef7670ed1ce9867cfdf6dfc73782362db29322/riderRD-2021.2/lib/rd/rider-model.jar:/home/benj/.gradle/caches/modules-2/files-2.1/com.jetbrains.rd/rd-gen/0.211.235/c208e05c251ac636b4179151d770ca95b6ad5f22/rd-gen-0.211.235.jar:/home/benj/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-compiler-embeddable/1.4.0/e5f0d669a77787ccbccd49c71b57bfd7b35faec4/kotlin-compiler-embeddable-1.4.0.jar:/home/benj/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-reflect/1.4.0/aa2101a19d8688e368ae6e35e8967550ced73884/kotlin-reflect-1.4.0.jar:/home/benj/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.4.0/63e75298e93d4ae0b299bb869cf0c627196f8843/kotlin-stdlib-1.4.0.jar:/home/benj/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.4.0/1c752cce0ead8d504ccc88a4fed6471fd83ab0dd/kotlin-stdlib-common-1.4.0.jar:/home/benj/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-script-runtime/1.4.0/52ac54a56c9121f54fcca387c5a0f441d1af9be8/kotlin-script-runtime-1.4.0.jar -no-stdlib -d /tmp/rdgen-15010838409650662933 -jvm-target 1.8 /home/benj/repos/kotlin/BestResharper/protocol/src/main/kotlin/model/rider
Compilation finished in 2341 ms
Loading compiled classes from 'file:/tmp/rdgen-15010838409650662933/, file:/home/benj/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.rider/riderRD/2021.2/a9ef7670ed1ce9867cfdf6dfc73782362db29322/riderRD-2021.2/lib/rd/rider-model.jar'
gradleGenerationSpecs=[GenerationSpec(language=kotlin, transform=asis, root=com.jetbrains.rider.model.nova.ide.IdeRoot, namespace=com.jetbrains.rider.model, directory=/home/benj/repos/kotlin/BestResharper/src/rider/main/kotlin/com/jetbrains/rider/plugins/bestresharper, generatedFileSuffix=.Generated)
GenerationSpec(language=csharp, transform=reversed, root=com.jetbrains.rider.model.nova.ide.IdeRoot, namespace=JetBrains.Rider.Model, directory=/home/benj/repos/kotlin/BestResharper/src/dotnet/ReSharperPlugin.BestResharper/Rider, generatedFileSuffix=.Generated)]
noLineNumbersInComments=false

RdGen model generator started
Searching classes with namespace prefixes: 'model.rider'
Regex for filtering generators: '.*'
Found 2 gradle generators
3 classes found
1 toplevel class found

Toplevels to generate:
  singleton `BestResharperModel` :> concrete_class `Solution` :> singleton `SolutionModel` :> root `IdeRoot`
java.lang.NoSuchMethodError: 'com.jetbrains.rd.generator.nova.ScalarAttributedType com.jetbrains.rd.generator.nova.FunctionsKt.getNlsString()'
	at com.jetbrains.rider.model.nova.ide.SolutionModel$RdTextChunk$1.invoke(SolutionModel.kt:99)
	at com.jetbrains.rider.model.nova.ide.SolutionModel$RdTextChunk$1.invoke(SolutionModel.kt:13)
	at com.jetbrains.rd.generator.nova.Declaration.initialize(Types.kt:224)
	at com.jetbrains.rd.generator.nova.Root.initialize(Types.kt:561)
	at com.jetbrains.rd.generator.nova.GenerateKt.generateRdModel(generate.kt:43)
	at com.jetbrains.rd.generator.nova.RdGen$run$outputFolders$1.invoke(RdGen.kt:303)
	at com.jetbrains.rd.generator.nova.RdGen$run$outputFolders$1.invoke(RdGen.kt:18)
	at com.jetbrains.rd.generator.nova.util.EnvUtilKt.usingSystemProperty(EnvUtil.kt:34)
	at com.jetbrains.rd.generator.nova.RdGen.run(RdGen.kt:299)
	at com.jetbrains.rd.generator.nova.MainKt.main(Main.kt:8)

> Task :rdgen FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':rdgen'.
> Process 'command '/usr/lib/jvm/java-16-openjdk/bin/java'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.2/userguide/command_line_interface.html#sec:command_line_warnings

Should be with the latest version.

Name with . causes compilation errors.

When generating a new solution, if your name has a period there will be a few classes that cannot compile.

dotnet new resharper-rider-plugin --name CSharpier.Rider --include-samples

Clean up props and project files

How to update the SDK version?

I've just tried generating a project from this template, but the version of Rider that was downloaded when I clicked Run was an EAP which didn't allow me to do anything because it had expired. I tried updating to 2020.1.0-eap03 using the SdkVersion in Plugin.props but I then get errors in every file across the sample project with warnings like "Project 'ReSharperPlugin.MySamplePlugin' load finished with warnings: The version of Microsoft.NET.Sdk used by this project is insufficient to support references to libraries targeting .NET Standard 1.5 or higher. Please install version 2.0 or higher of the .NET Core SDK. at (67:5)". I have 2.2, 3.0 and 3.1 .NET Core versions installed, so I'm not sure what I've done wrong here.

After a bunch of changing things, rebuilding, and running, I managed to get the project to compile with the 2019.2 settings that the project came with, but to run in the 2020.1 Rider EAP. This causes other issues though, and I get lots of warning when trying to use my plugin like "Message = ôMethod not found: 'Void JetBrains.ReSharper.Feature.Services.CodeCompletion.Infrastructure.AspectLookupItems.Info.Te
xtualInfo..ctor(System.String, System.String, Boolean)'.ö".

What is the proper way to update the SDK version to use the latest version, or else to use 2019.2 without the EAP which doesn't let me in?

NoClassDefFoundError: DefaultIvyArtifact

Sometimes, when building the plugin in fresh environments (most likely with new Gradle and/or JVM versions), the following exception may be thrown:

java.lang.NoClassDefFoundError: org/gradle/api/publish/ivy/internal/artifact/DefaultIvyArtifact

In my experience, it occurs every time I'm trying to build any plugin.

To mitigate the issue, org.jetbrains.intellij plugin should be updated to version 0.3.4 or later. Currently we use 0.3.2:

id 'org.jetbrains.intellij' version '0.3.2'

Update gradle-wrapper to 4.9

Currently, despite wrapper task using Gradle 4.9, the wrapper stored in the repository seems to use outdated Gradle 4.5.1.

This causes all sorts of pain (usually something along the lines "Unable to determine Java version from '11.0.2'") with different Gradle configurations when building the plugin on newer JVM versions (notably, the Gradle looks broken with the default configuration in IDEA started on JBR 11), so we should regenerate the wrapper and put real 4.9 into the gradle/wrapper directory.

Unable to install templates

C:>dotnet new install JetBrains.ReSharper.SamplePlugin..nupkg
The following template packages will be installed:
JetBrains.ReSharper.SamplePlugin.
.nupkg

JetBrains.ReSharper.SamplePlugin.*.nupkg is not supported.

Unsupported class file major version 60

Hello,

Can't run Generate protocol (Windows) or Rider (Windows), got this error.
Tried to use jdk 13-15.

`C:\Windows\System32\cmd.exe /c gradlew.bat :rdgen
Starting a Gradle Daemon, 2 incompatible and 1 stopped Daemons could not be reused, use --status for details

FAILURE: Build failed with an exception.

  • Where:
    Settings file 'C:\Users\sergeyt\src\wms\MyAwesomePlugin1\settings.gradle'
  • What went wrong:
    Could not compile settings file 'C:\Users\sergeyt\src\wms\MyAwesomePlugin1\settings.gradle'.

startup failed:
General error during semantic analysis: Unsupported class file major version 60
java.lang.IllegalArgumentException: Unsupported class file major version 60
at groovyjarjarasm.asm.ClassReader.(ClassReader.java:196)
at groovyjarjarasm.asm.ClassReader.(ClassReader.java:177)
...`

1 error

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full i
    nsights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 17s

Process finished with exit code 1.

`

A problem occurred evaluating root project

Hello everyone,
I've just started to dig into plugin development for Rider.
I've literally only downloaded the template and opened it with the IntelliJ Idea Community Edition version 2022.1.
Gradle failed with an exception:
"org.gradle.api.GradleScriptException: A problem occurred evaluating root project 'myawesomeplugin'."
"Caused by: java.io.FileNotFoundException: C:\workspace\Work\Projects\PluginsDevelopment\Rider\MyAwesomePlugin\CHANGELOG.md (The system cannot find the file specified)"

Is this an issue with this template/Idea/some settings?
Or maybe this template isn't compatible with the latest Idea version (it just has been released recently)?

Thank you for any hint!
IdeaPluginGradleFail

buildPlugin.ps1 will sometimes block for a very long time

When trying to build my plugin (originating from this template) on Windows, I got the following issue.

Symptoms

(On Windows, having .NET Core 2.1 installed.)

  1. Kill all VBCSCompiler.exe processes on the system (because they're sometimes cached and then will hide the issue).
  2. Invoke buildPlugin gradle task.
  3. It will report that the MSBuild process has finished (and it actually is), but it will block after that. powershell.exe will stay, gradle will not proceed.

Analysis

When building the plugin, buildPlugin.ps1 PowerShell script gets called. It uses the Invoke-Exe function that has the following line: https://github.com/matkoch/resharper-sampleplugin/blob/9f1282bd25fd1f3df97764faafa065cd1d3508b8/content/settings.ps1#L22

-Wait here will block until all of the descendant process are stopped, according to the documentation. And strarting from .NET Core 2.1, MSBuild will run VBCSCompiler.exe daemon that generally stays alive for a long time (and it will stay alive after the build process finishes).

So, PowerShell will wait for VBCSCompiler.exe daemon to finish, and Gradle will wait for PowerShell, leading to a build pause.

Create new ITreeNode element as a child node

I'm not quite sure if this is the right place to ask this but Matthias told me on stackoverflow to post it here.
I'm trying to make a ReSharper plugin that has a QuickFix which creates a new class with a specific name and adds it as a child to the body of a given ICSharpNamespaceDeclaration.

So basically I want a quickfix that changes this:

namespace ClassLibraryProject
{
}

Into this:

namespace ClassLibraryProject
{
    public class NewClass
    {
    }
}

I'm new to the ReSharper API/SDK and I'm mainly trying to follow the DevGuide and the sample files from this template but the example shown here only changes the name of the node. I haven't been able to find any information on how to create new ITreeNodes so I hope anyone knows what I can do.

compileDotNet failed execution

When I try to to use :runIde it fails every time it tries to compile the plugin. I created the project files from the new solution screen in rider.

Execution failed for task ':compileDotNet'.
> Process 'command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe'' finished with non-zero exit value 1

When I have it show more info on the error it gives me the following.

MSBUILD : error MSB1009: Project file does not exist.

This is the only file I have created in the plugin
rider64_Y6Xx5bbwv5

The build fails at line 72 of build.gradle
idea64_Uw1L0RWAqu

Fail to resolve maven-metadata

Hi guys,

I can't run the sample plugin for rider.
There seems to be a problem with the current gradle.build script.

gradlew.bat :runIde

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring root project 'myproject'.

Could not resolve all files for configuration ':detachedConfiguration1'.
Could not resolve com.jetbrains.intellij.rider:riderRD:2018.3-SNAPSHOT.
Required by:
project :
> Could not resolve com.jetbrains.intellij.rider:riderRD:2018.3-SNAPSHOT.
> Unable to load Maven meta-data from https://repo.labs.intellij.net/central-proxy/com/jetbrains/intellij/rider/riderRD/2018.3-SNAPSHOT/maven-metadata.xml.
> Could not get resource 'https://repo.labs.intellij.net/central-proxy/com/jetbrains/intellij/rider/riderRD/2018.3-SNAPSHOT/maven-metadata.xml'.
> Could not GET 'https://repo.labs.intellij.net/central-proxy/com/jetbrains/intellij/rider/riderRD/2018.3-SNAPSHOT/maven-metadata.xml'. Received status code 502 from server: Bad Gateway

I tried changing the version to 2019.1 with no luck

rdgen failed

warning: classpath entry points to a non-existent location: /Users/fangyi/repos/Plugin/build/riderRD-2019.2-SNAPSHOT/lib/rd/rider-model.jar
/Users/fangyi/repos/Plugin/protocol/src/main/kotlin/model/rider/MyPluginModel.kt:3:22: error: unresolved reference: rider
import com.jetbrains.rider.model.nova.ide.SolutionModel
                     ^
/Users/fangyi/repos/Plugin/protocol/src/main/kotlin/model/rider/MyPluginModel.kt:8:31: error: unresolved reference: SolutionModel
object PaketPluginModel : Ext(SolutionModel.Solution) {
                              ^
Compilation finished in 5802 ms
Compilation failed. Return code: 1(COMPILATION_ERROR).

I've had a look and there seems to be code to setup the snapshot library in the build dir, could anyone help? Thanks

Failed to start Visual Studio 2017

Using the script .\runVisualStudio.ps1 I got a dialog showing the following error

Invalid Command Line. Unknown Switch : ReSharper.Internal.

image

Here is the console log

❯ .\runVisualStudio.ps1
WARNING: Plugin is already installed. To trigger reinstall, delete C:\Users\laure\projects\Resharper\trial\Trial\src\dotnet\ReSharperPlugin.Trial\ReSharperPlugin.Trial.csproj.user.
> C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\MSBuild\Current\Bin\MSBuild.exe /t:Restore;Rebuild C:\Users\laure\projects\Resharper\trial\Trial\Trial.sln /v:minimal
3996
Microsoft (R) Build Engine version 16.0.360-preview+g9781d96883 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

Restoring packages for C:\Users\laure\projects\Resharper\trial\Trial\src\dotnet\ReSharperPlugin.Trial\ReSharperPlugin.Trial.Rider.csproj...
Restoring packages for C:\Users\laure\projects\Resharper\trial\Trial\src\dotnet\ReSharperPlugin.Trial\ReSharperPlugin.Trial.csproj...
Restoring packages for C:\Users\laure\projects\Resharper\trial\Trial\src\dotnet\ReSharperPlugin.Trial.Tests\ReSharperPlugin.Trial.Tests.csproj...
Installing JetBrains.Platform.UIInteractive.Text 183.0.20190208.91334.
Installing JetBrains.Psi.Features.UIInteractive.Core 183.0.20190208.140150.
Installing JetBrains.Platform.UIInteractive.Shell 183.0.20190208.91334.
Installing JetBrains.Platform.UIInteractive.Ide 183.0.20190208.91334.
Installing JetBrains.Platform.Core.MsBuild 183.0.20190208.91334.
Installing JetBrains.Platform.Interop.dotMemoryUnit.Interop.Console 183.0.20190208.91334.
Installing JetBrains.Platform.Core.Text 183.0.20190208.91334.
Installing JetBrains.Psi.Features.UIInteractive.Features 183.0.20190208.140150.
Installing JetBrains.Psi.Features.UIInteractive.SolutionAnalysis 183.0.20190208.140150.
Installing JetBrains.Psi.Features.Diagramming 183.0.20190208.140150.
Installing JetBrains.Platform.VisualStudio 183.0.20190208.91334.
Installing JetBrains.Psi.Features.SolutionBuilder 183.0.20190208.140150.
Installing JetBrains.Platform.RdProtocol 183.0.20190208.91334.
Installing JetBrains.Platform.Core.Shell 183.0.20190208.91014.
Installing JetBrains.Platform.Core.Ide 183.0.20190208.91334.
Installing JetBrains.Platform.Interop.dotMemoryUnit.Interop.Ide 183.0.20190208.91334.
Installing JetBrains.ReSharper.SDK.Tests 2018.3.3.
Installing JetBrains.ReSharper.SDK.Internal 183.0.20190208.144139.
Installing JetBrains.ReSharper.SDK 2018.3.3.
Installing JetBrains.Psi.Features.Core 183.0.20190208.140150.
Installing JetBrains.Psi.Features.test.Framework 183.0.20190208.140150.
Installing JetBrains.Psi.Features.UnitTesting 183.0.20190208.140150.
Installing JetBrains.Platform.Sdk 183.0.20190208.91334.
Installing JetBrains.Platform.Tests.Framework 183.0.20190208.91334.
Installing JetBrains.Psi.Features.src 183.0.20190208.140150.
Installing JetBrains.Psi.Features.VisualStudio 183.0.20190208.140150.
Installing JetBrains.ExternalAnnotations 10.2.55.
Installing JetBrains.Psi.Features.Tasks 183.0.20190208.140150.
Installing JetBrains.Platform.Interop.dotMemoryUnit.Framework 183.0.20190208.91334.
Installing JetBrains.Platform.Interop.CommandLine 183.0.20190208.91334.
Generating MSBuild file C:\Users\laure\projects\Resharper\trial\Trial\src\dotnet\ReSharperPlugin.Trial.Tests\obj\ReSharperPlugin.Trial.Tests\ReSharperPlugin.Trial.Tests.csproj.nuget.g.props.
Generating MSBuild file C:\Users\laure\projects\Resharper\trial\Trial\src\dotnet\ReSharperPlugin.Trial\obj\ReSharperPlugin.Trial\ReSharperPlugin.Trial.csproj.nuget.g.props.
Generating MSBuild file C:\Users\laure\projects\Resharper\trial\Trial\src\dotnet\ReSharperPlugin.Trial.Tests\obj\ReSharperPlugin.Trial.Tests\ReSharperPlugin.Trial.Tests.csproj.nuget.g.targets.
Generating MSBuild file C:\Users\laure\projects\Resharper\trial\Trial\src\dotnet\ReSharperPlugin.Trial\obj\ReSharperPlugin.Trial\ReSharperPlugin.Trial.csproj.nuget.g.targets.
Restore completed in 4.83 sec for C:\Users\laure\projects\Resharper\trial\Trial\src\dotnet\ReSharperPlugin.Trial.Tests\ReSharperPlugin.Trial.Tests.csproj.
Restore completed in 4.82 sec for C:\Users\laure\projects\Resharper\trial\Trial\src\dotnet\ReSharperPlugin.Trial\ReSharperPlugin.Trial.csproj.
Installing JetBrains.ReSharperAutomationTools.Native.Windows.Core 183.0.20190208.91332.
Installing JetBrains.ReSharperAutomationTools.External.DebuggerLibs 183.0.20190208.141408.
Installing JetBrains.ReSharperAutomationTools.src.CommandLineCore 183.0.20190208.141408.
Installing JetBrains.Psi.Features.XamlRenderer 183.0.20190208.140150.
Installing JetBrains.ReSharperAutomationTools.src.ReSharperHost 183.0.20190208.141408.
Installing JetBrains.ReSharperAutomationTools.src.RiderSdk.Internal 183.0.20190208.141408.
Installing JetBrains.Rider.SDK 2018.3.3.
Generating MSBuild file C:\Users\laure\projects\Resharper\trial\Trial\src\dotnet\ReSharperPlugin.Trial\obj\ReSharperPlugin.Trial.Rider\ReSharperPlugin.Trial.Rider.csproj.nuget.g.props.
Generating MSBuild file C:\Users\laure\projects\Resharper\trial\Trial\src\dotnet\ReSharperPlugin.Trial\obj\ReSharperPlugin.Trial.Rider\ReSharperPlugin.Trial.Rider.csproj.nuget.g.targets.
Restore completed in 6.16 sec for C:\Users\laure\projects\Resharper\trial\Trial\src\dotnet\ReSharperPlugin.Trial\ReSharperPlugin.Trial.Rider.csproj.
ReSharperPlugin.Trial -> C:\Users\laure\projects\Resharper\trial\Trial\src\dotnet\ReSharperPlugin.Trial\bin\ReSharperPlugin.Trial\Debug\ReSharperPlugin.Trial.dll
InstallFolder: C:\Users\laure\AppData\Local\JetBrains\Installations\ReSharperPlatformVs15_59785107Trial
ReSharperPlugin.Trial.Rider -> C:\Users\laure\projects\Resharper\trial\Trial\src\dotnet\ReSharperPlugin.Trial\bin\ReSharperPlugin.Trial.Rider\Debug\ReSharperPlugin.Trial.dll
ReSharperPlugin.Trial.Tests -> C:\Users\laure\projects\Resharper\trial\Trial\src\dotnet\ReSharperPlugin.Trial.Tests\bin\ReSharperPlugin.Trial.Tests\Debug\ReSharperPlugin.Trial.Tests.dll
> C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\Common7\IDE\devenv.exe /rootSuffix Trial /ReSharper.Internal
3036

[README] Improvement to `Samples`

Hi!

I was wondering if we could also add a summary for what each sample allows to get started with, perhaps linked to a page from documentation.

Thank you.

Step publishPlugin throws HTTP 404

Hey 👋🏻

I'm using your wonderful plugin template. When trying to publish the Rider plugin to the JetBrains NuGet feed, nuget push always returns HTTP 404. You can see this here in my GitHub Action.
The funny thing is that the plugin's upload itself is successful. A couple of hours later, the new version appears in the JetBrains Marketplace (see here).

So what's going wrong with https://plugins.jetbrains.com? Why does it always return HTTP 404?

Best regards
mu88

CC: @vladyslav-burylov

`repoRoot` is sometimes invalid

Whenever I set up my IDEA to use gradle 'wrapper' task configuration (see the image below), it often complains that it cannot find C:\Windows\System32\CHANGELOG.md on project import.

image

Most likely some parts of the Gradle (probably the Gradle daemon?) start in the wrong directory on Windows, and then line repoRoot = new File(".").canonicalFile holds strange results, i.e. invalid repoRoot.

repoRoot = new File(".").canonicalFile

But why do we need to calculate repoRoot in this way? repoRoot = projectDir seems to be enough.

Template does not include the actual plugin project in the solution it creates

I have just tried this template for the first time, and was quite confused for some minutes because almost nothing was included in the solution. Then I find that the code I'm looking for in another solution in the same folder as the solution the template created. This is not at all a tidy way to structure solutions. Now I have to choose between the solution I created and the generated solution, and even if I try the generated solution, it doesn't include any easily identified place to add my own code. The two README files I can find only include links to images and zero text.

I know this isn't a paid-for product that I can expect more from, and that some effort is required on my part to set things up, but I really think this could be done in a better, simple, more component oriented and configurable way. Expect quite a few PRs from me in this regard.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.