Skip to content

Commit

Permalink
release
Browse files Browse the repository at this point in the history
  • Loading branch information
cfry committed May 10, 2022
1 parent a5b4d5e commit 2647499
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 14 deletions.
4 changes: 2 additions & 2 deletions core/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
global.dde_version = "3.8.3" //require("../package.json").version
global.dde_release_date = "Apr 7, 2022" //require("../package.json").release_date
global.dde_version = "3.8.4" //require("../package.json").version
global.dde_release_date = "May 9, 2022" //require("../package.json").release_date

console.log("dde_version: " + global.dde_version + " dde_release_date: " + global.dde_release_date +
"\nRead electron_dde/core/job_engine_doc.txt for how to use the Job Engine.\n")
Expand Down
23 changes: 15 additions & 8 deletions core/storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -339,13 +339,19 @@ function read_file_async_from_dexter_using_node_server(dex_instance, path, callb
// so we add the dde_apps to be consistent with dde's default dir.
}
let url = "http://" + dex_instance.ip_address + "/edit?edit=" + path //example: "http://192.168.1.142/edit?edit=root/dde_apps/dde_init.js" whereby no beiginning slas actually means going from the server's top level of file system
let content = get_page(url) //does not error if file doens't exist so ...
let the_err = null
if(content.startsWith("Error:")){
the_err = new Error()
the_err.message = content
content = null
let req = {
uri: url,
encoding: null
}
let content_array = get_page(req) //does not error if file doens't exist so ...
let content = content_array.toString("binary"); //Strings can contain binary file content
let the_err = null

//if(content.startsWith("Error:")){
// the_err = new Error()
// the_err.message = content
// content = null
//}
callback(the_err, content)
}

Expand Down Expand Up @@ -575,8 +581,9 @@ function copy_file_async(source_path, destination_path, callback=null){
}
}
}
read_file_async(source_path, "ascii", //"binary" should faithfully read and write content without modification.
// "ascii" fails on jpg files.
read_file_async(source_path, null, //"ascii" was used up thru dde3.8.3, but doesn't copy binary files properly
// "binary" *should* faithfully read and write content without modification but doesn't
// "ascii" fails on jpg files.

function(err, data){
if(err) { //only call the callback for the read IF there's a read error.
Expand Down
4 changes: 2 additions & 2 deletions doc/guide.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

<details class="doc_details"><summary>About</summary>
This is <a href="http://hdrobotic.com/" target="_blank">Dexter</a> Development Environment<br/>
version: <span id="dde_version_id">3.8.3</span><br/>
released: <span id="dde_release_date_id">Apr 7, 2022</span>
version: <span id="dde_version_id">3.8.4</span><br/>
released: <span id="dde_release_date_id">May 9, 2022</span>
<p></p>
DDE helps you create, debug, and send software to a Dexter robot.
You can use any JavaScript augmented with DDE-specific functions to help find out about,
Expand Down
10 changes: 10 additions & 0 deletions doc/release_notes.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@
}
.doc_details summary { font-weight: 600; }
</style>

<details class="doc_details"><summary>v 3.8.4, May 9, 2022</summary>
<ul>
<li>In DDE's editor, fixed Lint red dot to not show up for <code>confirm()</code>.</li>
<li><code>copy_file_async</code> and
<code>read_file_async_from_dexter_using_job</code>
fixed to copy accurately, both ascii and binary files.</li>
</ul>
</details>

<details class="doc_details"><summary>v 3.8.3, Apr 7, 2022</summary>
Highlights: Bug fixes for Defaults.make_ins file processing.
<ul>
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "dexter_dev_env",
"productName": "dexter_dev_env",
"version": "3.8.3",
"release_date": "Apr 7 2022",
"version": "3.8.4",
"release_date": "May 9 2022",
"description": "Dexter Development Environment for programming the Dexter robot.",
"author": "Fry",
"license": "GPL-3.0",
Expand Down

0 comments on commit 2647499

Please sign in to comment.