Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide instructions how to use this plugin #52

Open
iirekm opened this issue Jan 5, 2023 · 2 comments
Open

Provide instructions how to use this plugin #52

iirekm opened this issue Jan 5, 2023 · 2 comments
Assignees

Comments

@iirekm
Copy link

iirekm commented Jan 5, 2023

I installed nix-idea plugin, and it seems to don't do anything useful:

  • syntax highlighting is minimal (only string literals and ;s are displayed with a different color)
  • ctrl+b (go to definition) doesn't work
  • ctrl+q (show documentation) doesn't work
  • no way to run .nix files directly from IntelliJ
  • when I on purpose introduce an error (e.g. non-existing parameter name) - no error is shown

Does it need an extra setup? Or it simply doesn't work in IntelliJ 2022.2.2? Nix is installed in my system the standard way into /nix.

@JojOatXGME
Copy link
Contributor

JojOatXGME commented Jan 6, 2023

The plugin should also show syntax errors without delay, matches braces, and adds support for commenting out lines (Ctrl + /). Besides that, the plugin just doesn't do that much right now. Unfortunately, I am currently not able to invest as much time into this project as it would deserve.

I guess I could improve the syntax highlighting with some heuristics without much time investment. For failproof syntax highlighting (and many other features), we would first need to implement support for resolving references.

Running .nix files from IntelliJ might be a feature which could be added with relative ease. We would first need to define which types of “running” we want to implement. I guess the most obvious cases are evaluating a file (just for validation) and building derivations. Any other cases you would like to see?

@JojOatXGME JojOatXGME self-assigned this Feb 6, 2023
@hab25
Copy link

hab25 commented May 30, 2023

Any other cases you would like to see?

support --debugger

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants