Comments (5)
With more experimentation, it appears that this is specific to readline-enabled interpreters. Disabling readline with $ dotnet fsi --readline-
seems to eliminate the error.
from fsharp.
What's the version of sdk in use?
from fsharp.
Ubuntu:
$ dotnet --version
8.0.105
FreeBSD:
$ dotnet --version
8.0.100
from fsharp.
Extra context:
Right now, due to a confluence of how FSAC and editors interact, working around this with the --readline-
option has pretty negative knock-on effects for interactive programming with Ionide plugins.
- Editor plugin interactions: ionide/Ionide-vim#82
- FSAC issues with CLI options: ionide/FsAutoComplete#1210
A fix for the latter (FSAC issues with CLI options) will make the situation much more tenable for interactive development. Personally, I hope to get that PR raised tonight, as this is impacting my productivity.
After that fix, I think the situation will be much less severe. It certainly won't be a major concern for me, as the vast majority (99%) of my interactive use is sending lines from an editor to the interpreter via Ionide.
from fsharp.
This isn't to say that "it works on my machine" but rather to give further debug data point that this indeed seems specific to the terminal being used. On Windows 11 and Windows Terminal, FSI handles long lines. For example:
PowerShell 7.4.2
Loading personal and system profiles took 1605ms.
> dotnet fsi
Microsoft (R) F# Interactive version 12.8.200.0 for F# 8.0
Copyright (c) Microsoft Corporation. All Rights Reserved.
For help type #help;;
> printfn "This is a very long sentence which I will type to overflow the boundary of the terminal and yield the error
that I am talking about in this bug report. No holding down a key for me! System.PlatformNotSupportedException: Opera
tion is not supported on this platform.asdflkajsfdaoiwejfoawjefoaijwefljawlkefjlakwjfelkajwveoijaoifjeoawjfeawljlvkjaw
kljfoeiawjfeoiawjfoejawoefjoajwfeioajwfeljaklvjelkajfeoaijwfeoiawjefoij";;
This is a very long sentence which I will type to overflow the boundary of the terminal and yield the error that I am talking about in this bug report. No holding down a key for me! System.PlatformNotSupportedException: Operation is not supported on this platform.asdflkajsfdaoiwejfoawjefoaijwefljawlkefjlakwjfelkajwveoijaoifjeoawjfeawljlvkjawkljfoeiawjfeoiawjfoejawoefjoajwfeioajwfeljaklvjelkajfeoaijwfeoiawjefoij
val it: unit = ()
Versions:
> dotnet fsi --version
Microsoft (R) F# Interactive version 12.8.200.0 for F# 8.0
> dotnet --version
8.0.204
Hopefully that's helpful.
from fsharp.
Related Issues (20)
- Split diagnostics into different diagnostic kinds for better user experience
- .fsproj **should not** need to specify individual Compile .fs files HOT 4
- Investigate: Special case Lock type in the lock function HOT 4
- `ContinuousIntegrationBuild` breaks `__SOURCE_DIRECTORY__` HOT 3
- [Automated] PRs inserted in VS build main-35006.68
- [Automated] PRs inserted in VS build main-35006.55
- [Automated] PRs inserted in VS build feature.debugger.main-35006.210
- `FSharpExpr` documentation references nonexistent module
- Can't Use Library From F# (FS1109 System.Drawing) HOT 4
- [Automated] PRs inserted in VS build 20240610.19
- IsUnionCaseTester throwing an error
- Tracking issue - improve FSI debugging
- Visual Studio selects the highest version of the sdk installed on the machine when executing scripts in FSI HOT 5
- We should disable the --multiemit[+/-] switch in fsi. HOT 1
- [Automated] PRs inserted in VS build main-35014.15
- Clean - build -pack fails
- [Automated] PRs inserted in VS build feature.debugger.main-35014.68
- F# discriminated unions simple use raises AOT and trimming warnings on publish. HOT 2
- [Automated] PRs inserted in VS build main-35018.33
- Fix or remove legacy VS tests HOT 4
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 fsharp.