这是indexloc提供的服务,不要输入任何密码
Skip to content

addpkg(x11/code-oss-extension-codelldb): 1.11.5 #24716

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

robertkirkman
Copy link
Contributor

@robertkirkman robertkirkman commented May 14, 2025

  • Fixes [Package]: codelldb #24715
  • This single build works with both code-oss and also with another editor that exists somewhere else, but for the time being, only code-oss can be found in this Termux repository, so for now this package only references code-oss and could be expanded to have a subpackage that depends on the other editor if it happens to come here in the future

image

@robertkirkman
Copy link
Contributor Author

robertkirkman commented May 14, 2025

For anyone who is unfamiliar with using CodeLLDB on standard VSCode for GNU/Linux, here is the example project, "basicopenslestest", that I used to test the extension:

Project build command:

clang -g -o main main.c -lOpenSLES

main.c

#include <stdio.h>
#include <SLES/OpenSLES.h>

int main(void) {
	SLObjectItf engineObj = NULL;
	SLresult result = slCreateEngine(&engineObj, 0, NULL, 0, NULL, NULL);
	if(result == SL_RESULT_SUCCESS) {
		printf("good\n");
		(*engineObj)->Destroy(engineObj);
		engineObj = NULL;
	}
	else {
		printf("bad\n");
	}
	return 0;
}

.vscode/launch.json

{
    "version": "0.2.0",
    "configurations": [
        {
            "type": "lldb",
            "request": "launch",
            "name": "Debug",
            "program": "${workspaceFolder}/main",
            "args": [],
            "cwd": "${workspaceFolder}"
        }
    ]
}

@robertkirkman robertkirkman changed the title addpkg(x11/codelldb): 1.11.4 addpkg(x11/code-oss-extension-codelldb): 1.11.4 May 14, 2025
@robertkirkman robertkirkman force-pushed the codelldb branch 4 times, most recently from 3b1b23d to c7a9dc4 Compare May 14, 2025 16:18
Copy link
Member

@licy183 licy183 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other things looks good to me.

@robertkirkman robertkirkman force-pushed the codelldb branch 3 times, most recently from e3206ed to fa80aa3 Compare May 15, 2025 10:30
@robertkirkman
Copy link
Contributor Author

I noticed that when the update happens, if it was built on a different day/other changes from the previous build, then the installation folder of the previous version will remain "leftover" in the ~/.vscode-oss/extensions/ folder, where it is ignored by the editor in favor of the newer version, and these may build up over time. Simply restarting the editor repeatedly does not seem to trigger cleaning them, at least as far as I can tell.

and removing the if [ "$TERMUX_PACKAGE_FORMAT" = "debian" ] && [ "\$1" != "remove" ] condition from prerm does not prevent that (because --uninstall-extension does not remove the old leftover folder, it just "deactivates" it)

However, if the user clicks this button in the Extensions tab of the editor, then at that moment, the editor immediately "cleans up" all the old, leftover extension folders in ~/.vscode-oss/extensions/, deleting them without deleting any currently-active ones.

image

This seems like it is just intended behavior, judging from what I see in the issues of VSCode.

@robertkirkman
Copy link
Contributor Author

Some people online say things like "special lldb is required to debug Rust programs with CodeLLDB and my lldb didn't work" (referring to other operating systems, not to this PR), so I have tested to make sure that this build of this extension with lldb from pkg install lldb can debug Rust programs, and as far as I can tell, yes it does work:

image

@robertkirkman robertkirkman force-pushed the codelldb branch 2 times, most recently from fe5f011 to 6e861b8 Compare May 16, 2025 15:17
@robertkirkman robertkirkman changed the title addpkg(x11/code-oss-extension-codelldb): 1.11.4 addpkg(x11/code-oss-extension-codelldb): 1.11.5 Jul 5, 2025
- Fixes termux#24715

- This single build works with both `code-oss` and also with another editor that exists somewhere else, but for the time being, only `code-oss` can be found in this Termux repository, so for now this package only references `code-oss` and could be expanded to optionally depend on the other editor if it happens to come here in the future
@robertkirkman
Copy link
Contributor Author

robertkirkman commented Jul 5, 2025

After the release of version 1.11.5, I have been able to successfully use the update in Termux.

I believe it is working to the same degree as the previous version, and I have uploaded it here,

however, unfortunately, the upstream code changed significantly, and it was not easy to make the newer version work on Android.

I use this extension, and I think it is very good, but I understand that using a GUI debugger on CLI Android Native programs and/or X11 Android Native programs fully on Android without having any separate computer is a very niche use case, and it is possible that maybe the other users of the code-oss package are only editing projects that run elsewhere, projects that can be debugged without recompiling native code, or native projects without debugging.

I will keep making updates here of each newer version for a while, but if no other people need this extension, it might make more sense for me to only build it locally and use it myself, and might not be needed in the termux-packages repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Package]: codelldb
2 participants