Comments (10)
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.
thanks I updated in my original post
from vs-streamjsonrpc.
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.
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.
from vs-streamjsonrpc.
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.
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.
../../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.
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.
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.
I believe you mentioned this ended up being a mono JIT bug.
Resolving this as Won't Fix.
from vs-streamjsonrpc.
Related Issues (20)
- Getting vs-streamjsonrpc working with AirSim (MessagePack) HOT 2
- ConnectionLostException when invoking re-assigned Remote Targets HOT 3
- Docs: Dead link in joinableTaskFactory.md HOT 1
- Crash on Android 11 devices when throwing RemoteInvocationException HOT 9
- JsonRpc over HTTP fails HOT 1
- Add support for JsonPropertyNameAttribute from System.Text.Json HOT 10
- IDisposable interface ambiguity on receiver side when marshaling with RpcMarshalableAttribute HOT 1
- How to receive a JSON object as an rpc response? HOT 1
- Parse custom json rpc message responses HOT 1
- Event as Request from JSON Rpc Server HOT 1
- Allow `[RpcMarshalable]` interfaces to declare properties with serialized values HOT 4
- JSON Contract resolver needs to be reused HOT 1
- Support MessagePackFormatterAttribute applied to RPC methods
- User-supplied `TypelessObjectResolver` from MessagePack causes `IAsyncEnumerable<T>` to malfunction
- Support System.Text.Json compatible Json Converter for Request ID HOT 4
- Use camelCase for response objects HOT 4
- Intercept a request and modify it before sending to the server HOT 7
- Connection with Java-based JSON-RPC server fails because Content-Length is required HOT 2
- package downgrade caused by v2.17.8 HOT 7
- JoinableTaskFactory bridge fails with multiple JsonRpc instances in a process without JTF 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 vs-streamjsonrpc.