Skip to content

Commit 30565a2

Browse files
committed
Attempt to fix bug with codespace pretext view
1 parent 733e8f4 commit 30565a2

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ Instructions: Add a subsection under `[Unreleased]` for additions, fixes, change
99

1010
## [Unreleased]
1111

12+
### Changed
13+
14+
- Template devcontainer will now use versioned docker image
15+
16+
### Fixed
17+
18+
- Bug that sometimes stopped `pretext view` from working in a codespace.
19+
1220
## [2.23.1] - 2025-07-14
1321

1422
Includes updates to core through commit: [c750a05](https://github.com/PreTeXtBook/pretext/commit/c750a05a2c35cad67dd269682e1618e3c1eb63dc)

pretext/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
VERSION = get_version("pretext", Path(__file__).parent.parent)
2020

2121

22-
CORE_COMMIT = "acd359af3ce3476249f3a81d14dc93f5dd7ae61e"
22+
CORE_COMMIT = "32262dda4922a4535bcfb10fe1c66b50c51337ac"
2323

2424

2525
def activate() -> None:

pretext/server.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,11 @@ def is_active_server(self) -> bool:
6363
return False
6464
for _, _, _, laddr, _, _ in p.net_connections("all"):
6565
if isinstance(laddr, str):
66-
log.error(
66+
log.debug(
6767
f"BUG: the `pretext view` command encountered an error. Please report this: process {self.pid} with laddr {laddr}"
6868
)
69-
continue
69+
remove_server_entry(self.path_hash)
70+
return False
7071
elif isinstance(laddr.port, int) and laddr.port == self.port:
7172
log.info(f"Found PreTeXt web server at {self.url()}")
7273
return True

0 commit comments

Comments
 (0)