Browse Source

Merge pull request #195 from JohanMabille/upgrade_backend

Upgraded to xeus-python 0.6.6
Johan Mabille 5 years ago
parent
commit
b007b077af
5 changed files with 8 additions and 7 deletions
  1. 1 1
      azure-pipelines.yml
  2. 1 1
      binder/environment.yml
  3. 2 2
      src/service.ts
  4. 3 2
      src/tokens.ts
  5. 1 1
      tests/src/session.spec.ts

+ 1 - 1
azure-pipelines.yml

@@ -16,7 +16,7 @@ steps:
 
 - bash: |
     source activate jupyterlab-debugger
-    conda install --yes --quiet -c conda-forge nodejs xeus-python=0.6.5 ptvsd python=$PYTHON_VERSION
+    conda install --yes --quiet -c conda-forge nodejs xeus-python=0.6.6 ptvsd python=$PYTHON_VERSION
     python -m pip install -U --pre jupyterlab
   displayName: Install dependencies
 

+ 1 - 1
binder/environment.yml

@@ -6,4 +6,4 @@ dependencies:
 - nodejs
 - notebook=6
 - ptvsd
-- xeus-python=0.6.5
+- xeus-python=0.6.6

+ 2 - 2
src/service.ts

@@ -217,8 +217,8 @@ export class DebugService implements IDebugger {
 
     this.setHashParameters(reply.body.hashMethod, reply.body.hashSeed);
     this.setTmpFileParameters(
-      reply.body.tmp_file_prefix,
-      reply.body.tmp_file_suffix
+      reply.body.tmpFilePrefix,
+      reply.body.tmpFileSuffix
     );
 
     const breakpoints = reply.body.breakpoints;

+ 3 - 2
src/tokens.ts

@@ -226,8 +226,9 @@ export namespace IDebugger {
         hashMethod: string;
         hashSeed: number;
         breakpoints: IDebugInfoBreakpoints[];
-        tmp_file_prefix: string;
-        tmp_file_suffix: string;
+        tmpFilePrefix: string;
+        tmpFileSuffix: string;
+        stoppedThreads: number[];
       };
     }
 

+ 1 - 1
tests/src/session.spec.ts

@@ -183,7 +183,7 @@ describe('protocol', () => {
       });
       expect(reply.success).to.be.true;
       const stackFrames = reply.body.stackFrames;
-      expect(stackFrames.length).to.equal(2);
+      expect(stackFrames.length).to.equal(1);
       const frame = stackFrames[0];
       // first breakpoint
       expect(frame.line).to.equal(3);