Skip to content
This repository has been archived by the owner on Jun 21, 2021. It is now read-only.

This plugin is deprecated and archived #164

Closed
mrmlnc opened this issue Jul 5, 2020 · 10 comments
Closed

This plugin is deprecated and archived #164

mrmlnc opened this issue Jul 5, 2020 · 10 comments
Assignees

Comments

@mrmlnc
Copy link
Owner

mrmlnc commented Jul 5, 2020

The main package (stylefmt) that uses this extension is no longer being developed. I don't see the point in using outdated technology.

Instead of stylefmt you can use the following solutions:

I am releasing the last release of this extension and archiving it.

I am ready to back to the plugin support if the main package find a maintainer and back to the active development. Right now, this is the last release (not a latest).

@mrmlnc mrmlnc pinned this issue Jul 5, 2020
@mrmlnc mrmlnc self-assigned this Jul 5, 2020
@ronilaukkarinen
Copy link
Contributor

Stylefmt is better than prettier and others which force some styling preferences so I will keep using it. This PR with these updates fixes this plugin even though the main package is no longer developed. It uses my fork of stylefmt that has been updated to fixed packages.

The funny thing is, practically stylefmt works perfectly fine as long as stylelint is kept up to date once or twice a year, because there will be some slight changes in stylelint rule sets that will be outdated in some points. Very small things but affect everyone because packages are not updated. See my other related issues: here, here, here and here.

So basically it means that stylefmt depends on packages like stylelint and it's broken ONLY because the developer is too lazy to run npm update... the stylefmt itself is functioning as long as you update the packages. The maintainer has not updated stylelint for years as seen here, the newest version is 13.6.1. The world we live in...

@ronilaukkarinen
Copy link
Contributor

So for future refrence and other people (you might want to add this to README @mrmlnc if you are not interested in upkeeping this repository any more nor merging my PR) to get vscode-stylefmt working again:

  1. cd ~/.vscode/extensions/mrmlnc.vscode-stylefmt-2.6.1
  2. code package.json
  3. Edit lines shown here and save package.json
  4. Run npm update
  5. Restart VSCode / Reload extensions from disk

Tested and confirmed working with latest and clean vscode-stylefmt.

@mrmlnc
Copy link
Owner Author

mrmlnc commented Aug 27, 2020

JFYI: I can transfer this repository to you. In this case, you will need to publish the extension in the store under your publisher. Alternatively, you can add your changes to the root repository (stylefmt) or become its maintainer.

@ronilaukkarinen
Copy link
Contributor

I don't really have any other VSCode plugins so the world is unfamiliar to me. If you mean this stylefmt repository, its maintainer morishitter has been in the dark for two years and that's the origin of most issues so that won't help. I use stylefmt daily so would be glad to take over. I just need some time to create my own version of the plugin, you can then point this one to the new one. I'll let you know when I have time, may take a while though.

@ronilaukkarinen
Copy link
Contributor

Hey @mrmlnc, I now have my active fork as a working VSCode plugin:

Source
Visual Studio Marketplace

@ronilaukkarinen
Copy link
Contributor

@mrmlnc Do you have an idea why it says

Activating extension 'ronilaukkarinen.vscode-stylefmt' failed: Cannot find module 'postcss'
Require stack:
- /Users/rolle/.vscode/extensions/ronilaukkarinen.vscode-stylefmt-2.7.6/out/stylefmt/index.js
- /Users/rolle/.vscode/extensions/ronilaukkarinen.vscode-stylefmt-2.7.6/out/extension.js
- /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/loader.js
- /Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap-amd.js
- /Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap-fork.js.

Everything should be all right and I haven't done any modifications other than installed travis and updated dependencies... 🤔 I'm kinda new to this as this is my first vscode plugin.

@ronilaukkarinen
Copy link
Contributor

On development mode F5 it works though...

Loading development extension at /Users/rolle/Projects/vscode-stylefmt

Why is that?

@ronilaukkarinen
Copy link
Contributor

ronilaukkarinen commented Oct 19, 2020

...well, I had node_modules inside .vscodeignore... Thank goodness it works now. (ref)

@ronilaukkarinen
Copy link
Contributor

@mrmlnc As a reminder, I have active repos for both vscode-stylefmt and stylefmt, you could point your users to this direction. Thanks.

@mrmlnc
Copy link
Owner Author

mrmlnc commented Jun 21, 2021

A link to your extension has been added to the plugin description.

@mrmlnc mrmlnc closed this as completed Jun 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants