Repository navigation
FIX: make the extension configure, package and load after the Remote rename - #42
Merged
Merged
Conversation
…rename The Remote-suffix rename (DCBIA-OrthoLab#38) left CMake lists and file names out of step, so CMake configure failed and the ExtensionsIndex packaging checks failed: - AutoCrop3DRemote and CLICRemote listed icons under their old names. - AgentRemote, CNERemote, MRI2CBCTRemote and Agent_CLIRemote listed .ui files under new names that don't exist; the Python code still loads the existing Agent.ui, CNE.ui, MRI2CBCT.ui and Agent_CLI.ui, so list those. - MRI2CBCT_CLIRemote/ImportLibrary.cmake still named the renamed MRI2CBCT_CLI_utils package. Two problems only showed up once it built: - ServerToolsCoreLib/tls.py (added with the HTTPS-only change) was not installed, so every module importing ServerToolsCoreLib failed to load. - Agent_CLIRemote and CNE_CLIRemote kept their XML files as Agent_CLI.xml and CNE_CLI.xml. A scripted CLI's XML must match its script name, and the callers still used slicer.modules.agent_cli and slicer.modules.cne_cli, which are AutomatedDentalTools' module names. Rename the XML files, add the Remote suffix to their titles, and call slicer.modules.agent_cliremote and slicer.modules.cne_cliremote. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The ExtensionsIndex packaging checks for this extension fail (Slicer/ExtensionsIndex#2411, run) with:
The Remote-suffix rename (#38) left CMake lists and file names out of step. CMake stops at the first error, so I configured, built and loaded the extension against a Slicer build until it worked. This PR fixes everything that turned up.
CMake configure errors
Resources/Icons/AutoCrop3D.pngAutoCrop3DRemote.png${MODULE_NAME}.pngResources/Icons/CLIC.pngCLICRemote.png${MODULE_NAME}.pngResources/UI/AgentRemote.uiAgent.uiAgent.ui(whatAgentRemote.pyloads)Resources/UI/CNERemote.uiCNE.uiCNE.ui(whatCNERemote.pyloads)Resources/UI/MRI2CBCTRemote.uiMRI2CBCT.uiMRI2CBCT.ui(whatMRI2CBCTRemote.pyloads)Resources/UI/Agent_CLIRemote.uiAgent_CLI.uiAgent_CLI.uiImportLibrary.cmakenamesMRI2CBCT_CLI_utilsMRI2CBCT_CLIRemote_utils/Problems that appeared once it built and ran in Slicer
ServerToolsCoreLib/tls.pywas never installed. It came in with the HTTPS-only change but isn't listed inServerToolsCore/CMakeLists.txt. In the installed extension, every module that importsServerToolsCoreLibfailed withImportError: cannot import name 'tls'. Added to the list.Agent_CLIRemote.pyandCNE_CLIRemote.pysat next toAgent_CLI.xmlandCNE_CLI.xml. A scripted CLI's XML must have the same base name as its script. AndAgentRemote.pyandCNERemote.pystill calledslicer.modules.agent_cliandslicer.modules.cne_cli, which are AutomatedDentalTools' module names, so with both extensions installed they would run the other extension's CLI. This PR renames the XML files toAgent_CLIRemote.xmlandCNE_CLIRemote.xml, adds the "Remote" suffix to their titles to match the other modules, and updates the callers toslicer.modules.agent_cliremoteandslicer.modules.cne_cliremote.Verification (macOS arm64, Slicer 5.13 local build)
cmake -DSlicer_DIR=... -DBUILD_TESTING=ONconfigures all 25 scripted modules and the build succeeds. Onmainit stops at the AutoCrop3DRemote error above..xmlnow lands next to its.py. The icons and.uifiles listed above are present in the build tree.agentremote,cneremote,autocrop3dremote,clicremote,mri2cbctremote,mri2cbct_approx,agent_cliremote("Agent_CLI Remote") andcne_cliremote("CNE_CLI Remote") all register.AgentRemote.pyandCNERemote.py.Not in this PR. The six
MRI2CBCT_CLIRemote/MRI2CBCT_*scripted CLIs still have the same module names as in AutomatedDentalTools (noted in Slicer/ExtensionsIndex#2411).🤖 Generated with Claude Code