Comments (3)
Elixir 1.16.0 deprecated File.stream!(file, options, line_or_bytes)
So this line File.stream!(path, [], 2048)
should just be File.stream!(path, 2048)
. I've had to make the same change in my own code to resolve a similar Dialyzer error.
I'm not sure exactly how to do that while still supporting Elixir < 1.16.0 though. 🤔
FYI, the reason why I'm here trying this is because code that uses Tesla is seeing similar Dialyzer errors bubble up through the call stack in Elixir 1.16.
from tesla.
@nathany-copia are you able to fix the situation yourself?
from tesla.
I can try.
Is apps_direct the right option? Default is app_tree
.
https://github.com/jeremyjh/dialyxir?tab=readme-ov-file#dependencies
Then it gets interesting -- I'll see if I can figure these out, but I do find dialyzer errors rather difficult to read.
lib/tesla/multipart.ex:94: Function add_file/2 has no local return
lib/tesla/multipart.ex:94: Function add_file/3 has no local return
lib/tesla/multipart.ex:106: The call 'Elixir.File':'stream!'(_path@1::binary() | maybe_improper_list(binary() | maybe_improper_list(any(),binary() | []) | char(),binary() | []),[],2048) breaks the contract ('Elixir.Path':t(),'line' | pos_integer(),[stream_mode()]) -> 'Elixir.File.Stream':t()
from tesla.
Related Issues (20)
- G
- Document the need for telemetry in the mix file HOT 3
- Mint proxy credentials HOT 1
- Issues Working with QuotaGuard QGTunnel HOT 3
- [Proposal] Lower the usage of macros HOT 2
- Setting retry delay on runtime. HOT 1
- Telemetry metadata doesn't have data about response in case of error
- Tesla Response Stream is not compatible with Tesla Multipart upload
- Jason.Encoder protocol must always be explicitly implemented HOT 1
- Be more explict on `:no_scheme` error reason HOT 1
- When setting the adapter on runtime, mocking does not work
- Logger debug: true does nothing at runtime HOT 2
- Compiler warnings with Elixir v1.17.0-rc.0 HOT 3
- Tesla.Multipart.assert_part_value! doesn't allow valid stream
- Content type should be case insensitive HOT 2
- Tesla.Mock.pdict_get/0 doesn't work inside of Broadway HOT 3
- Test failures and compiler warnings in Elixir 1.16 (httparrot) HOT 6
- Tesla 1.9.0+ is not compatible with Elixir 1.10 HOT 2
- Versions 1.9 and later changed the return value for a Mint.TransportError in Tesla.Adapter.Finch.call/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 tesla.