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

Regression: C-c C-l keeps asking for a new session for different files within the same project #265

Closed
ozataman opened this issue Apr 27, 2014 · 8 comments
Assignees

Comments

@ozataman
Copy link

Even after starting a session called project for project/Foo.hs, C-c C-l keeps asking whether we should start a new project named project for each newly introduced file under the same project.

This broke only recently (unless it was done by design, in which case I would ask that we create a flag to enable/disable it).

@chrisdone
Copy link
Member

Hmm. It would be surprising if there's a regression here; nobody touches that session code, not since last year.

Can you reduce it to a test-case of a few files that I can reproduce exactly locally?

@chrisdone chrisdone self-assigned this Apr 27, 2014
@chrisdone
Copy link
Member

@ozataman I just pushed a change c8a72bd which fixes a bug where when picking a session for a file, if there is an incomplete session which doesn't have a cabal-dir assigned to it yet, it will prompt for a cabal dir—which would then assign that directory to that incomplete session, even though you already had another session next on the list which would've been the right candidate. This made it pretty hard to reproduce when it happened so it's taken me a while to both notice it and be in a position to investigate it. Maybe this is the behaviour you were experiencing here.

@ozataman
Copy link
Author

Good to know, thank you. I'll pull and see if I see it again. I've
definitely been experiencing this quite often, but just haven't been able
to pin down exactly when/why it happened.

On Monday, May 12, 2014, Chris Done notifications@github.com wrote:

@ozataman https://github.com/ozataman I just pushed a change c8a72bdhttps://github.com/haskell/haskell-mode/commit/c8a72bdwhich fixes a bug where when picking a session for a file, if there is an
incomplete session which doesn't have a cabal-dir assigned to it yet, it
will prompt for a cabal dir. This made it pretty hard to reproduce when it
happened so it's taken me a while to both notice it and be in a position to
investigate it. Maybe this is the behaviour you were experiencing here.


Reply to this email directly or view it on GitHubhttps://github.com//issues/265#issuecomment-42854694
.

Ozgun Ataman

CEO

Soostone Inc.

+1 917 725 0849 (Office)
+1 734 262 0676 (Mobile)
+1 212 320 0251 (Fax)
ozgun.ataman@soostone.com

@chrisdone
Copy link
Member

There is also sometimes I think I've noticed a prompt for a project I was already in, but it's rare enough that I haven't noticed and am not sure it actually exists as a bug. If I see it again I'll pin it down and fix it.

@chrisdone
Copy link
Member

Oh, there it is! It's not quite as I described, but it's as I remembered. For some reason, calling M-x haskell-session-change makes it say Start new project named “projecti'malreadyin”? (y or n). I'll fix that.

@chrisdone
Copy link
Member

Okay, fixed that. I wonder if this'll fix this issue.

@sindikat
Copy link

How is it possible to make haskell-mode not to ask about starting a new project at all? I just want C-c C-l simply load the code into the inferior process and nothing more.

@gracjan
Copy link
Contributor

gracjan commented Mar 27, 2015

If I understand correctly original issue is resolved. If not do not hessitate to leavea note here.

As for the other request to simplify C-c C-l behavior there was a pull request about it #409.

@gracjan gracjan closed this as completed Mar 27, 2015
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

4 participants