You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
codebender comes to fill the need for reliable and easy to use tools for makers.
8
-
A need that from our own experience could not be totally fulfilled by any of the existing solutions. Things like installing libraries, updating the software or installing the IDE can be quite a painful process.
8
+
codebender fills the need for reliable, easy to use tools for makers, a need that couldn't be completely fulfilled by any existing solution according to our experience.
9
9
10
-
In addition to the above, the limited features provided (e.g. insufficient highlighting, indentation and autocompletion) got us starting building codebender, a completely web-based IDE, that requires virtually no installation and offers a great code editor. It also stores your sketches on the cloud.
10
+
Things like installing libraries or the IDE and updating software sometimes were (and still are) quite a painful process. But in addition to the above, the limited features provided (e.g. insufficient highlighting, indentation and autocompletion) got us to start codebender, a completely web-based IDE that requires virtually no installation and offers a great code editor. Plus it stores your sketches on the cloud. Yeah!
11
11
12
-
That way, you can still access your sketches safely even if your laptop is stolen or your hard drive fails! codebender also takes care of compilation, giving you extremely descriptive warnings on terrible code. On top of that, when you are done, you can upload your code to your Arduino straight from the browser.
12
+
With your code on the cloud, you can access your sketches safely even if your laptop is stolen or your hard drive fails! codebender also compiles your code giving you extremely descriptive error descriptions on terrible code. There's even more, you can upload your code to your Arduino straight from the browser.
13
13
14
14
## How does the compiler come into the picture?
15
15
16
-
The compiler repository includes all the necessary files needed to run the compiler as a service. It receives the code as input and outputs the errors in the code, or the compiled output if the compilation was successful. We provide a really easy to use interface to allow us to send the code to the compiler easily.
16
+
The compiler repository includes all the necessary files needed to run the compiler as a service. It receives the code as input and outputs the compiled output if the compilation was successful or the errors present in the code. We provide an easy interface to send the code to the compiler.
17
17
18
18
Here's a list of open source projects we use
19
19
* Clang
20
20
* gcc-avr
21
21
* avr binutils (avrsize)
22
22
23
-
For development, we've used it on a variety of Linux and Mac OS X machines.
23
+
For development we've run it on a variety of Linux and Mac OS X machines.
24
24
25
-
For production, we are using Ubuntu Server 12.04, and we know it works perfectly with that, so we suggest using that as well.
25
+
For production we are using Ubuntu Server 12.04. We know the compiler works perfectly on it, so we suggest you using it as well.
Then cd in the created directory (if you run the command as is above, it would be named `compiler`) and run
34
+
35
+
`scripts/install.sh`
36
+
37
+
(don't cd into scripts directory and run install.sh from there, it won't work)
38
+
39
+
If you now visit `http://localhost/status` you'll see a JSON response telling you everything's ok:
40
+
`{"success":true,"status":"OK"}`
41
+
42
+
## What's next?
43
+
44
+
Visit the [wiki](https://github.com/codebendercc/compiler/wiki) for more information.
45
+
46
+
## How can someone contribute?
47
+
48
+
Contribution is always welcome whether it is by creating an issue for a bug or suggestion you can't fix yourself or a pull request for something you can.
49
+
50
+
If you write new code or edit old code please don't forget to add/update relative unit tests that come with it. It is always a good idea to run tests localy to make sure nothing breaks before you create a pull request.
51
+
52
+
We expect new code to be [PSR-2](http://www.php-fig.org/psr/psr-2/) but we know we carry legacy code with different coding styles. You're welcome to fix that.
Copy file name to clipboardExpand all lines: Symfony/app/SymfonyRequirements.php
+50-31Lines changed: 50 additions & 31 deletions
Original file line number
Diff line number
Diff line change
@@ -77,7 +77,7 @@ public function getTestMessage()
77
77
}
78
78
79
79
/**
80
-
* Returns the help text for resolving the problem
80
+
* Returns the help text for resolving the problem.
81
81
*
82
82
* @return string The help text
83
83
*/
@@ -119,14 +119,14 @@ class PhpIniRequirement extends Requirement
119
119
*
120
120
* @param string $cfgName The configuration name used for ini_get()
121
121
* @param Boolean|callback $evaluation Either a Boolean indicating whether the configuration should evaluate to true or false,
122
-
or a callback function receiving the configuration value as parameter to determine the fulfillment of the requirement
123
-
* @param Boolean $approveCfgAbsence If true the Requirement will be fulfilled even if the configuration option does not exist, i.e. ini_get() returns false.
124
-
This is helpful for abandoned configs in later PHP versions or configs of an optional extension, like Suhosin.
125
-
Example: You require a config to be true but PHP later removes this config and defaults it to true internally.
126
-
* @param string|null $testMessage The message for testing the requirement (when null and $evaluation is a Boolean a default message is derived)
127
-
* @param string|null $helpHtml The help text formatted in HTML for resolving the problem (when null and $evaluation is a Boolean a default help is derived)
128
-
* @param string|null $helpText The help text (when null, it will be inferred from $helpHtml, i.e. stripped from HTML tags)
129
-
* @param Boolean $optional Whether this is only an optional recommendation not a mandatory requirement
122
+
* or a callback function receiving the configuration value as parameter to determine the fulfillment of the requirement
123
+
* @param Boolean $approveCfgAbsence If true the Requirement will be fulfilled even if the configuration option does not exist, i.e. ini_get() returns false.
124
+
* This is helpful for abandoned configs in later PHP versions or configs of an optional extension, like Suhosin.
125
+
* Example: You require a config to be true but PHP later removes this config and defaults it to true internally.
126
+
* @param string|null $testMessage The message for testing the requirement (when null and $evaluation is a Boolean a default message is derived)
127
+
* @param string|null $helpHtml The help text formatted in HTML for resolving the problem (when null and $evaluation is a Boolean a default help is derived)
128
+
* @param string|null $helpText The help text (when null, it will be inferred from $helpHtml, i.e. stripped from HTML tags)
129
+
* @param Boolean $optional Whether this is only an optional recommendation not a mandatory requirement
@@ -221,13 +221,13 @@ public function addRecommendation($fulfilled, $testMessage, $helpHtml, $helpText
221
221
*
222
222
* @param string $cfgName The configuration name used for ini_get()
223
223
* @param Boolean|callback $evaluation Either a Boolean indicating whether the configuration should evaluate to true or false,
224
-
or a callback function receiving the configuration value as parameter to determine the fulfillment of the requirement
225
-
* @param Boolean $approveCfgAbsence If true the Requirement will be fulfilled even if the configuration option does not exist, i.e. ini_get() returns false.
226
-
This is helpful for abandoned configs in later PHP versions or configs of an optional extension, like Suhosin.
227
-
Example: You require a config to be true but PHP later removes this config and defaults it to true internally.
228
-
* @param string $testMessage The message for testing the requirement (when null and $evaluation is a Boolean a default message is derived)
229
-
* @param string $helpHtml The help text formatted in HTML for resolving the problem (when null and $evaluation is a Boolean a default help is derived)
230
-
* @param string|null $helpText The help text (when null, it will be inferred from $helpHtml, i.e. stripped from HTML tags)
224
+
* or a callback function receiving the configuration value as parameter to determine the fulfillment of the requirement
225
+
* @param Boolean $approveCfgAbsence If true the Requirement will be fulfilled even if the configuration option does not exist, i.e. ini_get() returns false.
226
+
* This is helpful for abandoned configs in later PHP versions or configs of an optional extension, like Suhosin.
227
+
* Example: You require a config to be true but PHP later removes this config and defaults it to true internally.
228
+
* @param string $testMessage The message for testing the requirement (when null and $evaluation is a Boolean a default message is derived)
229
+
* @param string $helpHtml The help text formatted in HTML for resolving the problem (when null and $evaluation is a Boolean a default help is derived)
230
+
* @param string|null $helpText The help text (when null, it will be inferred from $helpHtml, i.e. stripped from HTML tags)
@@ -239,13 +239,13 @@ public function addPhpIniRequirement($cfgName, $evaluation, $approveCfgAbsence =
239
239
*
240
240
* @param string $cfgName The configuration name used for ini_get()
241
241
* @param Boolean|callback $evaluation Either a Boolean indicating whether the configuration should evaluate to true or false,
242
-
or a callback function receiving the configuration value as parameter to determine the fulfillment of the requirement
243
-
* @param Boolean $approveCfgAbsence If true the Requirement will be fulfilled even if the configuration option does not exist, i.e. ini_get() returns false.
244
-
This is helpful for abandoned configs in later PHP versions or configs of an optional extension, like Suhosin.
245
-
Example: You require a config to be true but PHP later removes this config and defaults it to true internally.
246
-
* @param string $testMessage The message for testing the requirement (when null and $evaluation is a Boolean a default message is derived)
247
-
* @param string $helpHtml The help text formatted in HTML for resolving the problem (when null and $evaluation is a Boolean a default help is derived)
248
-
* @param string|null $helpText The help text (when null, it will be inferred from $helpHtml, i.e. stripped from HTML tags)
242
+
* or a callback function receiving the configuration value as parameter to determine the fulfillment of the requirement
243
+
* @param Boolean $approveCfgAbsence If true the Requirement will be fulfilled even if the configuration option does not exist, i.e. ini_get() returns false.
244
+
* This is helpful for abandoned configs in later PHP versions or configs of an optional extension, like Suhosin.
245
+
* Example: You require a config to be true but PHP later removes this config and defaults it to true internally.
246
+
* @param string $testMessage The message for testing the requirement (when null and $evaluation is a Boolean a default message is derived)
247
+
* @param string $helpHtml The help text formatted in HTML for resolving the problem (when null and $evaluation is a Boolean a default help is derived)
248
+
* @param string|null $helpText The help text (when null, it will be inferred from $helpHtml, i.e. stripped from HTML tags)
'Set "<strong>intl.error_level</strong>" to "<strong>0</strong>" in php.ini<a href="#phpini">*</a> to inhibit the messages when an error occurs in ICU functions.'
0 commit comments