Giter Club home page Giter Club logo

Comments (16)

mathieudutour avatar mathieudutour commented on May 24, 2024
  • did you build the plugin?
  • Did you rename the plugin?
  • Did you change the "main" field in your package.json?

from skpm.

florianpeninon avatar florianpeninon commented on May 24, 2024

did you build the plugin?

Yes

Did you rename the plugin?

Yes

Did you change the "main" field in your package.json?

Yes

The plugin is showing up in the list of plugins in Preferences but doesn't show up in the menubar under Plugins

from skpm.

mathieudutour avatar mathieudutour commented on May 24, 2024

Did you change the "main" field in your package.json? yes

That's why. Delete the alias in the plugin folder and try to link it again

from skpm.

florianpeninon avatar florianpeninon commented on May 24, 2024

I did this a couple of time and it had no effect on the outcome.

from skpm.

mathieudutour avatar mathieudutour commented on May 24, 2024

just to be sure: [email protected] ?

from skpm.

florianpeninon avatar florianpeninon commented on May 24, 2024

Yep, is there anything I can do to help produce some logs?

from skpm.

mathieudutour avatar mathieudutour commented on May 24, 2024

hum not really, looks like the alias is pointing to the wrong file.

Can you copy paste your package.json? And tell me where the alias is pointing to (right click -> Get Info -> Original)?

from skpm.

florianpeninon avatar florianpeninon commented on May 24, 2024

Package.json

{
	"name": "sketch-2-react",
	"version": "1.0.0",
	"description": "",
	"main": "index.js",
	"scripts": {
		"test": "echo \"Error: no test specified\" && exit 1",
		"build": "skpm build",
		"publish": "skpm publish"
	},
	"author": "",
	"license": "ISC",
	"engines": {
		"sketch": ">=3.0"
	},
	"devDependencies": {
		"skpm": "^0.10.1"
	},
	"skpm": {
		"manifest": "src/manifest.json",
		"main": "sketch-2-react.sketchplugin"
	}
}

Alias pointing to : /Users/florianpnn/Documents/projects/sk-plugins/sketch-2-react/sketch-2-react.sketchplugin (which is accurate)

from skpm.

mathieudutour avatar mathieudutour commented on May 24, 2024

wait so symlink is ok but not the plugin then?

  • What happens when you double click on /Users/florianpnn/Documents/projects/sk-plugins/sketch-2-react/sketch-2-react.sketchplugin?
  • If you inspect /Users/florianpnn/Documents/projects/sk-plugins/sketch-2-react/sketch-2-react.sketchplugin (right click -> show content), is there a Contents/Sketch/manifest.json?

from skpm.

florianpeninon avatar florianpeninon commented on May 24, 2024

It's a weird bug, when I install the plugin it installs it but don't show up in the Plugins dropdown.
It contains all it should, manifest.json & index.js

from skpm.

mathieudutour avatar mathieudutour commented on May 24, 2024

That's really weird indeed. What does your manifest look like? (we will get to the bottom of this 😆 )

from skpm.

florianpeninon avatar florianpeninon commented on May 24, 2024

I just tried with the basic boilerplate and it is working, therefore I assume that I messed up somewhere.
I'll investigate and close if I don't see any problem coming from the tool itself.

from skpm.

mathieudutour avatar mathieudutour commented on May 24, 2024

ok, even if it's with your code, keep me updated: if we can warn or something it could be great

from skpm.

florianpeninon avatar florianpeninon commented on May 24, 2024

I couldn't find where I screwed up, I c/p the same plugin in a new skpm init and it worked.

from skpm.

 avatar commented on May 24, 2024

I just had the same problem, it was at my manifest.json, i messed up the "identifier" field i change it back to the default "my-command-identifier" and it worked fine again, i hope it helps.

from skpm.

mathieudutour avatar mathieudutour commented on May 24, 2024

you can change the identifier as long as you change it in the "menu" as well

from skpm.

Related Issues (20)

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.