Skip to content

Conversation

@sampottinger
Copy link
Collaborator

CC @benfry

Retry #715. See below for original description.

Depending on how the Problem is made, the error may be given relative to start of line or start of tab. I think this may have been introduced in the language server support effort as Problems may be made without Editor available. The behavior in processing/processing4#714 appears to have started then but there was a delay before it showed up in production given how releases were done.

Needs to address #751 in which the Problem interface cannot change in any way.

Looks like a new method added to Problem is breaking the API for Modes. Any changes that are made need to allow contributed Modes (p5jsMode, Python, etc) to still run without a recompile so we need a better solution here.

CC @benfry - Working on this will keep you posted.

@sampottinger sampottinger changed the base branch from fix-lang-server-highlight-alt to main July 17, 2023 01:11
@sampottinger sampottinger force-pushed the revert-715-differentiate-offset branch from 1f85b07 to 33aab6d Compare July 17, 2023 01:19
@sampottinger sampottinger reopened this Jul 17, 2023
@sampottinger sampottinger marked this pull request as ready for review July 17, 2023 02:57
@sampottinger sampottinger requested a review from benfry July 17, 2023 02:57
@sampottinger
Copy link
Collaborator Author

Thanks for your patience @benfry and sorry about the modes recompilation impact. I believe this should work while maintaining the Problem interface. I left my docstrings in and standardized how everyone was using it (the original issue was that some parts of the code were inconsistent with what the methods were supposed to do / what offset referred to). I have tested:

  • Syntax errors (missing semicolon, braces, etc)
  • Java errors via JDT (missing class)
  • Java errors via javac
  • Runtime errors

CC @WillRabalais04

@sampottinger
Copy link
Collaborator Author

Also tried Python mode and it worked. That said, error highlighting wasn't working there. I tried an earlier release of Processing 4 though and it wasn't working in that prior release either so it may be an unrelated issue. LMK if I can help.

@benfry benfry merged commit fccf3b4 into main Jul 17, 2023
@benfry
Copy link
Owner

benfry commented Jul 17, 2023

Great, thanks for the quick turnaround.

@sampottinger sampottinger mentioned this pull request Aug 20, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants