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

Rails Dev task exits immediately #35

Open
collindonnell opened this issue Nov 7, 2023 · 3 comments
Open

Rails Dev task exits immediately #35

collindonnell opened this issue Nov 7, 2023 · 3 comments

Comments

@collindonnell
Copy link

The Rails Server task works great, but whenever I've tried the dev task, it starts up and then exits immediately. I've also tested running bin/rails dev from a custom task with the same result, so maybe this is a Nova issue?

@maks112v
Copy link

Having the same issue with both the extensions & custom tasks. bin/bash does work directly in a terminal

21:54:53 web.1    | started with pid 84028
21:54:53 css.1    | started with pid 84029
21:54:53 worker.1 | started with pid 84030
21:54:53 web.1    | DEBUGGER: Debugger can attach via UNIX domain socket (/var/folders/rx/2kty5p1s1gj4b4lyltj7txth0000gn/T/ruby-debug-sock-501/ruby-debug-maks-84028)
21:54:53 web.1    | WARN: Unresolved or ambiguous specs during Gem::Specification.reset:
21:54:53 web.1    |       rdoc (>= 0)
21:54:53 web.1    |       Available/installed versions of this gem:
21:54:53 web.1    |       - 6.6.0
21:54:53 web.1    |       - 6.5.0
21:54:53 web.1    | WARN: Clearing out unresolved specs. Try 'gem cleanup <gem>'
21:54:53 web.1    | Please report a bug if this causes problems.
21:54:55 web.1    | => Booting Puma
21:54:55 web.1    | => Rails 7.1.2 application starting in development 
21:54:55 web.1    | => Run `bin/rails server --help` for more startup options
21:54:55 worker.1 | 2023-11-12T02:54:55.546Z pid=84030 tid=1uie INFO: Initializing websocket
21:54:55 worker.1 | 2023-11-12T02:54:55.562Z pid=84030 tid=1uie INFO: Booted Rails 7.1.2 application in development environment
21:54:55 worker.1 | 2023-11-12T02:54:55.562Z pid=84030 tid=1uie INFO: Running in ruby 3.2.2 (2023-03-30 revision e51014f9c0) [arm64-darwin23]
21:54:55 worker.1 | 2023-11-12T02:54:55.562Z pid=84030 tid=1uie INFO: See LICENSE and the LGPL-3.0 for licensing details.
21:54:55 worker.1 | 2023-11-12T02:54:55.562Z pid=84030 tid=1uie INFO: Upgrade to Sidekiq Pro for more features and support: https://sidekiq.org/
21:54:55 worker.1 | 2023-11-12T02:54:55.562Z pid=84030 tid=1uie INFO: Sidekiq 7.2.0 connecting to Redis with options {:size=>10, :pool_name=>"internal", :url=>nil}
21:54:55 worker.1 | 2023-11-12T02:54:55.564Z pid=84030 tid=1uie INFO: Sidekiq 7.2.0 connecting to Redis with options {:size=>5, :pool_name=>"default", :url=>nil}
21:54:55 web.1    | Puma starting in single mode...
21:54:55 web.1    | * Puma version: 6.4.0 (ruby 3.2.2-p53) ("The Eagle of Durango")
21:54:55 web.1    | *  Min threads: 5
21:54:55 web.1    | *  Max threads: 5
21:54:55 web.1    | *  Environment: development
21:54:55 web.1    | *          PID: 84028
21:54:55 web.1    | * Listening on http://127.0.0.1:3000/
21:54:55 web.1    | * Listening on http://[::1]:3000/
21:54:55 web.1    | Use Ctrl-C to stop
21:54:56 css.1    | exited with code 0
21:54:56 system   | sending SIGTERM to all processes
21:54:56 web.1    | - Gracefully stopping, waiting for requests to finish
21:54:56 web.1    | Exiting
21:54:56 worker.1 | 2023-11-12T02:54:56.599Z pid=84030 tid=1uie INFO: Shutting down
21:54:56 worker.1 | 2023-11-12T02:54:56.600Z pid=84030 tid=1ph2 INFO: Scheduler exiting...
21:54:56 worker.1 | 2023-11-12T02:54:56.601Z pid=84030 tid=1uie INFO: Terminating quiet threads for default capsule
21:54:56 worker.1 | 2023-11-12T02:54:56.601Z pid=84030 tid=1pda INFO: Scheduler exiting...
21:54:57 worker.1 | 2023-11-12T02:54:57.106Z pid=84030 tid=1pgi INFO: Pausing to allow jobs to finish...
21:54:57 web.1    | terminated by SIGTERM
21:54:57 worker.1 | 2023-11-12T02:54:57.612Z pid=84030 tid=1uie INFO: Bye!
21:54:58 worker.1 | exited with code 0

@tomdringer
Copy link

Also the same issue with debug:

The extension “Ruby Debug” experienced an error.
TypeError: undefined is not an object (evaluating 'nova.workspace.activeTextEditor.document')

@djch
Copy link

djch commented Jan 9, 2024

Same here. I actually opened a support ticket with Panic about it (because the same thing happened when I set up a custom task to run bin bin/dev). But they never replied.

So probably can't blame the extension but it's good to see I'm not the only person struggling with this. I haven't been able to find a workaround beyond running it in a local terminal tab.

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