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

[bug]: Canary CLI does not respect MacOS modifier keys #6281

Open
2 tasks done
hammerhai opened this issue Jan 5, 2025 · 0 comments
Open
2 tasks done

[bug]: Canary CLI does not respect MacOS modifier keys #6281

hammerhai opened this issue Jan 5, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@hammerhai
Copy link

hammerhai commented Jan 5, 2025

Describe the bug

After creating a monorepo and running bun run dev, then interacting with the terminal, CTRL+Z is required to exit interactivity.

In my case, and possibly many others without MacBooks, changing your modifier keys to use the CTRL key instead of super key is common. Unfortunately, the CLI does not respect this. Instead of using CTRL+Z as displayed on everyday keyboards, it wants Super+Z, which does not reflect my preferences within MacOS.

Current1

Default2

Affected component/components

CLI

How to reproduce

  1. Create a monorepo with Canary
  2. Run bun run dev
  3. Get error and interact (using i) with the terminal
  4. CTRL+Z is required to exit interactivity

Codesandbox/StackBlitz link

No response

Logs

⨯ [custom formatter threw an exception]
[Error [TurbopackInternalError]: Failed to write app endpoint /page

Caused by:
- failed to deserialize message
- invalid type: null, expected a string

Debug info:
- Execution of get_written_endpoint_with_issues failed
- Execution of <AppEndpoint as Endpoint>::write_to_disk failed
- Failed to write app endpoint /page
- Execution of AppEndpoint::output failed
- Execution of *ReducedGraphs::get_next_dynamic_imports_for_endpoint failed
- Execution of get_reduced_graphs_for_endpoint_inner failed
- Execution of get_module_graph_for_endpoint failed
- Execution of SingleModuleGraph::new_with_entries_visited failed
- Execution of primary_chunkable_referenced_modules failed
- Execution of <CssModuleAsset as Module>::references failed
- Execution of parse_css failed
- Execution of <PostCssTransformedAsset as Asset>::content failed
- Execution of PostCssTransformedAsset::process failed
- failed to deserialize message
- invalid type: null, expected a string
    at .
         | v
       1 + {"type":"error","name":"CssSyntaxError","message":"/Users/intentionally-blank/Desktop/intentionally-blank/packages/ui/src/...:null,"methodName":"processTicksAndRejections","arguments":["native"],"lineNumber":7,"column":39}]}
         | ^]

System Info

  • Bun 1.1.38
  • MacOS Sequoia 15.2
  • Safari 18.2
  • shadcn-ui Canary (monorepo slightly modified to run with Bun)
{
  "name": "shadcn-ui-monorepo",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "build": "turbo build",
    "dev": "turbo dev",
    "lint": "turbo lint",
    "format": "prettier --write \"**/*.{ts,tsx,md}\""
  },
  "devDependencies": {
    "@workspace/eslint-config": "workspace:*",
    "@workspace/typescript-config": "workspace:*",
    "prettier": "^3.2.5",
    "turbo": "^2.3.0",
    "typescript": "5.5.4"
  },
  "packageManager": "[email protected]",
  "engines": {
    "node": ">=20"
  },
  "workspaces": [
    "apps/*",
    "packages/*"
  ]
}

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues

Footnotes

  1. My modifier key preferences.

  2. The default MacOS modifier key preferences.

@hammerhai hammerhai added the bug Something isn't working label Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant