Comments (12)
hey @rinwa, thanks for reaching out. I just want to clarify the issue - your loop creates a whisper, updates the whisper a few times, and then you close the whisper and your loop tries to update the whisper again and it's not available, right? That would be expected behavior, as there would be no way to update a whisper after it was closed. Am I understanding this correctly? If you don't mind sharing the steps to reproduce your issue, that would be helpful.
from loop-development-kit.
from loop-development-kit.
Thanks for clarifying and adding so much context. I'm curious, where or how is your showData()
function called? Is it possible that it is being called after the whisper is closed?
from loop-development-kit.
With close (Dismiss) icon of the whisper I am closing the whisper. On close get the error and this.showFlag variable value remain 1 and onClose: ( )=> { } callback not getting called. if I call the showData() function after the error in log it show like this (Failed to Update Whipser — Whisper Does Not Exist ID for ID) which is fine. but I am getting the error on close the whisper.
from loop-development-kit.
Would you be able to share all of your source code with us? That may help us reproduce and identify this issue.
from loop-development-kit.
showResult.js
import { whisper } from '@oliveai/ldk';
export default class ShowResult {
constructor() {
this.showwhisper = undefined;
this.showFlag = 0;
}
async showData(compArr) {
if (this.showFlag == 0) {
console.log('if testing-------------', this.showFlag);
whisper
.create({
label: 'Search Data',
onClose: () => {
console.log('if testing-------------', this.showwhisper);
this.showFlag = 0;
},
components: compArr,
})
.then((newWhisper) => {
this.showwhisper = newWhisper;
this.showFlag = 1;
});
} else {
console.log('else testing-------------', this.showwhisper);
this.showwhisper?.update({
label: 'Search Data',
components: compArr,
});
}
}
close() {
this.showFlag = 0;
this.showwhisper.close();
}
static onClose(err) {
this.showFlag = 0;
if (err) {
console.error('There was an error closing Intro whisper', err);
}
console.log('Intro whisper closed');
}
}
Index.js
import ShowResult from './showResult';
import { WhisperComponentType } from '@oliveai/ldk/dist/whisper/types';
(async function main() {
let search = new ShowResult();
let markdown_new = {
body: 'Your First Loop page',
type: WhisperComponentType.Markdown,
};
let compArr_New = [markdown_new];
search.showData(compArr_New);
let arr = [
'If you wanted to create the Hello World ',
'When you click Create Loop, a new VSCode editor will open with your new Loop project',
'This project contains a pre-generated package.json ',
];
let i = 0;
var interval = setInterval(function () {
if (i == 2) {
clearInterval(interval);
}
let markdown = {
body: arr[i],
type: WhisperComponentType.Markdown,
};
let compArr = [markdown];
search.showData(compArr);
i += 1;
}, 1000);
})();
After all the message shown in the whisper Just close the whisper and check the log you will find the error.
from loop-development-kit.
Hello @rinwa - I was able to reproduce your issue in the latest version of Olive Helps with the code you provided. I will be entering a bug ticket in our internal system to investigate further. Thanks for your patience!
from loop-development-kit.
Hello again - I just wanted to update you on this issue. This was indeed a bug with the whisper update process, so we have identified and fixed the issue and it will be released soon. I'll let you know here when that happens. Thanks!
from loop-development-kit.
It will be highly appreciated if you could provide release date
from loop-development-kit.
It should be coming out at the end of this week! Thank you for your patience.
from loop-development-kit.
The fix for this has been released (Olive Helps v0.44.2)
from loop-development-kit.
ok thanks, I check
from loop-development-kit.
Related Issues (20)
- Add ability to make link components bold HOT 3
- Add copy text listener HOT 1
- Browser Aptitude: React Route changes not noticed by `listenNavigation` HOT 4
- Alignment and spacing broken after LDK v3.10.0 and OH v0.30.2 new release HOT 4
- Loading loop on user login to Olive Helps HOT 4
- Enhancement request: Arbitrary colors on icons, or at least more options HOT 1
- CustomHeight no longer being honored OH v0.30.2 LDK 3.10.1 HOT 2
- Enhancement Request: Browser Aptitude - Ability to listen for keyboard input events HOT 4
- Browser Aptitude: Duplicate events on Olive Helps Restart HOT 3
- Keyboard Aptitude - issues with listenText HOT 5
- Mouse aptitude - Detect mouse down and up events HOT 3
- [BUG] Wrong Message. HOT 5
- [FEATURE] Need access to shared location HOT 1
- [FEATURE] General query on hosting loop app on Olive App Store HOT 1
- [BUG] filesystem.exist() and filesystem.dir() bug HOT 1
- [FEATURE]: Execute commands on terminal from loop.
- [BUG]: Browser tab is not opening HOT 1
- Callback not found. [BUG]: HOT 1
- Get JWT HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from loop-development-kit.