Giter Site home page Giter Site logo

Comments (5)

greggyb avatar greggyb commented on June 21, 2024

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.

vzarytovskii avatar vzarytovskii commented on June 21, 2024

What's the version of sdk in use?

from fsharp.

greggyb avatar greggyb commented on June 21, 2024

Ubuntu:

$ dotnet --version
8.0.105

FreeBSD:

$ dotnet --version
8.0.100

from fsharp.

greggyb avatar greggyb commented on June 21, 2024

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.

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.

bmitc avatar bmitc commented on June 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.