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

Recompile on Edit [RIP67] #73

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open

Conversation

AlexWeinstein92
Copy link
Collaborator

@AlexWeinstein92 AlexWeinstein92 commented Nov 21, 2024

  • error highlights on right side of editor show up when errors are typed
    • still need to remove the highlights (RIP41)
  • parseRootWithURLs in Settings on apply
  • parseNebulaContents in runCommandForEditor via DocumentListener.documentChanged
  • various bugs fixed from last PR
  • uses RIDDL 0.55.0 (unpublished, local build)

# Conflicts:
#	build.sbt
#	project/Dependencies.scala
#	src/main/scala/com/ossuminc/riddl/plugins/idea/settings/RiddlIdeaSettings.scala
#	src/main/scala/com/ossuminc/riddl/plugins/idea/settings/RiddlIdeaSettingsComponent.scala
#	src/main/scala/com/ossuminc/riddl/plugins/idea/settings/RiddlIdeaSettingsConfigurable.scala
#	src/main/scala/com/ossuminc/riddl/plugins/idea/utils/ParsingUtils.scala
#	src/main/scala/com/ossuminc/riddl/plugins/idea/utils/ToolWindowUtils.scala
#	src/main/scala/com/ossuminc/riddl/plugins/idea/utils/utils.scala
Copy link
Collaborator

@reid-spencer reid-spencer left a comment

Choose a reason for hiding this comment

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

This is too long to review in detail at 5pm but I made some comments about your build that you should change. In general, the immense amount of logic you're dealing with for highlighting could probably be changed to a TopLevelParser.parseToTokens call and a match statement on each of the resulting tokens.

It helps my review greatly if you can put a video showing the visual results.

build.sbt Outdated Show resolved Hide resolved
project/Dependencies.scala Outdated Show resolved Hide resolved
Copy link
Collaborator

@reid-spencer reid-spencer left a comment

Choose a reason for hiding this comment

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

LGTM, please make sure it compiles with 0.56.0 before merging.

build.sbt Outdated Show resolved Hide resolved
project/Dependencies.scala Outdated Show resolved Hide resolved
@AlexWeinstein92 AlexWeinstein92 changed the title Recompile on Edit rip67 Recompile on Edit [RIP67] Nov 28, 2024
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

Successfully merging this pull request may close these issues.

2 participants