All Products
Search
Document Center

AI Coding Assistant Lingma:FAQ

Last Updated:Jun 06, 2025

This topic describes frequently asked questions about Lingma, such as launch and login, supported languages, data security, pricing, and OpenAPI, and how to solve them.

Note

If you encounter issues during use, try restarting your IDE first. If the issue persists after restart, you can submit a ticket or join the DingTalk group: 53770000738, and we will resolve your issue as soon as possible.

About startup, login failures, and permission prompts

1. What should I do when I see "Lingma starting"?

To resolve the issue, follow these steps:

  1. Check the version and runtime environment:

    • Make sure you have upgraded Lingma to the latest version. Confirm that your operating system and system architecture support Lingma.

    • If you use a JetBrains IDE, make sure that the IDE's heap memory size is sufficient. Here are the steps:

      1. Click File -> Invalidate Caches.

      2. Clear the cache.

      3. Restart the IDE.

  2. Check network connectivity and proxy configuration.

    • Make sure you can access the following addresses. Run this command:

      curl https://lingma.alibabacloud.com/algo/api/v1/ping

      The return value should be pong. If you can't, contact your company's IT department to add them to the whitelist:

    • If your company's firewall has restrictions and you cannot add the URLs above to the whitelist, you will need to manually configure the proxy address (contact your company's IT):

      Proxy address format: http(s)://username:password@proxy_server_address:port

      • If the domain name is not saved correctly, you can change the configuration file manually:

        Path: C:\Users\username\AppData\Local\.lingma\config.json

        After modifying the http_proxy field, terminate the Lingma process and restart.

    • Clear DNS cache:

      • Windows: Run the command ipconfig /flushdns.

      • macOS: Run the command sudo killall -HUP mDNSResponder.

  3. Clear the local cache and restart the IDE. Start the IDE with the admin role, open a non-empty project folder, and try the following steps:

    1. Terminate the Lingma process.

    2. Delete the .lingma directory:

      1. Windows: Path is C:\Users\[username]\.lingma

      2. macOS: Path is ~/.lingma

    3. After completing the above operations, restart the IDE.

  4. Manually start the Lingma service if the issue is still not resolved:

    1. Go to the directory: .lingma/bin/x.x.x/CPU_architecture_64_system/

    2. Run this command:

      Lingma.exe start

      After the startup is successful, click the login button again.

  5. (Optional) If you see an "incompatible program" message on Windows, it might be because the program wasn't fully extracted. Here's how to fix it:

    1. Click the Lingma icon in the bottom right corner, and select Advanced Settings.

    2. Change the extraction path to a non-C drive path, and make sure the path ends with an empty folder.

    3. Restart the IDE and try again.

      Note

      Company intranets might not allow running binary program in Disk C.

  6. Modify firewall or security software restrictions. If the Lingma process won't start normally or if you get no response when logging in, it might be because the firewall or the company's security software is blocking it. Follow the steps below:

    1. Add Lingma to firewall whitelist:

      Open Control Panel -> System and Security -> Windows Defender Firewall -> Allowed apps, add Lingma to the whitelist.

    2. Add process file to whitelist in company security software:

      Path example: C:\Users\xxx\.lingma\bin\2.1.x\x86_64_windows\lingma.exe

      Contact your company's IT support personnel for assistance.

    3. If the Lingma version in JetBrains is 2.1.4 or higher, switch Transport Type to stdio as shown in the figure below: 莫3@1x (7)

2. What should I do when a logon failure occurs or my account does not have the required permissions?

  • Expired logon parameters can cause a logon failure. Try clicking the logon button again later.

  • If your network environment requires a proxy for internet access, upgrade Lingma to the latest version and ensure the following hosts are accessible. Add them to the whitelist. See network proxy configuration.

    curl  https://lingma.alibabacloud.com/algo/api/v1/ping
  • After the configuration is complete, terminate the Lingma process in the process manager and log on again in the IDE.

3. How to log on to Lingma on remote servers through SSH or WSL?

For remote development in VS Code and JetBrains IDEs, use the AccessKey pair of your Alibaba Cloud account to log on to Lingma. For more details, see installation and logon guide.

4. Can I use Lingma in a web IDE?

You can log on to Lingma using the AccessKey pair of your Alibaba Cloud account. For more details, see installation and logon guide.

5. How do I configure a network proxy?

Lingma supports HTTP, HTTPS, and Socks5 proxy configurations. Configure them on the settings page. For more details, see network proxy configuration.

6. How do I test network connectivity?

Run the following command:

curl  https://lingma.alibabacloud.com/algo/api/v1/ping

If pong is returned, your network is most likely to connect to the Lingma server.

Billing

How is Lingma priced?

For enterprise customers, Enterprise Dedicated Edition is available. See Billing for details.

Accounts

1. What account should I use to log on to Lingma?

Log on to Lingma using your Alibaba Cloud account. In the Lingma window of the IDE client, click the logon button to access the Alibaba Cloud logon page. For more details, see register an Alibaba Cloud account.

3. How can enterprises use Lingma?

Supported IDEs, systems, and languages

1. What vsersion of JetBrains IDEs are compatible?

JetBrains IDEs are compatible with versions 2020.3 (203.x) and later, including IntelliJ IDEA, PyCharm, GoLand, WebStorm, and others.

2. What versions of Visual Studio Code are compatible?

Visual Studio Code is compatible with versions 1.68.0 and later.

3. What versions of Visual Studio 2022 are compatible?

Visual Studio 2022 is compatible with version 17.3.0 and later.

4. Which operating systems are supported?

  • JetBrains IDEs: Windows 7 and later, macOS, and Linux.

  • Visual Studio Code: Windows 7 and later, macOS, and Linux.

  • Visual Studio 2022: Windows 10 and later.

5. Which programming languages are supported?

Lingma supports mainstream programming languages, with enhanced performance in Java, Python, Go, JavaScript, TypeScript, C/C++, and C#.

Data security and quality

1. Does Lingma store my code?

Lingma does not store your code:

  • During code completion, your code context is needed but will not be stored or used for any other purposes. You retain full ownership and control of your code.

  • For AI chat, chat records (excluding code) are processed only after you click thumbs up/down. This data is anonymized for algorithm improvements.

See Alibaba Cloud International Website Product Terms of Service for details.

2. What does Lingma's training data include ?

The training data consists of high-quality open source code, technical articles, Alibaba Cloud service documents, and Alibaba Cloud SDK and API documents.

3. Is my code snippet shared with other users?

No. The system does not share your code snippets with other users. When using the large language model for code completion, we need to get your code context information to complete the completion, but the context information will not be stored or used for any other purpose.

4. Can I directly use the code generated by Lingma?

The code generated by Lingma is only suggested code. Its usability cannot be guaranteed, and developers should review the code themselves and decide whether to adopt it.

Common problems

1. What should I do if the Lingma process is consuming too much CPU or memory?

  • Case 1: Your code might consume too much CPU or memory resources during code indexing because of the large files in the project. To fix this, create a .tongyiignore file in the root directory of your project. Move directories or files that don't need to be indexed to this file. This will lower CPU or memory usage. The file works like the .gitignore file. After you change the .tongyiignore file, manually terminate the Lingma process to make sure the changes work.

  • Case 2: Local Machine Model is enabled. This model uses about 500 MB of memory. If you do not need it, you can disable Local Machine Model on the Settings page when you use the inline completion feature.

2. VS Code shows "extension host terminated unexpectedly"

Symptom: You encounter this error message: "extension host terminated unexpectedly 3 times within the last 5 minutes".

Possible Causes: This is usually caused by a memory leak. First use the extension bisect method to confirm whether the crash is caused by Lingma.

Solution: If you confirm it is caused by Lingma, resolve it using the following methods:

  • Reinstall VS Code and restart the system (recommended).

  • Windows users: Turn off security software or whitelist code.exe.

If the problem persists, join the DingTalk group: 53770000738, and provide the following information:

  • Operating system version and VS Code version.

  • Collect and provide verbose logs:

    1. Completely exit VS Code.

    2. Run the command code --verbose to start VS Code.

    3. Perform the operation that causes the crash.

    4. Check the output logs. Lines 2 and 3 will give the preliminary reason for the crash, which helps technical staff locate the code in Lingma more quickly. For example:

      [main 2025-05-02T14:35:31.249Z] [UtilityProcess id: 3, type: extensionHost, pid: 25816]: received exit event with code 18446744072635810000
      [main 2025-05-02T14:35:31.249Z] Extension host with pid 25816 exited with code: 18446744072635810000, signal: unknown.
      [main 2025-05-02T14:35:31.250Z] [UtilityProcess id: 3, type: extensionHost, pid: 25816]: crashed with code -1073741819 and reason 'crashed'
      [19684:0502/223531.251:INFO:CONSOLE(3255)] "Extension host (LocalProcess pid: 25816) terminated unexpectedly. Code: 18446744072635810000, Signal: unknown", source: vscode-file://vscode-app/d:/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js (3255)
  • If the above logs cannot confirm that the code in Lingma is causing the issue, refer to Native-Crash-Issues to collect more detailed crash logs. Here're the steps:

    1. Completely exit VS Code.

    2. Run the command code --crash-reporter-directory <absolute path>.

    3. Perform the operation that causes the crash.

    4. Look for a file with a .dmp extension in the directory from step 2, and send it to the technical team.

3. What should I do if the personal center page in the VS Code shows an error?

Symptom:

"Error loading webview: Error: Could not register service worker: InvalidStateError: Failed to register a ServiceWorker: The document is in an invalid state."

Possible Causes: The following error message is a known issue in VS Code 1.56. It occurs when some Windows users run VS Code as an administrator.

Solution: Try the following solutions:

  • Method 1: Run the following command to start VS Code:

    $ code --no-sandbox
  • Method 2: Close VS Code, and then run the command killall code.

4. What should I do if the Lingma button does not appear in the sidebar after installing Lingma in JetBrains IDEs?

Typically, the Lingma button should be displayed in the IDE sidebar after installation. If it is not visible, manually open it by selecting View > Tool Windows > Lingma.

image

OpenAPI

1. Is there an upper limit on the amount of data for each pagination query?

Query no more than 10,000 data entries per page. Limiting the number of entries helps the system run smoothly and makes the user experience better. You can change this number based on how the system works.

2. What is the API data update frequency?

API data is updated every 15 minutes, starting early in the morning each day. Several verification checks are used to ensure that the data is up-to-date, reliable, and flexible. At 02:00:00 in the morning, you can get the latest and accurate data set from the previous day.

3. Are there any requirements for the frequency of API requests?

To ensure a stable and efficient service, the limit for API requests is 100 queries per second (QPS).

4. How to obtain organizationId?

Click your profile in the upper-right corner of the Lingma console, click Management Console, and then copy the Organization ID from the Basic Information page.

莫小@1x