guild icon
Toit
#Missing implementations for 'set-no-delay'
Thread channel in help
AmusedGrape
AmusedGrape 03/28/2024 05:09 AM
Hey there! I'm very new to Toit and all, and I'm trying to install a container on my ESP32.

I'm getting this error when running artemis device container install --trigger interval:60s tracker ./Client/client.toit "ws://192.168.0.58:8080/ws":
<pkg:pkg-http-2.5.0>/connection.toit:332:7: error: Missing implementations for interface methods class DetachedSocket_ implements tcp.Socket: ^~~~~~~~~~~~~~~ <sdk>/net/tcp.toit:19:3: note: Missing implementation for 'set-no-delay' set-no-delay enabled/bool -> none ^~~~~~~~~~~~ Compilation failed. EXCEPTION error. toit.compile failed with exit code 0

Any ideas on what to do? The code works when not being installed through artemis, so I'm unsure what the issue could be.

Thanks!!
floitsch
floitsch 03/28/2024 09:29 AM
This is due to a recent update.
I think what happens here is that Jaguar uses a newer version of the SDK than Artemis and has pulled in a version of the http package that doesn't work with the one Artemis uses.
floitsch
floitsch 03/28/2024 09:31 AM
I think things would be solved if we do a new release of Artemis that accepts the same version of the SDK.
floitsch
floitsch 03/28/2024 09:33 AM
I will try to upload a service image for the new SDK.
floitsch
floitsch 03/28/2024 09:35 AM
In the meantime you could download an older version of Jaguar.
You would need to run jag pkg update to make the used packages compatible again.
floitsch
floitsch 03/28/2024 09:36 AM
Sorry for the inconvenience. When I removed the deprecated function I didn't anticipate how much problems that would give.
AmusedGrapeOPAmusedGrape
Hey there! I'm very new to Toit and all, and I'm trying to install a container on my ESP32. I'm getting this error when running `artemis device container install --trigger interva...
floitsch
floitsch 03/28/2024 10:09 AM
Actually found a better solution.
If you jag pkg update in your project it should now find a newer version of the http package that is again compatible with the SDK that Artemis uses.
AmusedGrapeOPAmusedGrape
Hey there! I'm very new to Toit and all, and I'm trying to install a container on my ESP32. I'm getting this error when running `artemis device container install --trigger interva...
floitsch
floitsch 03/28/2024 10:27 AM
Also, could you check if there is a line "The SDK constraint defined in the package.lock file is not satisfied: v2.0.0-alpha.142 < ^2.0.0-alpha.143" in your output?

I just modified the compiler not to print other errors if that happens, but just want to make sure that the error was already printed.
(edited)
floitschfloitsch
Also, could you check if there is a line "The SDK constraint defined in the package.lock file is not satisfied: v2.0.0-alpha.142 < ^2.0.0-alpha.143" in your output? I just modifie...(edited)
AmusedGrape
AmusedGrape 03/28/2024 01:08 PM
Yeah that's there too, I'll try updating real quick
AmusedGrape
AmusedGrape 03/28/2024 01:08 PM
Updated, didn't seem to work
floitsch
floitsch 03/28/2024 01:08 PM
You updated the packages?
AmusedGrape
AmusedGrape 03/28/2024 01:09 PM
Yeah, I ran jag pkg update, no output so I'm not sure if anything updated or not
floitsch
floitsch 03/28/2024 01:10 PM
Could you paste the content of the package.lock file?
AmusedGrape
AmusedGrape 03/28/2024 01:10 PM
sdk: ^2.0.0-alpha.143 prefixes: http: pkg-http-2.5.0 websocket: pkg-websocket packages: pkg-http-1.9.3: url: github.com/toitlang/pkg-http name: http version: 1.9.3 hash: 108c436cc990535f5d70c380ef68081c38840f4c pkg-http-2.5.0: url: github.com/toitlang/pkg-http name: http version: 2.5.0 hash: 4b9c2e4bdf1e57590899e7a42b049e751136aa7c pkg-websocket: url: github.com/toitlang/pkg-websocket name: websocket version: 1.0.0 hash: bf0fedd82f13c44b8f7221582ba585f35b77f2ef prefixes: http: pkg-http-1.9.3
floitsch
floitsch 03/28/2024 01:11 PM
Still uses pkg http 2.5.0...
floitsch
floitsch 03/28/2024 01:11 PM
Could you try jag pkg uninstall http and then install it again?
AmusedGrape
AmusedGrape 03/28/2024 01:11 PM
Sure
AmusedGrape
AmusedGrape 03/28/2024 01:12 PM
Ah there, updated
floitsch
floitsch 03/28/2024 01:13 PM
Good. No idea why the jag pkg update didn't work. It should have.
AmusedGrape
AmusedGrape 03/28/2024 01:13 PM
I think that was my mistake- wrong directory :😂:
floitsch
floitsch 03/28/2024 01:13 PM
:🙂:
AmusedGrape
AmusedGrape 03/28/2024 01:13 PM
Thanks for your help! Seems like updating it fixed it
floitsch
floitsch 03/28/2024 01:14 PM
Great. Sorry again for the issues. I should have made a compatible http package immediately.
Thanks for reporting.
AmusedGrape
AmusedGrape 03/28/2024 01:14 PM
No worries! 2.0.0 is still in alpha, thigns are expected to break
floitsch
floitsch 03/28/2024 01:15 PM
Yes. We are getting closer, though.
🙌1
25 messages in total