deep-foundation / deepcase-app

https://deep-foundation.github.io/deepcase-app/
The Unlicense
11 stars 6 forks source link

Client handler for "Contain" is not working #260

Closed flakeed closed 6 months ago

flakeed commented 7 months ago

Describe the bug

image


SyntaxError: Unexpected token 'var'
    at new Function (<anonymous>)
    at eval (webpack-internal:///../deeplinks/imports/client-handler.js:20:33)
    at Generator.next (<anonymous>)
    at eval (webpack-internal:///../deeplinks/imports/client-handler.js:12:71)
    at new Promise (<anonymous>)
    at __awaiter (webpack-internal:///../deeplinks/imports/client-handler.js:8:12)
    at evalClientHandler (webpack-internal:///../deeplinks/imports/client-handler.js:17:12)
    at eval (webpack-internal:///../deepcase/imports/client-handler.js:321:122)
    at Generator.next (<anonymous>)
    at eval (webpack-internal:///../deepcase/imports/client-handler.js:74:71)
    at new Promise (<anonymous>)
    at __awaiter (webpack-internal:///../deepcase/imports/client-handler.js:70:12)
    at evalClientHandler (webpack-internal:///../deepcase/imports/client-handler.js:320:12)
    at ClientHandler._a (webpack-internal:///../deepcase/imports/client-handler.js:168:9)
    at commitHookEffectListMount (webpack-internal:///../../node_modules/react-dom/cjs/react-dom.development.js:23145:26)
    at commitPassiveMountOnFiber (webpack-internal:///../../node_modules/react-dom/cjs/react-dom.development.js:24921:13)
    at commitPassiveMountEffects_complete (webpack-internal:///../../node_modules/react-dom/cjs/react-dom.development.js:24886:9)
    at commitPassiveMountEffects_begin (webpack-internal:///../../node_modules/react-dom/cjs/react-dom.development.js:24873:7)
    at commitPassiveMountEffects (webpack-internal:///../../node_modules/react-dom/cjs/react-dom.development.js:24861:3)
    at flushPassiveEffectsImpl (webpack-internal:///../../node_modules/react-dom/cjs/react-dom.development.js:27034:3)
    at flushPassiveEffects (webpack-internal:///../../node_modules/react-dom/cjs/react-dom.development.js:26979:14)
    at eval (webpack-internal:///../../node_modules/react-dom/cjs/react-dom.development.js:26764:9)
    at workLoop (webpack-internal:///../../node_modules/scheduler/cjs/scheduler.development.js:266:34)
    at flushWork (webpack-internal:///../../node_modules/scheduler/cjs/scheduler.development.js:239:14)
    at MessagePort.performWorkUntilDeadline (webpack-internal:///../../node_modules/scheduler/cjs/scheduler.development.js:533:21)```

### Expected Behavior

_No response_

### Current Behavior

_No response_

### Steps to reproduce

_No response_

### Environment

_No response_
FreePhoenix888 commented 7 months ago

I am cheking deepcase client handlers and for some reason: editorClientHandler preview is working image queryClientHandler preview is not working image stringClientHandler preview is not working image

Additional info: image There is no var keyword in this handler

FreePhoenix888 commented 6 months ago

I have fixed this in deepcsae 0.0.99

Konard commented 6 months ago

Actually fixed at https://github.com/deep-foundation/deeplinks/commit/16daede15610db67130ad30e30c30065addf86a6

FreePhoenix888 commented 6 months ago

Actually fixed at deep-foundation/deeplinks@16daede

What have my work was related to then? Why Am I unsigned? When I have updated handler link to link to TSX link (source code) instead of SyncTextFile (generated code) error was fixed We both fixed it two ways

Konard commented 6 months ago

@ivansglazunov @FreePhoenix888 as both of you did changes towards the solution, I will keep both of you assigned. Though it contradicts atomic responsibility principle.

In the future, @FreePhoenix888 please speak with @ivansglazunov first, when problem or feature is related to front-end. @ivansglazunov has a responsibility over front-end architecture. If we synchronized our perception earlier, we would decide the atomic responsibility for that issue.

We may use this issue as an example of how not to do in the future. So this case will be an exception to general practice.

FreePhoenix888 commented 6 months ago

@ivansglazunov @FreePhoenix888 as both of you did changes towards the solution, I will keep both of you assigned. Though it contradicts atomic responsibility principle.

In the future, @FreePhoenix888 please speak with @ivansglazunov first, when problem or feature is related to front-end. @ivansglazunov has a responsibility over front-end architecture. If we synchronized our perception earlier, we would decide the atomic responsibility for that issue.

We may use this issue as an example of how not to do in the future. So this case will be an exception to general practice.

I understand you, but ... It is not easy to contact @ivansglazunov and wait for his answer when a lot of people struggle cause of not working client handler. Also you as responsible for architecture said to me to do the changes I have made :)

Konard commented 6 months ago

@FreePhoenix888 yes, and that was my mistake too. I should discuss it with @ivansglazunov next time.