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

offer "--filter-position" (and perhaps --filter-symbol) via the IDE #484

Open
kjx opened this issue Jul 21, 2024 · 3 comments
Open

offer "--filter-position" (and perhaps --filter-symbol) via the IDE #484

kjx opened this issue Jul 21, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@kjx
Copy link

kjx commented Jul 21, 2024

The CLI has --filter-position and perhaps --filter-symbol options to drive verification.

because I have a bad habit of 10,000 line files (or rather projects in just one file - long story)
I tend to use that rather than the IDE verification.

it would be nice if I could click on a line and say "verify here" (i.e. --filter-position)
or on (or inside) a declaration and verify that declaration (ie.. -filter-symbol)

@keyboardDrummer
Copy link
Member

or on (or inside) a declaration and verify that declaration (ie.. -filter-symbol)

Can't you already do that? If you set 'automatic verification' to never:

image

Then you get these clickable icons in the gutter:

image

it would be nice if I could click on a line and say "verify here" (i.e. --filter-position)

For sure. I hope to build that, but I'm currently occupied with more pressing Dafny work

@keyboardDrummer keyboardDrummer added the enhancement New feature or request label Jul 23, 2024
@kjx
Copy link
Author

kjx commented Jul 23, 2024

I don't mean to hassle - and I'm fine with working with the IDE on 2/3rds or the screen and the CLI on the other.

I'd like to direct verification to a single line rather than a whole enclosing declaration: it's often quicker for me..

Also, no idea why the language server (does it stay around) is often slower at e.g. verifying a single method than the CLI. Again I know it's bad practice (long story: waiting til I get to a milestone to refactor) to have a 12k line file - but that means e.g. the pre verification etc happens on the whole file each time, and the IDE appears slower to me at than the CLI...

anyway - I do appreciate what you're doing making the IDE better!

@keyboardDrummer
Copy link
Member

keyboardDrummer commented Jul 24, 2024

I'd like to direct verification to a single line rather than a whole enclosing declaration: it's often quicker for me..

Yes, that's what I'd like to build. However, I don't have a timeline for when I'll do that.

Again I know it's bad practice (long story: waiting til I get to a milestone to refactor) to have a 12k line file

It's worse than you'd think. At the moment, parsing and resolution caching in the IDE only work for code that's in an unchanged file. You will see orders of magnitude improved IDE responsiveness if you use small files.

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

No branches or pull requests

2 participants