Code Monkey home page Code Monkey logo

Comments (10)

AArnott avatar AArnott commented on May 22, 2024

Can you share the crash info, or the syntax that the mono runtime doesn't support?
We don't have a Mac handy to repro this at the moment.

from vs-streamjsonrpc.

yingfangdu avatar yingfangdu commented on May 22, 2024

thanks I updated in my original post

from vs-streamjsonrpc.

AArnott avatar AArnott commented on May 22, 2024

Thanks. I'm afraid I can't tell from the failure what went wrong. There is no exception message or type. I don't see any reference to unsupported "syntax" either. Where do you see that? Any more clues you know how to get from this?

from vs-streamjsonrpc.

yingfangdu avatar yingfangdu commented on May 22, 2024

I find my project crashes when link to this beta version (see the above crash stack). So I decide to build it from source code, when I create a Xamarin.Mac library project and include all the source code, I got a bunch of compiling errors.

For example, WebSocketMessageHandler, this kind of syntax is not supported.
screenshot 2018-05-07 08 30 15

from vs-streamjsonrpc.

AArnott avatar AArnott commented on May 22, 2024

Thanks, @yingfangdu. C# syntax is irrelevant at runtime. And I don't see any exotic syntax in your diff anyway. If mono doesn't support specific APIs in the encoder/decoder we use (based on the content of your diff), then that's something we might be able to workaround. Can you share the compile errors you were seeing?

from vs-streamjsonrpc.

yingfangdu avatar yingfangdu commented on May 22, 2024

I paste another syntax error in JsonRpc.cs AddLocalRpcTarget.

/Volumes/Yvonne/GitHub/vs-streamjsonrpc/src/StreamJsonRpcXamarin/StreamJsonRpcXamarin/../../StreamJsonRpc/JsonRpc.cs(90,90): Error CS1644: Feature `declaration expression' cannot be used because it is not part of the C# 6.0 language specification (CS1644) (StreamJsonRpcXamarin)

from vs-streamjsonrpc.

yingfangdu avatar yingfangdu commented on May 22, 2024

../../StreamJsonRpc/Reflection/MethodSignatureAndTarget.cs(33,52): error CS1644: Feature type pattern matching' cannot be used because it is not part of the C# 6.0 language specification ../../StreamJsonRpc/HeaderDelimitedMessageHandler.cs(172,56): error CS1644: Feature declaration expression' cannot be used because it is not part of the C# 6.0 language specification
../../StreamJsonRpc/HeaderDelimitedMessageHandler.cs(178,68): error CS1644: Feature declaration expression' cannot be used because it is not part of the C# 6.0 language specification ../../StreamJsonRpc/JsonRpc.cs(201,16): error CS1043: Invalid accessor body =>', expecting ;' or {'
../../StreamJsonRpc/JsonRpc.cs(322,90): error CS1644: Feature declaration expression' cannot be used because it is not part of the C# 6.0 language specification ../../StreamJsonRpc/JsonRpc.cs(379,91): error CS1644: Feature declaration expression' cannot be used because it is not part of the C# 6.0 language specification
../../StreamJsonRpc/JsonRpc.cs(843,82): error CS1644: Feature declaration expression' cannot be used because it is not part of the C# 6.0 language specification ../../StreamJsonRpc/JsonRpc.cs(850,82): error CS1644: Feature declaration expression' cannot be used because it is not part of the C# 6.0 language specification
../../StreamJsonRpc/JsonRpc.cs(863,86): error CS1644: Feature declaration expression' cannot be used because it is not part of the C# 6.0 language specification ../../StreamJsonRpc/JsonRpc.cs(970,96): error CS1644: Feature declaration expression' cannot be used because it is not part of the C# 6.0 language specification
../../StreamJsonRpc/JsonRpc.cs(1007,38): error CS1644: Feature type pattern matching' cannot be used because it is not part of the C# 6.0 language specification ../../StreamJsonRpc/WebSocketMessageHandler.cs(78,17): error CS1547: Keyword void' cannot be used in this context
../../StreamJsonRpc/WebSocketMessageHandler.cs(78,32): error CS1525: Unexpected symbol (', expecting ,', ;', or ='
../../StreamJsonRpc/WebSocketMessageHandler.cs(80,93): error CS1525: Unexpected symbol 0', expecting ,', ;', or ='
../../StreamJsonRpc/WebSocketMessageHandler.cs(80,102): error CS1525: Unexpected symbol .', expecting ,', ;', or ='
../../StreamJsonRpc/WebSocketMessageHandler.cs(80,111): error CS0128: A local variable named decodedChars' is already defined in this scope ../../StreamJsonRpc/WebSocketMessageHandler.cs(80,124): error CS1001: Unexpected symbol 0', expecting identifier
../../StreamJsonRpc/WebSocketMessageHandler.cs(80,133): error CS1001: Unexpected symbol .', expecting identifier ../../StreamJsonRpc/WebSocketMessageHandler.cs(96,33): error CS1525: Unexpected symbol Task', expecting class', delegate', enum', interface', partial', or struct'
../../StreamJsonRpc/WebSocketMessageHandler.cs(98,12): error CS1525: Unexpected symbol Requires', expecting class', delegate', enum', interface', partial', or struct' ../../StreamJsonRpc/WebSocketMessageHandler.cs(98,28): error CS1525: Unexpected symbol (', expecting class', delegate', enum', interface', partial', or struct'
../../StreamJsonRpc/WebSocketMessageHandler.cs(99,28): error CS1525: Unexpected symbol (', expecting class', delegate', enum', interface', partial', or struct' ../../StreamJsonRpc/WebSocketMessageHandler.cs(101,44): error CS1525: Unexpected symbol (', expecting class', delegate', enum', interface', partial', or struct'
../../StreamJsonRpc/WebSocketMessageHandler.cs(101,80): error CS1525: Unexpected symbol )' ../../StreamJsonRpc/WebSocketMessageHandler.cs(104,16): error CS1525: Unexpected symbol int'
../../StreamJsonRpc/WebSocketMessageHandler.cs(104,59): error CS1525: Unexpected symbol (' ../../StreamJsonRpc/WebSocketMessageHandler.cs(104,86): error CS1525: Unexpected symbol ,'
../../StreamJsonRpc/WebSocketMessageHandler.cs(104,104): error CS1525: Unexpected symbol ,' ../../StreamJsonRpc/WebSocketMessageHandler.cs(105,39): error CS1514: Unexpected symbol new', expecting .' or {'
../../StreamJsonRpc/WebSocketMessageHandler.cs(105,37): error CS1530: Keyword new' is not allowed on namespace elements ../../StreamJsonRpc/WebSocketMessageHandler.cs(105,40): error CS1525: Unexpected symbol ArraySegment'

 0 Warning(s)
 31 Error(s)

Time Elapsed 00:00:04.0223710

from vs-streamjsonrpc.

AArnott avatar AArnott commented on May 22, 2024

I see, thanks. The syntax errors you're seeing are because you're using an old compiler. I do not expect they have any bearing to why the prebuilt nuget package fails for you at runtime. If you want to compile it locally, can you use dotnet build instead of whatever you're using now?

We'll still need to understand why you're getting runtime failures. Is there any way to get mono to produce a better runtime error message?

from vs-streamjsonrpc.

yingfangdu avatar yingfangdu commented on May 22, 2024

I cannot get other crash logs while usually an unknown address 0xffffffff crash is caused by that it cannot find the function.

from vs-streamjsonrpc.

AArnott avatar AArnott commented on May 22, 2024

I believe you mentioned this ended up being a mono JIT bug.
Resolving this as Won't Fix.

from vs-streamjsonrpc.

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.