Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Pre-Release] Extension did not activate on any monorepo project (PNPM, Rush, Lerna) #453

Closed
evamass opened this issue Oct 30, 2022 · 9 comments

Comments

@evamass
Copy link

evamass commented Oct 30, 2022

Seems like extension was broken in pre-release versions when in package.json was added some extraordinaries activationEvents.

Monorepo projects often does not have node_modules in root of project to prevent shadow dependencies, so I think there a very bad practice to choose for users when extension should be enabled or not. Any VS-code users have option to disable extension per Workspaces if he need.

@alexanderniebuhr , please, add more flexible activationEvents or special config for force activate this extension or revert any changes to last release variant.

@evamass evamass changed the title [Pre-Release] Extension did activate on any monorepo project (PNPM, Rush, Lerna) [Pre-Release] Extension did not activate on any monorepo project (PNPM, Rush, Lerna) Oct 30, 2022
@Tanimodori
Copy link
Contributor

Same issue here. The pre-release version stop working on a rush monorepo project. Any commands cannot be found.

@Tanimodori
Copy link
Contributor

in 75ac27c

  "activationEvents": [
-    "workspaceContains:**/node_modules/windicss/*",
-    "workspaceContains:**/node_modules/vite-plugin-windicss/*",
-    "workspaceContains:**/node_modules/rollup-plugin-windicss/*",
-    "workspaceContains:**/node_modules/windicss-webpack-plugin/*",
-    "workspaceContains:**/node_modules/nuxt-windicss/*",
-    "workspaceContains:**/node_modules/svelte-windicss-preprocess/*",
-    "workspaceContains:**/node_modules/stencil-windics/*s"
+    "workspaceContains:node_modules/windicss/package.json",
+    "workspaceContains:node_modules/vite-plugin-windicss/package.json",
+    "workspaceContains:node_modules/rollup-plugin-windicss/package.json",
+    "workspaceContains:node_modules/windicss-webpack-plugin/package.json",
+    "workspaceContains:node_modules/nuxt-windicss/package.json",
+    "workspaceContains:node_modules/svelte-windicss-preprocess/package.json",
+    "workspaceContains:node_modules/stencil-windics/package.json"
  ],

@alexanderniebuhr Please revert this. It is unusable in monorepo.

@alexanderniebuhr
Copy link
Member

@Tanimodori that is an hard tradeoff. People complain if we activate on *, they complain if we activate on windi.config file.
Therefore this one is the best middle-ground. If I understand correctly, latest non pre-release version work? Why not using that?

Additionally you can make an PR which changes the activationEvents with all the limits outlined in the first sentence.

@Tanimodori
Copy link
Contributor

If they don't want unnecessary startup they can disable this plugin (globally or per workspace) as mentioned by evamass. I don't think we should detect node_modules to control activationEvents. Another example is that I just want to make a quick fix on some repository, where install node modules is not required. By detecting node_modules it will prevent windicss-intellisense from startup.

@Tanimodori
Copy link
Contributor

I've encountered #353 in prod version and just want to try the alpha.

Tanimodori added a commit to Tanimodori/windicss-intellisense that referenced this issue Nov 22, 2022
@Tanimodori
Copy link
Contributor

Thank you for merging! Let's wait until v0.23.6 gets released into the plugin market!

@alexanderniebuhr
Copy link
Member

Actually waiting for someone to add a new PAT.. I do not have the permission to do that.

@Tanimodori
Copy link
Contributor

When will v0.23.6 get released on the marketplace? It's been a month since this patch was merged...

@alexanderniebuhr
Copy link
Member

Once someone with access to the account will update the token... I've pinged them multiple times... nothing I can do..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants