Skip to content

Superseded: interim syntax_darts rename (see new PR) - #13

Closed
leoafarias wants to merge 2 commits into
mainfrom
rename/syntax-to-syntax-core
Closed

leoafarias wants to merge 2 commits into
mainfrom
rename/syntax-to-syntax-core

Conversation

@leoafarias

@leoafarias leoafarias commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Closed in favor of #14 from rename/syntax-to-syntax-darts that keeps syntax_core and adds the OIDC publish.yml workflow.

Do not merge this branch / do not continue the syntax_darts rename.

The name syntax is blocked on pub.dev (moderated tombstone). Point
syntax_flutter and syntax_noir at syntax_core ^0.0.1 and update imports.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-24T22:31:04.732432Z 2fbc9d4 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@leoafarias leoafarias changed the title Rename package syntax to syntax_core Rename core package to syntax_darts Oct 24, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2fbc9d49b4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +3 to +4
import 'package:syntax_core/langs/all.dart';
import 'package:syntax_core/themes/all.dart';

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Update the example's dependency and local override

The Flutter example still declares syntax: ^0.0.1 in its pubspec.yaml and overrides it to ../../syntax in pubspec_overrides.yaml, but this commit removes that directory. Dependency resolution for the example therefore fails before it can run or build; both the check and minimum-sdk CI jobs resolve this example first. Rename the dependency and override to syntax_core and point the override at ../../syntax_core.

Useful? React with 👍 / 👎.

Comment thread pubspec.yaml
sdk: ^3.9.0
workspace:
- packages/syntax
- packages/syntax_core

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Migrate the remaining CI paths to the renamed directory

The package directory is renamed here, but .github/workflows/ci.yml still uses packages/syntax for the check job's formatting input, analysis working directory, and VM/Chrome test working directories, plus the minimum-sdk job's core test working directory. Even after the example dependency issue is fixed, those working directories do not exist in this checkout, so the core analysis and tests cannot run. Update all of these workflow paths alongside the workspace entry.

Useful? React with 👍 / 👎.

Comment thread tool/generate.mjs
path.join(dir, file),
header(meta.source, meta.license) +
`import 'package:syntax/syntax.dart' show Language;\n\n` +
`import 'package:syntax_core/syntax.dart' show Language;\n\n` +

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Redirect the generation tools to syntax_core

The generated imports now reference syntax_core, but generate.mjs still initializes pkg with path.join(here, '..', 'packages', 'syntax'). Regeneration consequently recreates the old directory instead of updating the bundled files, while the changed CI check inspects only packages/syntax_core and misses those outputs. samples.mjs and golden.mjs likewise retain the old fixture root, so fixture regeneration no longer updates the conformance suite's inputs. Update all three tools' filesystem roots to the renamed package.

Useful? React with 👍 / 👎.

@leoafarias leoafarias changed the title Rename core package to syntax_darts Superseded: interim syntax_darts rename (see new PR) Oct 24, 2026
@leoafarias leoafarias closed this Oct 24, 2026
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.

1 participant