Giter Club home page Giter Club logo

resharper-testlinker2's People

Contributors

glconti avatar matkoch avatar mu88 avatar snegovikufa avatar ulex avatar vladyslav-burylov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

resharper-testlinker2's Issues

[Rider] Plugin v2022.2.1 does not work while 2022.2.0 does

Tried the latest version v2022.2.1, but it does not work. Tried the new shortcut, old shortcut, through the context menu. Nothing happens when "Goto linked types" is triggered.

Don't know how to investigate further.

Downgrading to 2022.2 helped - works just fine.

Windows 10, Rider 2022.2.1

Update to Version 2021.2

Hi vladysav
Do you plan to update the compatability of the test linker to the newest version of Rider?
Kind regards
Floopy

Unite fork with base repo

This is more a general idea: since the forked repository matkoch/resharper-testlinker is already archived, it does not make a lot of sense to me to keep the fork and it's base repo longer separate. Instead, the fork should be the only source of truth - of course by honoring @matkoch for his tremendous work.

I therefore want to bring up the following idea:

  • Talk to @matkoch whether his repo could be reactivated and updated with the newly created code of this repo. Maybe it's also worth to discuss whether taking the maintenance of the original repo is an option.
    @vladyslav-burylov I'm interested in supporting you with the plugin if that is an option for you.
  • Rename this Plugin from Test Linker 2 to Test Linker. The normie Rider user does not care about the plugin's history. Therefore the suffix 2 just seems confusing and superfluous.

@matkoch, @vladyslav-burylov: what do you think about this?

Deleted

Deleted: sth strange happened and comment update has been transformed into a separate issue.

Automatic deployment fails for 2022.1

The automatic deployment via GitHub Actions fails atm because building on Linux fails with the following error:


> Task :buildSearchableOptions
Installation home directory: file:////home/runner/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.rider/riderRD/2022.1/3359a42138f5a6a0343321213b46ac791240e1c4/riderRD-2022.1
System directory: file:////home/runner/work/resharper-testlinker2/resharper-testlinker2/build/idea-sandbox/system
Config directory: file:////home/runner/work/resharper-testlinker2/resharper-testlinker2/build/idea-sandbox/config
Log directory: file:////home/runner/work/resharper-testlinker2/resharper-testlinker2/build/idea-sandbox/system/log

Following output will be written to a log file /home/runner/work/resharper-testlinker2/resharper-testlinker2/build/idea-sandbox/system/log/frontend.log
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.intellij.util.lang.UrlClassLoader (file:/home/runner/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.rider/riderRD/2022.1/3359a42138f5a6a0343321213b46ac791240e1c4/riderRD-2022.1/lib/util.jar) to field java.lang.ClassLoader.classLoaderValueMap
WARNING: Please consider reporting this to the maintainers of com.intellij.util.lang.UrlClassLoader
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
2022-04-20 06:15:15,672 [   1404] SEVERE - #c.i.i.ApplicationLoader - Cannot run program "/home/runner/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.rider/riderRD/2022.1/3359a42138f5a6a0343321213b46ac791240e1c4/riderRD-2022.1/lib/ReSharperHost/linux-x64/dotnet/dotnet": error=13, Permission denied
java.io.IOException: Cannot run program "/home/runner/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.rider/riderRD/2022.1/3359a42138f5a6a0343321213b46ac791240e1c4/riderRD-2022.1/lib/ReSharperHost/linux-x64/dotnet/dotnet": error=13, Permission denied
	at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1128)
	at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1071)
	at com.jetbrains.rider.protocol.ReSharperProcessBase.start(ReSharperProcessBase.kt:363)
	at com.jetbrains.rider.protocol.ReSharperProcess.<init>(ReSharperProcess.kt:232)
	at com.jetbrains.rider.protocol.ProtocolManager.k(ProtocolManager.kt:243)
	at com.jetbrains.rider.protocol.ProtocolManager.h(ProtocolManager.kt:166)
	at com.jetbrains.rider.protocol.ProtocolManager.<init>(ProtocolManager.kt:161)
	at com.jetbrains.rider.RiderApplicationLoadListener.beforeApplicationLoaded(RiderApplicationLoadListener.kt:64)
	at com.intellij.idea.ApplicationLoader.initConfigurationStore(ApplicationLoader.kt:422)
	at com.intellij.idea.ApplicationLoader$initApplication$block$3.apply(ApplicationLoader.kt:137)
	at com.intellij.idea.ApplicationLoader$initApplication$block$3.apply(ApplicationLoader.kt)
	at java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1072)
	at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
	at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1705)
	at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1692)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
Caused by: java.io.IOException: error=13, Permission denied
	at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
	at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:340)
	at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:271)
	at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1107)
	... 19 more
2022-04-20 06:15:15,676 [   1408] SEVERE - #c.i.i.ApplicationLoader - JetBrains Rider 2022.1  Build #RD-221.5080.235
2022-04-20 06:15:15,683 [   1415] SEVERE - #c.i.i.ApplicationLoader - JDK: 11.0.14.1; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o.
2022-04-20 06:15:15,684 [   1416] SEVERE - #c.i.i.ApplicationLoader - OS: Linux
2022-04-20 06:15:15,830 [   1562]   WARN - j.u.prefs - Prefs file removed in background /home/runner/.java/.userPrefs/prefs.xml
2022-04-20 06:15:16,408 [   2140]   WARN - #c.i.n.i.NotificationGroupManagerImpl - Notification group Debugger event log messages is already registered (group=com.intellij.notification.NotificationGroup@1adf30c4). Plugin descriptor: PluginDescriptor(name=IDEA CORE, id=com.intellij, descriptorPath=plugin.xml, path=~/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.rider/riderRD/2022.1/3359a42138f5a6a0343321213b46ac791240e1c4/riderRD-2022.1/lib, version=221.5080.235, package=null, isBundled=true)
2022-04-20 06:15:16,418 [   2150]   WARN - #c.i.n.i.NotificationGroupManagerImpl - Notification group Rider Remote Debugger: Upload Error is already registered (group=com.intellij.notification.NotificationGroup@4581d18d). Plugin descriptor: PluginDescriptor(name=IDEA CORE, id=com.intellij, descriptorPath=plugin.xml, path=~/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.rider/riderRD/2022.1/3359a42138f5a6a0343321213b46ac791240e1c4/riderRD-2022.1/lib, version=221.5080.235, package=null, isBundled=true)
2022-04-20 06:15:16,422 [   2154]   WARN - #c.i.n.i.NotificationGroupManagerImpl - Notification group Xcode settings warnings is already registered (group=com.intellij.notification.NotificationGroup@6ff529ea). Plugin descriptor: PluginDescriptor(name=IDEA CORE, id=com.intellij, descriptorPath=plugin.xml, path=~/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.rider/riderRD/2022.1/3359a42138f5a6a0343321213b46ac791240e1c4/riderRD-2022.1/lib, version=221.5080.235, package=null, isBundled=true)
2022-04-20 06:15:16,423 [   2155]   WARN - #c.i.n.i.NotificationGroupManagerImpl - Notification group Xamarin launch is already registered (group=com.intellij.notification.NotificationGroup@1f3677d0). Plugin descriptor: PluginDescriptor(name=IDEA CORE, id=com.intellij, descriptorPath=plugin.xml, path=~/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.rider/riderRD/2022.1/3359a42138f5a6a0343321213b46ac791240e1c4/riderRD-2022.1/lib, version=221.5080.235, package=null, isBundled=true)
2022-04-20 06:15:16,423 [   2155]   WARN - #c.i.n.i.NotificationGroupManagerImpl - Notification group ASP.NET Core Certificate Notifications is already registered (group=com.intellij.notification.NotificationGroup@7c8c2de2). Plugin descriptor: PluginDescriptor(name=IDEA CORE, id=com.intellij, descriptorPath=plugin.xml, path=~/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.rider/riderRD/2022.1/3359a42138f5a6a0343321213b46ac791240e1c4/riderRD-2022.1/lib, version=221.5080.235, package=null, isBundled=true)
2022-04-20 06:15:16,479 [   2211]   WARN - #c.i.i.DebugAttachDetector - Unable to start DebugAttachDetector, please add `--add-exports java.base/jdk.internal.vm=ALL-UNNAMED` to VM options

But I can build the plugin locally on my Windows machine and everything works fine.

@vladyslav-burylov Could you please do the publishing manually?
I will handle the automatic deployment.

Change keyboard shortcut

Hey @vladyslav-burylov

I just recognized that the keyboard shortcut Ctrl + Shift + I of the plugin is already in use and therefore doesn't work (at least in Rider 2022.2):
image

What do you think, let's change the keyboard shortcut?

Future of this repo

Dear @vladyslav-burylov and @matkoch,

Since the functionality of this plugin is now part of Rider itself, I no longer see value in maintaining it.

Do you agree? If yes, what should we do with this repo and the plugin? Can we archive them?

Does not do anything (Rider, .NET 7, NUnit)

It does not seem to work for me with Rider and NUnit:

  • when I have no test file, I do not get the request to create one, as you have shown in the Readme
  • even when I have a file, nothing happens, it does not jump anywhere

grafik

I tried:

  • the hotkey
  • the assigned click pattern
  • the action menu as shown above
  • it also does not jump back from the test to the implementation

Example

I explicitly made an example (aka minimum reproducible example aka MRE) .NET 7.0 project: TestProject2.zip

It basically uses the Rider templates, one ClassLibrary:

namespace ClassLibrary;

public class Class1
{
    public void Do() =>
        Console.WriteLine("something");
}

...and one ClassLibrary.Test:

namespace ClassLibrary.Test;

[TestOf(typeof(Class1))]
public class Class1Test
{
    [SetUp]
    public void Setup() { }

    [Test]
    public void Test1()
    {
        new Class1().Do();
        
        Assert.Pass();
    }
}

What I have tried/did not help

  • As you can see, I already added TestOf atttribute, without success
  • Adding [TestFixture]
  • Running the test.
  • Running the test including coverage (with dotCover):
    grafik
  • not using any suffix for the test class at alll, i.e. renaming it to Class1
  • I have no idea what more to try...

Settings

grafik

Keymap settings:
grafik

The menu entry I used when trying it via the actions search:
grafik

System

JetBrains Rider 2023.2.2
Build #RD-232.9921.83, built on September 24, 2023
***
Runtime version: 17.0.8+7-b1000.22 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10.0
.NET Core v7.0.7 x64 (Server GC)
GC: G1 Young Generation, G1 Old Generation
Memory: 4070M
Cores: 12
Registry:
    ide.experimental.ui=true
    database.show.search.tab=false
    ide.new.project.model.index.case.sensitivity=true
    vcs.empty.toolwindow.show=false

Non-Bundled Plugins:
    com.github.lppedd.idea-conventional-commit (0.22.0)
    testlinker2-rider (2023.2.2)
    de.femtopedia.diffplugin (2.1.11)
    fluentassertions-rider (2023.2.0)
    nsubstitutecomplete-rider (1.10.0)
    com.intellij.plugin.adernov.powershell (2.1.0)
    me.seclerp.rider.plugins.efcore (232.1.0)
    com.intellij.ml.llm (232.9826)
    com.microsoft.vso.idea (1.162.2)
    zielu.gittoolbox (500.0.20+222)
    mobi.hsz.idea.gitignore (4.5.1)
    izhangzhihao.rainbow.brackets (2023.3.5)

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.