Simple Language Plugin testing for a working IDE

Hi

I have tried many of the plugin examples found here and some have worked, but with simple_language_plugin I can’t find the language in settings and can not think or find how to test if my IDE has in fact been run correctly with the “new” language features.

What I’m looking for is a step-by-step process to demonstrate the plugin features. I’ve tried asking AI but it was no use.

Please help :slight_smile:

Sorry to blag but I can’t for the life of me see where the plugin does anything.

I’m new to PHPStorm and appreciate its not technical but I just can’t see it!

Thanks

Hi,

the simple_language_plugin is described in detail in the Custom Language Support Tutorial.

To get started:

  • Build the plugin via gradlew buildPlugin.
  • Install it into your IDE from build/distributions/directory.
  • Try to create an empty file with a .simple file extension.
  • Play around, for example, try to add comment from the menu (Code | Comment with Line Comment), or try the autocomplete on the key = <place-cursor-here> line.

Thank you. Plugin not working but the link is what I needed.

Sorry. I can’t get it working, can you explain a bit what I should see?

I am running runIdefrom the gradle build system which does work for some but not for this one it appears.

I click that, then it opens JetBrains IDEA program, but nothing appears at the cursor when I type key = xyzin an empty example.simplefile.

Paste from the console here: 00:35:07: Executing 'runIde'…Calculating task graph as configuration cache c - Pastebin.com

Are you able to add a comment from the menu (Code | Comment with Line Comment)?

Alternatively, can you see the Settings | Editor | Color Scheme | Simple?

I can see the Colour Scheme “Simple”. That’s progress!

I am going to try and learn a bit about this to help my framework so any/all advice would be appreciated.

Once you are able to see the corresponding Colour scheme, the plugin is available and working. Feel free to investigate the source code, look around and try to map the corresponding source code elements to the IDE actions.

Do not hesitate to ask any specific questions, as well.

1 Like