Comments (7)
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.
@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:
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.
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.
VS Code please.
from oso.
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.
Awesome, thanks! These are really great suggestions!
from oso.
@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)
- Drop support for Python 3.6 which is end-of-life
- Invalid state: Type `User` occurs more than once as the target of a relation HOT 2
- [Feature] Support ASP.NET Blazor Web Apps
- vscode extension not working
- Amazon Linux 2 support dropped due to glibc >= 2.28 requirement HOT 1
- Vulnerable dependency found - remove_dir_all HOT 1
- Syntax highlighting bug in Polar language server HOT 2
- Planning the next major version HOT 16
- How can I define Enum fields for register_class() HOT 3
- Constantly running into "unhandled partial" error HOT 2
- Getting all users who have a specific permission / list of permissions on a specified resource HOT 2
- ci failing on trunk
- [ask] rule match issue HOT 1
- Provide a VS Code web extension entrypoint HOT 4
- Using __dirname to locate polar_wasm_api_bg.wasm causes problems in AWS nodejs lambda
- Not installable on Python 3.12 HOT 4
- global roles
- Add support for `fmt.Stringer` implementations in Go SDK Oso methods, or propagate a warning message in instances where a type defined string is passed as the `action` argument
- Feature request: support for string interpolation or concatenation in polar
- linker error when building on alpine linux 3.19 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oso.