Autoprefixer in VSCode - TypeError: Cannot read property 'warnings' of null? - visual-studio-code

I'm trying use "Autoprefixer" in VS Code but instead of using it vs code output
"[Autoprefixer]
TypeError: Cannot read property 'warnings' of null"
I tried reinstall vs Code and extensions but didnt work.
[Autoprefixer]
TypeError: Cannot read property 'warnings' of null

I got the same error when I used it when the file was a .html file. But if I used a .css file with my CSS formatted correctly, it worked. I didn't get any response and my code was updated with the prefixes.

Related

Jasper Reports: how to add own Functions to Expression Editor

I am using Jaspersoft Studio 6.6 and try to add own functions to the Expression Editor.
Therefore i follow the tutorial Jaspersoft Studio Expression Editor: how to extend it and contribute your own functions (part 2) - updated for version 5.5 (i was not able to find a more current version so i guess this one should be still correct)
All works fine but i had to replace the language of the generated report (SampleFunctionsReport.jrxml) from groovy to java to get rid of class not found exceptions
Finally the following Errors are remaining:
Description Resource Path Location Type
The method HELLO_WORLD_MSG() is undefined for the type SampleFunctions_1541665022158_603382 SampleFunctionsReport.jrxml /MyFunctions line 37 JRXML Problem
The method HELLO_WORLD_MSG() is undefined for the type SampleFunctions_1541665022158_603382 value = HELLO_WORLD_MSG( ); SampleFunctionsReport.jrxml /MyFunctions line 0 JRXML Problem
The method REPEAT_MSG(String, int, boolean) is undefined for the type SampleFunctions_1541665022158_603382 SampleFunctionsReport.jrxml /MyFunctions line 52 JRXML Problem
The method REPEAT_MSG(String, int, boolean) is undefined for the type SampleFunctions_1541665022158_603382 value = REPEAT_MSG("A message that will be probably repeated",5,true); SampleFunctionsReport.jrxml /MyFunctions line 0 JRXML Problem
I checked the points of the tutorial a couple of times...
can someone reproduce my problem?
What am i missing?
<import value="test.customfunctions.*"/>
this is the code from my jrxml, which is fine.
when i tried to enter the full class name - i got an error, that the package cannot be added.
today i tried the same again - and its working. even the resulting XML is identical!

How to use custom language highlight syntax in Gtk SourceView?

I'm trying to create my own language definition, and use it for highlighting the syntax in my app.
The issue I have is that, when trying to access the language definition from my app's data folder (/usr/share/myapp/), even using the c.lang file copied from /usr/share/gtksourceview-3.0/language-specs/, just to test, I get this error at runtime:
GtkSourceView-WARNING **: Failed to load '/usr/share/myapp/c.lang': could not find the RelaxNG schema file
So it's asking for some schema file? So I went forward and copied every file from the language-specs folder that isn't a lang file, which includes: language.dtd, language.rng and language2.rng.
Now, when I run again, I get these errors:
GtkSourceView-WARNING **: in file /usr/share/com.github.aleksandar-stefanovic.urmsimulator/c.lang: style 'def:comment' not defined
GtkSourceView-WARNING **: Failed to load '/usr/share/com.github.aleksandar-stefanovic.urmsimulator/c.lang': unable to resolve language 'def'
What does that even mean? Is that something namespace-related? It is very peculiar, because the exact same file is working perfectly when in gtksourceview folder.
Any clues? Do these "RelaxNG" files work only in their original directories? If so, how can I change that? I've looked into the files, but failed to find any reference to their original folder...
This is the source-code (in Vala) related to the issue:
var manager = Gtk.SourceLanguageManager.get_default ();
string search_paths[] = {"/usr/share/myapp", null};
manager.set_search_path (search_paths);
var buffer = new Gtk.SourceBuffer.with_language (manager.get_language ("c"));
The application does in fact find the language "c", I've checked by debugging.
You have to preserve the Gtk.SourceLanguageManager's original search path when you add your own. Append to it instead of replacing it.

Where is _on function defined in jquery-file-upload Javascript library?

After setting up , I get an error
Uncaught TypeError: undefined is not a function
on the line of 1273 which is the following
this._on(this.options.dropZone, {
I can't find where the function is defined in the javascript file (https://github.com/blueimp/jQuery-File-Upload/blob/master/js/jquery.fileupload.js). Do I have to use it with other Javascript files in the package?
it looks You haven't connected widget part of jquery.
http://jqueryui.com/download/#!themeParams=none
I had the same problem, so I added it and now file upload works.

Trying to use shorten the text output using truncate smarty tag in PHP 5.4.19

trying to use {$articleTitle|truncate:30:""} to shorten the text output
its working in localhost correctly
but not working in server with PHP 5.4.19
am unable to find solution.
I think there is no problem with code problem in server.
any suggestions plz.
error info.
Fatal error! Your request can not be executed!
Fatal error: Call to undefined function mb_substr() in Smarty/plugins/modifier.truncate.php on line 36

Getting constant error when using FPDF with eps extension

I am having a problem with fpdf and its eps extension that I can't seem to get past it.
This is what my code looks like:
define('FPDF_FONTPATH','fpdf/font/');
require('fpdf/fpdf_eps.php');
$pdf = new PDF_EPS();
$pdf->AddPage();
$pdf->ImageEps("images/image.eps",50,100);
$pdf->AddPage();
$pdf->SetFont('Arial','B',14);
$pdf->MultiCell(0,5,"some text with multiple lines");
$pdf->Output("filname.pdf", "D");
And this is what I constantly get:
Strict Standards: Only variables should be passed by reference in (...php file and line...)
FPDF error: Could not include font metric file
Any help will be greatly appreciated.
The eps extension can be found here: http://valentin.dasdeck.com/fpdf/fpdf_eps
About Strict Standards: Only variables should be passed by reference in (...php file and line...)
This means what it says.. You can only hand variables by reference (the & characters before arguments in the function definition). You can either lose the & or make sure error_reporting() does not include E_STRICT, which will suppress this warning. (at any rate php should just copy whatever you pass to that function instead of handing over a reference to it so i wouldn't worry about it)
Regarding: FPDF error: Could not include font metric file
This error is related to SetFont(). There should be a .ufm or .afm file for Arial (or whatever font you want to load) in the font path so fpdf can load and use them.