Hi all — I encountered a bug with the experimental...
# development
b
Hi all — I encountered a bug with the experimental TS backend running
pants fmt
, and I believe that I have a fix in a PR here: https://github.com/pantsbuild/pants/pull/23238 Can someone take a look and see if I've identified the issue and patched it correctly?
w
I believe claude has identified the problem correctly but suggested the wrong fix. The test cases that are failing should be guidance enough I hope.
b
Thanks — I haven't been able to get the tests running locally yet, so I'll take a look at CI 🙇
w
https://www.pantsbuild.org/stable/docs/contributions/development/setting-up-pants this worked for me, ubuntu 24.04. Not sure if it is up-to-date for macos
b
Sadly it seems like tests aren't working out of the box for me (many failures) on macOS following this guide. The devcontainer seems like a promising option given the number of dependencies that are needed to set up the development environment, but I'm getting this output when trying that route:
Copy code
Bootstrapping Pants...
pants: Failed to find a Python 3.14 interpreter
[15477 ms] postCreateCommand from devcontainer.json failed with exit code 1. Skipping any further user-provided commands.
Looks like potentially the python version needs to be incremented in the devcontainer configuration…
👀 1
Next issue:
Copy code
17:13:55.25 [ERROR] 1 Exception encountered:

Engine traceback:
  in root
    ..
  in pants.core.goals.export.export_goal
    `export` goal

Traceback (no traceback):
  <pants native internals>
Exception: Error setting permissions on file at /workspaces/pants/dist/export/python/virtualenvs/flake8/3.14.4/.304335b4647248258006a7bc7570186d.tmp/flake8.pex/.bootstrap: Permission denied (os error 13)

Checking mypy resolve...
17:13:57.60 [INFO] Completed: Build pex for resolve `mypy`
17:13:57.60 [INFO] Completed: Scheduling: Build pex for resolve `mypy`
17:13:57.61 [ERROR] 1 Exception encountered:

Engine traceback:
  in root
    ..
  in pants.core.goals.export.export_goal
    `export` goal

Traceback (no traceback):
  <pants native internals>
Exception: Error setting permissions on file at /workspaces/pants/dist/export/python/virtualenvs/mypy/3.14.4/.8e0bed4a111d474eadcbbed33f1fa3e9.tmp/mypy.pex/.bootstrap: Permission denied (os error 13)
More version mismatch
Okay — built successfully; running tests. (I'll open a PR to get the devcontainer working again after getting a bit further)