Skip to content

Código 0.6.3

Choose a tag to compare

@github-actions github-actions released this 27 Nov 14:43
· 4 commits to claude/project-thread-ma6s06 since this release
38d284d

Arreglos: Ejecutar usa el proyecto de Cargo (o el que toque) aunque lo hayas abierto desde una carpeta superior, y encuentra cargo y rustc al abrir la app desde el Finder o un lanzador; el selector de archivos de Linux llama directamente al portal del sistema y, si falla, dice por qué.

Fixes: Run uses the Cargo project (or whichever one applies) even when you opened a parent folder, and finds cargo and rustc when the app is opened from Finder or a launcher; the Linux file chooser now calls the system portal directly and, when it fails, says why.

Español

Correcciones

  • Ejecutar en proyectos anidados. Si abres una carpeta (por ejemplo Developer) y el archivo
    activo está dentro de un proyecto (un Cargo.toml, un package.json, etc.) más abajo, Ejecutar
    ahora lanza la tarea de ese proyecto, desde su carpeta (cargo run), en lugar de intentar
    compilar el archivo suelto con rustc.
  • PATH al abrir la app desde el Finder o un lanzador. Una app abierta desde el Finder (macOS) o
    desde un lanzador de Linux no hereda el PATH de tu terminal, así que cargo, rustc,
    rust-analyzer o Homebrew no se encontraban (sh: rustc: command not found, «rust-analyzer se
    ha detenido»). Al arrancar, Código le pregunta el PATH a tu shell de login (con un límite de
    2,5 s) y lo añade al suyo; si no puede, deja el PATH como estaba.
  • Selector de archivos en Linux. Si la llamada habitual al selector del sistema no responde,
    Código llama ahora directamente al portal XDG (org.freedesktop.portal.FileChooser) por D-Bus,
    sin ventana padre, y lee su respuesta. Si aun así no se puede abrir, la ventana donde escribes la
    ruta muestra el motivo real («Motivo: …») y queda también en el registro, para poder
    diagnosticarlo.

Notas

  • Probado en la aplicación real (Linux, X11): con el PATH reducido y sin terminal, el PATH
    del shell de login se adopta, cargo run funciona y rust-analyzer arranca; Ejecutar sobre un
    archivo de un proyecto anidado ejecutó cargo run en su carpeta; el aviso del selector muestra
    el motivo. Una prueba automática habla con un portal falso en un bus D-Bus privado (peticiones,
    respuestas, cancelación y error).
  • No probado: el portal real en un escritorio (GNOME/KDE) y macOS de verdad. La corrección de
    macOS se ha comprobado simulando en Linux un arranque sin PATH. Si el selector sigue sin
    abrirse en tu equipo, el motivo que muestra ahora la ventana de ruta nos dirá la causa.

English

Fixes

  • Run in nested projects. When you open a folder (say Developer) and the active file sits
    inside a project (a Cargo.toml, a package.json, etc.) further down, Run now launches that
    project's task from its folder (cargo run) instead of trying to compile the lone file with
    rustc.
  • PATH when the app is opened from Finder or a launcher. An app opened from Finder (macOS) or
    a Linux launcher does not inherit your terminal's PATH, so cargo, rustc, rust-analyzer
    or Homebrew were not found (sh: rustc: command not found, "rust-analyzer stopped"). On start,
    Código asks your login shell for its PATH (with a 2.5 s limit) and adds it to its own; if it
    cannot, the PATH stays as it was.
  • File chooser on Linux. If the usual call to the system chooser does not answer, Código now
    calls the XDG portal (org.freedesktop.portal.FileChooser) directly over D-Bus, without a
    parent window, and reads its answer. If it still cannot open, the window where you type the path
    shows the real reason ("Reason: …") and it is also logged, so it can be diagnosed.

Notes

  • Tried in the real app (Linux, X11): with a reduced PATH and no terminal, the login shell's
    PATH is adopted, cargo run works and rust-analyzer starts; Run on a file of a nested
    project ran cargo run in its folder; the chooser notice shows the reason. An automatic test
    talks to a fake portal on a private D-Bus bus (requests, answers, cancellation and error).
  • Not tried: the real portal on a desktop (GNOME/KDE) and real macOS. The macOS fix was checked
    by simulating a launch with no PATH on Linux. If the chooser still does not open on your
    machine, the reason the path window now shows will name the cause.

Descargas · Downloads

Sistema · System Archivo · File
Linux (cualquier distribución · any distribution) codigo-0.6.3-linux-x86_64.AppImage
Debian, Ubuntu, Mint… codigo-0.6.3-linux-x86_64.deb
Fedora, openSUSE, RHEL… codigo-0.6.3-linux-x86_64.rpm
Linux, tarball codigo-0.6.3-linux-x86_64.tar.gz
macOS 11+ (Apple Silicon e Intel · Apple Silicon and Intel) codigo-0.6.3-macos-universal.dmg
Windows 10/11 x64 (instalador · installer) codigo-0.6.3-windows-x64.msi
Windows 10/11 x64 (portable) codigo-0.6.3-windows-x64-portable.zip

Sumas de comprobación · Checksums: SHA256SUMS (Linux), SHA256SUMS-macos, SHA256SUMS-windows.