Git Product home page Git Product logo

Comments (7)

saolsen avatar saolsen commented on August 25, 2024 24

Pycharm support. #541

We've also had requests for Intellij and Webstorm in slack and I think if we had polar syntax support in Intellij it would work with all of them.

from oso.

ximon18 avatar ximon18 commented on August 25, 2024 5

@saolsen: Hi, yes I have the extension installed but completely forgot about it! Syntax highlighting is a great start, what would be a useful next step would be the ability to click through from the usage of a rule to the definition of the rule. This would also help with understanding what ?= test rules are invoking.

On the topic of test rules i find that the ?= statements that I have defined near the rules that they test are a "noisy" distraction when I want to just see the rules themselves. So perhaps a way to "fold" them out of sight or to dim them so that they are less prominent than the rules themselves?

And with multiple .polar files in a project perhaps it could be handy to visualize / list all .polar files in a sidebar view?

How about completion of valid next keywords, or (and this is language and client implementation specific so probably not easy or perhaps not even possible) also completion of client supplied methods on client supplied types?

Formatting to a standard format? (e.g. how would you format this?)

The colour theme could also do with more separate colours, e.g. this is a bit heavy on blue:
image

Perhaps a standard for showing "doc" comments above rules on hover using comments in the lines immediately preceeding a rule definition?

Popup documentation for in-built Polar keywords on hover? And/or links to the online documentation?

If I'm allowed to dream, immediate feedback of ?= test rule success or failure or perhaps even a means to evaluate rules in the IDE using given inputs.

Errm, I'll stop there for a moment and breathe :-)

from oso.

ximon18 avatar ximon18 commented on August 25, 2024 1

If there was better support for navigation like you mentioned, would it make sense to put tests in a separate file?

Maybe, but if I recall correctly this didn't work when I tried it (with Oso 0.8.0 I think), there was some unknown type or reference or definition or rule issue or something.

from oso.

ximon18 avatar ximon18 commented on August 25, 2024

VS Code please.

from oso.

saolsen avatar saolsen commented on August 25, 2024

VS Code please.

We have some vscode support already. Right now it's just syntax hi-lighting.

https://marketplace.visualstudio.com/items?itemName=osohq.oso

@ximon18 What would you like to see in the vscode plugin?

from oso.

saolsen avatar saolsen commented on August 25, 2024

Awesome, thanks! These are really great suggestions!

from oso.

samscott89 avatar samscott89 commented on August 25, 2024

@ximon18 just getting a chance to go through this. This is fantastic feedback, and super helpful validation for us as we decide where to spend time.

would be a useful next step would be the ability to click through from the usage of a rule to the definition of the rule.

Definitely! Especially if multiple are defined, having a way to see all implementations of a rule would be great. And in the other direction too - see where a rule is used.

On the topic of test rules i find that the ?= statements that I have defined near the rules that they test are a "noisy" distraction when I want to just see the rules themselves

Interesting idea -- I hadn't thought of this. Maybe a configuration value or something to toggle this? If there was better support for navigation like you mentioned, would it make sense to put tests in a separate file?

And with multiple .polar files in a project perhaps it could be handy to visualize / list all .polar files in a sidebar view?

💯 want to do this

How about completion of valid next keywords, or (and this is language and client implementation specific so probably not easy or perhaps not even possible) also completion of client supplied methods on client supplied types?

The former, absolutely, the latter is a super tricky one. I agree it would be incredibly valuable though, so very much motivated to make it work.

Need to stop here, and will keep going in a bit! Thank you again <3

from oso.

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.