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
[discuss] send compilation warnings to :after-load #64
Comments
I'll probably implement the warning/errors HUD myself soon since its only a bit of HTML construction. The client already gets all the relevant data. https://github.com/thheller/shadow-cljs/blob/master/src/main/shadow/cljs/devtools/client/browser.cljs#L211-L234 Those are the messages currently handled by the browser client and the Maybe a |
I'm okay with a different name of that config entry. If you are about to implement that, maybe make it pluggable? I mean I'm confident with my CSS skills so I can get a HUD message that I would like. Besides, in some cases you just can't be sure about the DOM structure, what it someone replaces content of the entire |
I just published It is enabled by adding Line 105 in a00907c
It uses a new "listener" Websocket that receives the same messages the default websocket does but is independent. It currently only receives messages and does not answer any other messages. I want to have a full remote API eventually but I'm still in the planning phase for that. Things will probably change slightly over time but you can build something on top of this already as seen in the HUD. I'd be curious to see other implementations, I hate UI work so mine is ugly and doesn't have any of the nice features. I'll definitely add the click-to-open thingy soon. |
This is cool. |
Just pushed a new release with support for Happy to add more defaults for editors if you can provide example command lines. It uses a very basic templating syntax where
Refer to the defaults for examples. |
This currently assumes that be command exits fairly quickly after calling. Otherwise the editor process will be tied to the |
According to the docs of Sublime Text http://www.sublimetext.com/docs/command-line sublimetext main.c:100:12 But in my laptop we use: /Applications/Sublime\ Text.app/Contents/MacOS/Sublime\ Text package.json:9:9 People usually create alias for that file. I remembered React Native has such feature: https://github.com/facebook/react-native/blob/992e37c8bcdb13c89cb680e385a0fb344137d0fa/local-cli/server/util/launchEditor.js#L90-L100 |
If you confirm that this works, I'll add it as a default template. :open-file-command ["sublimetext" ["%s:%s:%s" :file :line :column]] |
Not a fan of the |
I'll close this for now and open more focused tickets around a formal API soon. |
Maybe I can grab the messages and render a warning by myself? Like Figwheel's warnings?
The text was updated successfully, but these errors were encountered: