Skip to content

Enable Scala syntax highlighting#186

Merged
nbauernfeind merged 1 commit intodeephaven:mainfrom
nbauernfeind:scala
Sep 8, 2021
Merged

Enable Scala syntax highlighting#186
nbauernfeind merged 1 commit intodeephaven:mainfrom
nbauernfeind:scala

Conversation

@nbauernfeind
Copy link
Contributor

Although this is not yet available via the DHC server, the change-set itself is valid and mergeable.

I did notice that the python implementation both is similar and dissimilar to the official monaco-languages python definition. We appear to be missing a handful of keywords. Also, I suspect that the python implementation needs to properly reference the original MIT license.

I wasn't sure of exactly how to make it clear the scala implementation was sourced from a piece of work under the MIT license. I took a first stab at it, but suspect it is inadequate.

I'd be happy to give a demo with or without notice. Looking forward to hearing how to proceed.

@nbauernfeind nbauernfeind added this to the September 2021 milestone Sep 6, 2021
@nbauernfeind nbauernfeind requested a review from mofojed September 6, 2021 18:25
@nbauernfeind nbauernfeind self-assigned this Sep 6, 2021
@nbauernfeind nbauernfeind force-pushed the scala branch 9 times, most recently from beff732 to 13cf540 Compare September 6, 2021 20:47
Copy link
Member

@mofojed mofojed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Licensing looks fine to me.

I don't know why we're building scala support in the UI first without having it on the server first, but whatever.

The python/groovy ones are a little different than the Microsoft provided ones, James created them to parse out Deephaven Java code within strings (I think) so there's a bit of nesting there.

@nbauernfeind
Copy link
Contributor Author

I don't know why we're building scala support in the UI first without having it on the server first, but whatever.

I am contributing a Scala solution purely from free time. That time is pretty limited (with children and all), and saving 15m each weekend is pretty beneficial to me. I have been committing changes to the core repository that are building blocks to support scala over-time, too. The JavaParser change, for example, ate at least two weekends worth of free time -- not including several weeknights. I would never finish if I couldn't commit finished pieces.

My ambitions here are huge. I appreciate being able to make progress one step at a time. Thank you for the review =).

I have a lot of use cases working from the re-imagined Scala REPL, but there are still more things to do. I am also contributing back to the REPL project that I've chosen to chase; I am still using locally built versions at this point. As I'm crossing t's and dotting i's, the syntax highlighting was becoming one of the larger pain points. Getting this into the next release means I can stop re-building, re-deploying, re-basing, etc the web-client-ui as I continue on the path to introducing something, I believe, is going to be very exciting even for people who don't have an interest in Scala.

P.S. I also have another idea for the web-client-ui that I'm building in addition to this change. Understanding the web-team's build, review, and merge process will save me time on any future contributions. (The process-learning goal is also the reason for the plotly change, which I have not yet finished.)

@nbauernfeind nbauernfeind merged commit 462b274 into deephaven:main Sep 8, 2021
mofojed added a commit to mofojed/web-client-ui that referenced this pull request Sep 13, 2021
* `code-studio`, `console`, `file-explorer`
  * [deephaven#186](deephaven#186) Enable Scala syntax highlighting ([@nbauernfeind](https://github.com/nbauernfeind))
* `components`, `grid`, `iris-grid`
  * [deephaven#174](deephaven#174) Make scrollbar styling consistent ([@dsmmcken](https://github.com/dsmmcken))

* `console`, `iris-grid`
  * [deephaven#179](deephaven#179) Update monaco-editor to 0.27.0 ([@mofojed](https://github.com/mofojed))

* `code-studio`
  * [deephaven#187](deephaven#187) Fix proxy ([@mofojed](https://github.com/mofojed))

- Don ([@dsmmcken](https://github.com/dsmmcken))
- Mike Bender ([@mofojed](https://github.com/mofojed))
- Nate Bauernfeind ([@nbauernfeind](https://github.com/nbauernfeind))
@mofojed mofojed mentioned this pull request Sep 13, 2021
mofojed added a commit that referenced this pull request Sep 13, 2021
* `code-studio`, `console`, `file-explorer`
  * [#186](#186) Enable Scala syntax highlighting ([@nbauernfeind](https://github.com/nbauernfeind))
* `components`, `grid`, `iris-grid`
  * [#174](#174) Make scrollbar styling consistent ([@dsmmcken](https://github.com/dsmmcken))

* `console`, `iris-grid`
  * [#179](#179) Update monaco-editor to 0.27.0 ([@mofojed](https://github.com/mofojed))

* `code-studio`
  * [#187](#187) Fix proxy ([@mofojed](https://github.com/mofojed))

- Don ([@dsmmcken](https://github.com/dsmmcken))
- Mike Bender ([@mofojed](https://github.com/mofojed))
- Nate Bauernfeind ([@nbauernfeind](https://github.com/nbauernfeind))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants