BetterErrors / better_errors

Better error page for Rack apps
MIT License
6.88k stars 436 forks source link

Support for Panic's Nova #518

Open MtnBiker opened 1 year ago

MtnBiker commented 1 year ago

Can support for Nova

MtnBiker commented 1 year ago

Great. I appreciate this. Glad you figured out what I meant, because I obviously left some words out.

goulvench commented 1 year ago

Nova 11 now supports opening files.

I just confirmed it works by adding an initializer with following code:

if defined?(BetterErrors)
  BetterErrors.editor = "nova://open?path=%{file}&line=%{line}"
end

Need a PR for this?

MtnBiker commented 1 year ago

I changed something else and now have a conflict with "build:css": "sass ./app/assets/stylesheets/application.scss:./app/assets/builds/application.css --no-source-map --load-path=node_modules". Can't build with gem 'better_errors'. Get an error: <internal:~/.rubies/ruby-3.2.0/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:inrequire': cannot load such file -- sassc (LoadError) from <internal:~/.rubies/ruby-3.2.0/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in require'

Rails 7.1, ruby-3.2.0, chruby, gem "dartsass-rails", "~> 0.4.1"

goulvench commented 1 year ago

@MtnBiker that’s a totally unrelated problem, head to Stack Overflow to find a fix for that.