I've got a reasonably large Flex project and I'm trying to generate ASDoc documentation for it. When I run asdoc, it gives me this error:
An unexpected error occurred.
Error #1090: XML parser failure: element is malformed.
(Location of error unknown)XSLT Error (javax.xml.transform.TransformerException): java.io.FileNotFoundException: C:\projects\projectname\asdoc\toplevel_classes.xml (The system cannot find the file specified)
I found a closed as could-not-reproduce bug in Jira about single-quotes in a double-quoted public field initialiser, but I don't have any of those. Any clues?
#Amarghosh prompted me to try running ASDoc individually on my classes, and it turns out that the error is due to a malformed ASDoc comment in my source:
/**
* #see Blah.blah
*
* Furbles the whatsit.
*/
needs to be:
/**
* Furbles the whatsit.
*
* #see Blah.blah
*/
Related
I migrated my code from Qt 5.15 to Qt 6.2. I've figured out all of the major issues and everything is working correctly. I've almost figured out all of the warnings, except for one. My original code is
if (PhaseEncodeAngle == "") q3.bindValue(":PhaseEncodeAngle", QVariant(QVariant::Double)); /* for null values */
else q3.bindValue(":PhaseEncodeAngle", PhaseEncodeAngle);
which produces the warning
warning: ‘QVariant::QVariant(QVariant::Type)’ is deprecated: Use the constructor taking a QMetaType instead.
Applying the fix that Qt documentation suggests, the code becomes
if (PhaseEncodeAngle == "") q3.bindValue(":PhaseEncodeAngle", QVariant(QMetaType::Double)); /* for null values */
else q3.bindValue(":PhaseEncodeAngle", PhaseEncodeAngle);
but now this produces an error
error: use of deleted function ‘QVariant::QVariant(QMetaType::Type)’
How can I fix the original warning?
If I try this query:
select * FROM sphinx.products where `query` = "test";
it works. But if I try to give it weights it returns an error:
select * FROM sphinx.products where `query` = "test;sort=extended:#weight DESC;weights=3,1,1,1";
Fails with error:
Error in query (1430): There was a problem processing the query on the foreign data source.
Data source error: searchd error: invalid deprecated unordered_weight count 4 (expe
(Error reported by MariaDB gets truncated there, but I believe it says "expecting 0")
And:
select * FROM sphinx.products where `query` = "test;sort=extended:#weight DESC";
Fails with error:
Error in query (1430): There was a problem processing the query on the foreign data source.
Data source error: searchd error: index 'sku_products': sort-by attribute '#weight'
(Again, error returned by SphinxSearch gets truncated by MariaDB)
All the documentation I find about SphinxSE tells me to query the index this way, yet it does not work, but nobody in the Internet seem to have met this error since nobody is asking about this anywhere...
Am I doing something wrong?
Well, the option weights= didn't work, but it accepted fieldweights=sku,90,partnumber,30,barcode,20,name,10.
(I.e., fieldweights=<field1_name>,<field1_weight>,...)
Results came ordered by weight even without specifying sort=extended:#weight DESC, so I dodged both errors and got what I needed.
Hope this helps anyone in the same situation.
I am fetching data table to R from hana but it is showing some kind of error.
Succesfully integrated and odbc got connected but data is not fetching.
sqlFetch(ch,'SELECT * FROM "MY_SCHEMA.TICKETS_BY_YEAR"')
Error in odbcTableExists(channel, sqtable) :
‘SELECT * FROM "MY_SCHEMA.TICKETS_BY_YEAR"’: table not found on channel
i expected for the data but it is not coming
The cause of the error message is the wrong use of double-quotes (“).
To correctly quote the schema name and the table name, each of them need to be enclosed in a couple of quotation marks like so:
FROM “SCHEMA_NAME”.”TABLE_NAME”
^ ^ ^ ^
Your command in R needs to look like this:
sqlFetch(ch, 'SELECT * FROM "MY_SCHEMA”.”TICKETS_BY_YEAR"')
Heres my migration codes:
class CreateOrdersTable extends Migration
{
/**
* Run the migrations.
*
* #return void
*/
public function up()
{
Schema::create('orders', function (Blueprint $table){
$table->increments('order_id');
$table->integer('order_no');
$table->string('total_price');
$table->date('date_received');
$table->date('date_expected');
$table->integer('product_id')->unsigned();
$table->foreign('product_id')->references('product_id')->on('product');
$table->string('product_snumber');
$table->integer('customer_name')
$table->string('order_status');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* #return void
*/
public function down()
{
Schema::dropIfExists('orders');
}
}
But after I run 'php artisan migrate', the following error appears.
[Symfony\Component\Debug\Exception\FatalThrowableError]
Parse error: syntax error, unexpected '$table' (T_VARIABLE)
Please help! I am migrating to phpmyadmin database.
Yes #Bagus Tesa is right. (Just wanted to answer because I nearly missed the comment as it contains no answer)
The missing semicolon ; could be the problem. Check all your modified migrations.
Check if into another migration has some char or something was lost there, In my case, I forgot a character in an old migration :(, after removed that worked for me!
The error occurred for me when I cut and pasted a list of fields from another program, Freemind 1.0.1, into VS Code (the one before 1.47.1). Some pasted lines included leading spaces. VS Code continually showed the error until all the leading spaces were deleted and replaced with the usual tab key presses.
It was necessary to start deleting the leading spaces above the highlighted error line. The error highlight would then hop from line to line down the code till it disappeared.
Sometimes the error switched from
unexpected '$table'
to:
unexpected ' '
Because the problem was in the leading spaces, it couldn't be seen, unlike the missing semicolon solution.
$table->integer('customer_name')
missing semicolon ';'
meanwhile for avoiding these errors when your coding , you should use as such EA inspect codes plugins , usually smell check code and background inspect tools
semicolon is missing on this line $table->integer('customer_name') add semicolon $table->integer('customer_name');
I am using Mac Pro with El Capitan. I tried installing Julia through homebrew but it fails with the following stack trace
==> make FC=/usr/local/bin/gfortran
Last 15 lines from /Users/vishalsharma/Library/Logs/Homebrew/openblas-julia/01.make:
printf("#define DLOCAL_BUFFER_SIZE\t%ld\n", (DGEMM_DEFAULT_Q * DGEMM_DEFAULT_UNROLL_N * 2 * 1 * sizeof(double)));
^
getarch_2nd.c:69:50: error: use of undeclared identifier 'CGEMM_DEFAULT_Q'
printf("#define CLOCAL_BUFFER_SIZE\t%ld\n", (CGEMM_DEFAULT_Q * CGEMM_DEFAULT_UNROLL_N * 4 * 2 * sizeof(float)));
^
getarch_2nd.c:69:68: error: use of undeclared identifier 'CGEMM_DEFAULT_UNROLL_N'
printf("#define CLOCAL_BUFFER_SIZE\t%ld\n", (CGEMM_DEFAULT_Q * CGEMM_DEFAULT_UNROLL_N * 4 * 2 * sizeof(float)));
^
getarch_2nd.c:70:50: error: use of undeclared identifier 'ZGEMM_DEFAULT_Q'
printf("#define ZLOCAL_BUFFER_SIZE\t%ld\n", (ZGEMM_DEFAULT_Q * ZGEMM_DEFAULT_UNROLL_N * 2 * 2 * sizeof(double)));
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [getarch_2nd] Error 1
Makefile:131: *** OpenBLAS: Detecting CPU failed. Please set TARGET explicitly, e.g. make TARGET=your_cpu_target. Please read README for the detail.. Stop.
It looks like OpenBLAS can't detect your CPU architecture. Do you have a Nehalem CPU? You'll need to create a Make.inc file with OPENBLAS_TARGET_ARCH=NEHALEM inside it, and run make TARGET=NEHALEM FC=... or similar (adjust NEHALEM to HASWELL or your arch as appropriate). See the recent comments on this GitHub issue.