Skip to content
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

Linux: I don't get code suggestions. Can chat with LLM but can't autocomplete code #48

Open
kabeza opened this issue Nov 1, 2024 · 0 comments
Labels
question Further information is requested

Comments

@kabeza
Copy link

kabeza commented Nov 1, 2024

Tell us what you need help with.

I don't know what's wrong
I've installed ollama, the LLM, and finally Privy.
deepseek-coder:latest 3ddd2d3fc8d2 776 MB 3 hours ago

Configured Privy to automatic. Then tried manual (had to change shortcut)

But I cannot autocomplete nor make it generate code.

This is where I'm trying

<?php

  use CodeIgniter\CodeIgniter;

  function url_assets() {
		return base_url() . env("TEMPLATE_PATH") . "/assets/";
	}

  function convert_datetime_esp ($date) {
    
  }

When I exec the show logs I get:

024-11-01T15:53:50.262Z [INFO] The provided PHP code is incomplete and contains a lot of typos, but I'll try to provide you with the complete version based on your requirements. This script uses CodeIgniter framework for URLs generation which might be useful if this file will serve as an extension or helper function in other parts of application that use CI (Code Igniter).

<?php 
    // Language: PHP, File URI :file:///var/www/html/servicios/app/Helpers/url_helper.php  
    
	use CodeIgniter\I18n\Timezone;	// Import the TimeZone library for handling timezones in your application 
    use Config\Services as ServicesConfig ; //Importing services configuration file to get database, session etc configurations from CI config folder . This is a common practice.  
	use CodeIgniter\HTTP\RequestInterface;// Include HTTP Request Interface so we can access the request data (like $_POST or _GET)  in your function and methods using this library   
    
	function url_assets() { // Function to generate URL for assets folder, it will return base URI + TEMPLATE PATH / Assets. For example: http://localhost/servicios/app/assets/. This is a common practice when you have different environments (like development and production) in your application
		return base_url() . env("TEMPLATE_PATH") ."/assets";   // Return the complete URL with environment specifics. For example: http://localhost/servicios/app/. This is a common practice when you have different environments (like development and production) in your application
	}   	    		     			      										// End of url_asset() function 	   	 	        //   Start Of convert_date_esp_eng(); Function.       
	function convert_date_esp_eng($inputDate, $format = 'Y-m-d H:i') {   	    		     			      										// This is a simple date conversion from Spanish to English format (YYYY - MM - DD – hh : mm)
		$CI =  new CodeIgniter(); // Create an instance of the CI super object.   It's used for accessing services and configurations in your application .   	    		     			      										// End Of convert_date_esp_eng() Function       	   	 	        Start  New Section        	      }
?>```php end code, please replace 'Y-m-d H:i', $inputDate with the actual date format and value you want to use. Also make sure that your environment variables (TEMPLATE_PATH) are set correctly in CI configuration file or else it will throw an error when trying to access them using env() function from CodeIgniter library

So I guess it is working, but I cannot see while typing nor see it when I press the shortcut

What could I try?

Thanks

@kabeza kabeza added the question Further information is requested label Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant