alexey-anufriev / scopes-manager-intellij-plugin

Scopes Manager IntelliJ Plugin
https://plugins.jetbrains.com/plugin/14987-scopes-manager
10 stars 3 forks source link

Rider - "Add to Scope" and "Remove from Scope" popup menus say "Nothing here" even though scopes are available #20

Closed trackroute closed 5 months ago

trackroute commented 8 months ago

Firstly, thanks for the great plugin.

I'm trying to use the plugin with Rider (version 2023.3.2) on Linux, but it doesn't seem to be working correctly because the "Alt-S" and "Alt-D" popup menus say "Nothing here" even though there are both local and shared scopes configured.

Addtoscope

Also, there are no "Add to Scope" and "Remove from Scope" and "Clear Scope" options in the right click menu (when right clicking on a file or folder).

RightClickMenu

Note that this is a Rider specific problem. (The plugin is working perfectly with RustRover on my system).

Thanks.

alexey-anufriev commented 8 months ago

hi @trackroute, thank you for your contribution, I will take a look at this problem shortly.

AAZANOVICH commented 7 months ago

@alexey-anufriev I Have the same issue, but just with "Remove from scope". When I click on module and press Opt + D (MacOS) I see "Nothing here", but when I select directory/package/file under module root, then I can see Scopes and remove selected directory/package/file (Not Entire module).

NOTE: Initially entire module was added to scope not separate files or directories etc. (Golang)

Plugin version 1.9.5 / Intellij IDEA Build #IU-233.14015.106, built on January 24, 2024

alexey-anufriev commented 6 months ago

The fix will be released soon in 1.9.6.

alexey-anufriev commented 6 months ago

Release is available of the marketplace. I am closing this issue. Reopen/record a new one if the fix did not help.

AAZANOVICH commented 6 months ago

Updated to 1.9.6, same issue, nothing changed. Tried to uninstall plugin and install again and restart, doesn't help. Updated IDE to 2024.1 Build #IU-241.14494.240, built on March 27, 2024 .. (same issue)

Also found in logs:

2024-04-05 13:46:03,754 [ 3110] WARN - #c.i.i.s.i.StartupManagerImpl - Migrate com.alexey_anufriev.scopes_manager.ScopesManagerInitializer to ProjectActivity [Plugin: com.alexey-anufriev.scopes-manager-intellij-plugin] com.intellij.diagnostic.PluginException: Migrate com.alexey_anufriev.scopes_manager.ScopesManagerInitializer to ProjectActivity [Plugin: com.alexey-anufriev.scopes-manager-intellij-plugin] at com.intellij.ide.startup.impl.StartupManagerImpl.runPostStartupActivities(StartupManagerImpl.kt:275) at com.intellij.ide.startup.impl.StartupManagerImpl.access$runPostStartupActivities(StartupManagerImpl.kt:68) at com.intellij.ide.startup.impl.StartupManagerImpl$runPostStartupActivities$3$2.invokeSuspend(StartupManagerImpl.kt:191) at com.intellij.ide.startup.impl.StartupManagerImpl$runPostStartupActivities$3$2.invoke(StartupManagerImpl.kt) at com.intellij.ide.startup.impl.StartupManagerImpl$runPostStartupActivities$3$2.invoke(StartupManagerImpl.kt) at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:78) at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:167) at kotlinx.coroutines.BuildersKt.withContext(Unknown Source) at com.intellij.ide.startup.impl.StartupManagerImpl$runPostStartupActivities$3.invokeSuspend(StartupManagerImpl.kt:190) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.UndispatchedCoroutine.afterResume(CoroutineContext.kt:270) at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)

alexey-anufriev commented 6 months ago

@AAZANOVICH, could you please send me a screenshot?

AAZANOVICH commented 6 months ago

@alexey-anufriev Please see attached video. Steps to reproduce: 1) Create Go project 1 (go-project-1) 2) Create Go project 2 (go-project-2) 3) From go-project-1 window add go-project-2 as a new module from source (File/New/Module From Existing Sources...) 4) Click on go-project-1 and use plugin shortcut to Create New Scope (Scope 1) 5) Click on go-project-2 and use plugin shortcut to Add go-project-2 to previously created Scope 1 6) Click on go-project-2 and use plugin shortcut to delete go-project-2 from Scope 1

Expected: Context menu should have Scope 1 listed Actual: Scope 1 is missed

Note: It works if go-project-1 is selected, seems like it works only for "parent project" which imported other modules.

https://github.com/alexey-anufriev/scopes-manager-intellij-plugin/assets/7366271/21bd802b-ab98-4523-aa4c-a5cdba0f8a98

image

alexey-anufriev commented 5 months ago

Should be fixed in 1.9.8.

There is a tiny visual glitch with the root folder color in the project tree. I will report this to JetBrains.