Kemal framework - undefined constant HTTP::FormData - crystal-lang

I'm trying to set up a web app using the kemal framework written in the crystal language. I followed the tutorial mentioned in the getting started guide here
However, I can't get even the most basic web app to work. The line Kemal.run gives an error which traces to the line lib/kemal/src/kemal/param_parser.cr:69 and shows this error undefined constant HTTP::FormData.
I found the HTTP::FormData module https://github.com/RX14/multipart.cr. Adding this as a dependency and requiring it does not help.
Thanks in advance

You are probably using an old version of Crystal. Check with crystal -v.
HTTP::FormData has been added in Crystal 0.21.0.

Related

Ballerina CLASS_NOT_FOUND exception

I followed https://github.com/wso2-ballerina/module-ftp and tried to run a sample file as follows
ballerina run getFtp.bal
It gives me following output
Compiling source
getFtp.bal
error: wso2:ftp:/src/ftp/external_functions.bal:70:1: {ballerinax/java}CLASS_NOT_FOUND message=org.wso2.ei.b7a.ftp.core.client.FTPClient
error: wso2:ftp:/src/ftp/external_functions.bal:75:1: {ballerinax/java}CLASS_NOT_FOUND message=org.wso2.ei.b7a.ftp.core.server.FTPListenerHelper
Note that I ran ballerina pull wso2/ftp command prior to this, Is there anything else to do, any help is appreciated.
Thanks
There was an issue where interoperability did not work for single ballerina files. That is why you are getting this error. Try converting your code to a project module. Then it will work with the ballerina version you have.
This issue is fixed in ballerina 1.0.3 (https://ballerina.io/downloads/).

Angular build error in core/src/render3/interfaces

While building an Angular 6 app i get a compile error in #angular/core/src/render3/interfaces on line 35. The line is:
[ACTIVE_INDEX]: number | null;
and the error is:
error TS1169: A computed property name in an interface must directly refer to a built-in symbol.
I an using #angular/core#6.1.6. Am I doing something wrong or is this an Angular bug?
Verify that Visual Studio is targeting the correct version of Typescript (as seen in your package.json), then try deleting your node_modules folder, and rerunning npm install.
I believe that this is caused by running Angular 6 with an earlier, incompatible version of typescript (<2.7), because it looks like the ability used by the container.d.ts file (referenced in your error) to use Constant-Named Properties was added in Typescript 2.7. Of course, if it were that simple then ng serve would tell you about the Typescript incompatibility, so I assume that I'm either wrong, or that your environment is playing tricks on you.
See here for a related question.

open tensorboard in Google Chrome shows blank

My tensorflow is installed on ubuntu 16.04 and also generates log files, but when running tensorboard there is nothing on Google Chrome. There was no error on the command line.
This error only appears on Google Chrome. What can I do to display it properly?
This file is deprecated. Please use
iron-flex-layout/iron-flex-layout-classes.html, and one of the
specific dom-modules instead
thinkpad/:39507 This file is deprecated. Please use
iron-flex-layout/iron-flex-layout-classes.html, and one of the
specific dom-modules instead
thinkpad/:157058 Uncaught TypeError: Object.values is not a function
It's possible you're using Chrome version 49 or earlier: https://caniuse.com/#search=object.value
I mailed out tensorflow/tensorboard#1089 to solve this problem. Please note there might be other things in our codebase that are incompatible with old browsers. I'd like to improve this situation. Please email jart#google.com if you encounter similar problems.
It especially helps if you can send a screenshot of the code in question. For example, if Chrome says JavaScript broke on line 48238, you can run wget -O index.html http://localhost:6006/ and nano +48238 index.html so you can take a screenshot of the code in question. (Note: This will get easier in the future.)

Sulu not running on PHP7

was any one of you able to install sulu on a webserver running Apache and PHP7?
When I try to clear the cache, I get an error PHP Fatal error: Cannot use 'String' as class name as it is reserved in /var/www/foobar/vendor/doctrine/phpcr-odm/lib/Doctrine/ODM/PHPCR/Mapping/Annotations/String.php on line 28
We are already working on that. The main problem is the usage of a class named String in the PHPCR-ODM. They fixed that in version 1.3. Also there are some tests still failing, but we are already working on that. You can follow the progress on the corresponding PR.

Module unittest Kohana error, how to use?

I am trying times longer run it has several errors. Someone
has any tutorial or some way to make it work. Tested
several tutorials and I could not.
vlw staff
I already placed the php unittest unit in the directory.
the error is as follows:
Fatal error: main() [function.require]: Failed opening required
'PHPUnit/Util/Filter.php' (include_path='.;C:\php5\pear') in C:\wamp
\www\doeseulixo\branches\module_unittest\modules\unittest\PHPUnit
\Framework.php on line 0
See Installing PHPUnit.
PHPUnit should be installed with the 'pear' utility rather than downloaded manually. Kohana needs access to more than one class of the library.