nix-idea icon indicating copy to clipboard operation
nix-idea copied to clipboard

Provide instructions how to use this plugin

Open iirekm opened this issue 2 years ago • 2 comments

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.

iirekm avatar Jan 05 '23 18:01 iirekm

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 avatar Jan 06 '23 02:01 JojOatXGME

Any other cases you would like to see?

support --debugger

hab25 avatar May 30 '23 21:05 hab25