Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Windows Support #234

Open
wants to merge 6 commits into
base: dev
Choose a base branch
from
Open

[WIP] Windows Support #234

wants to merge 6 commits into from

Conversation

smarr
Copy link
Owner

@smarr smarr commented Mar 12, 2018

Here a first experiment to see whether we can get things to run on Windows.

Results:
https://ci.appveyor.com/project/smarr/somns/build/build%208%20dev

It's a little hard without having a windows machine.
It doesn't go far.
For some reason my Ant-foo isn't good enough to get MX to work.
So, I am giving up for now.
If you need Windows support, please check the changes and try to pick it up from here.

@smarr smarr added the enhancement Improves the implementation with something noteworthy label Mar 12, 2018
@smarr smarr added this to the later milestone Mar 12, 2018
@smarr smarr changed the base branch from master to dev March 12, 2018 17:15
@smarr smarr force-pushed the windows-support branch 2 times, most recently from 2620703 to 933a70a Compare March 20, 2018 02:10
@smarr
Copy link
Owner Author

smarr commented Mar 20, 2018

Some more digging, looks like an issue with MX:

     [exec] java.net.SocketException: Connection reset
     [exec] C:\projects\somns\libs\mx\/mx.py:1227: UserWarning: Duplicate name: 'META-INF/services/javax.annotation.processing.Processor'
     [exec]   arc.zf.writestr(arcname, contents)
     [exec] C:\projects\somns\libs\mx\/mx.py:7636: UserWarning: Duplicate name: 'META-INF/services/javax.annotation.processing.Processor'
     [exec]   arc.zf.writestr(arcname, '\n'.join(dist.definedAnnotationProcessors) + '\n')
     [exec] Traceback (most recent call last):
     [exec]   File "C:\projects\somns\libs\mx\/mx.py", line 16749, in <module>
     [exec]     main()
     [exec]   File "C:\projects\somns\libs\mx\/mx.py", line 16730, in main
     [exec]     retcode = c(command_args)
     [exec]   File "C:\projects\somns\libs\mx\/mx.py", line 10936, in build
     [exec]     t.execute()
     [exec]   File "C:\projects\somns\libs\mx\/mx.py", line 769, in execute
     [exec]     self.build()
     [exec]   File "C:\projects\somns\libs\mx\/mx.py", line 1506, in build
     [exec]     self.subject.make_archive()
     [exec]   File "C:\projects\somns\libs\mx\/mx.py", line 1329, in make_archive
     [exec]     self.notify_updated()
     [exec]   File "C:\projects\somns\libs\mx\/mx.py", line 893, in notify_updated
     [exec]     l(self)
     [exec]   File "C:\projects\somns\libs\mx\/mx.py", line 7638, in _refineAnnotationProcessorServiceConfig
     [exec]     arc.zf.writestr(arcname, lp.read(arcname))
     [exec]   File "C:\projects\somns\libs\mx\/mx.py", line 11375, in __exit__
     [exec]     SafeFileCreation.__exit__(self, exc_type, exc_value, traceback)
     [exec]   File "C:\projects\somns\libs\mx\/mx.py", line 11345, in __exit__
     [exec]     _handle_file(self.tmpPath, self.path)
     [exec]   File "C:\projects\somns\libs\mx\/mx.py", line 11344, in _handle_file
     [exec]     os.rename(tmpPath, path)
     [exec] WindowsError: [Error 183] Cannot create a file when that file already exists
     [exec] java.net.SocketException: Connection reset
     [exec] 	at java.base/java.net.SocketInputStream.read(SocketInputStream.java:210)
     [exec] 	at java.base/java.net.SocketInputStream.read(SocketInputStream.java:141)
     [exec] 	at java.base/sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284)
     [exec] 	at java.base/sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326)
     [exec] 	at java.base/sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)
     [exec] 	at java.base/java.io.InputStreamReader.read(InputStreamReader.java:185)
     [exec] 	at java.base/java.io.BufferedReader.fill(BufferedReader.java:161)
     [exec] 	at java.base/java.io.BufferedReader.readLine(BufferedReader.java:326)
     [exec] 	at java.base/java.io.BufferedReader.readLine(BufferedReader.java:392)
     [exec] 	at com.oracle.mxtool.compilerserver.CompilerDaemon$Connection.run(CompilerDaemon.java:135)
     [exec] 	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514)
     [exec] 	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
     [exec] 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
     [exec] 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
     [exec] 	at java.base/java.lang.Thread.run(Thread.java:844)
     [exec] 	at java.base/java.net.SocketInputStream.read(SocketInputStream.java:210)
     [exec] 	at java.base/java.net.SocketInputStream.read(SocketInputStream.java:141)
     [exec] 	at java.base/sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284)
     [exec] 	at java.base/sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326)
     [exec] 	at java.base/sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)
     [exec] 	at java.base/java.io.InputStreamReader.read(InputStreamReader.java:185)
     [exec] 	at java.base/java.io.BufferedReader.fill(BufferedReader.java:161)
     [exec] 	at java.base/java.io.BufferedReader.readLine(BufferedReader.java:326)

@smarr smarr force-pushed the windows-support branch 2 times, most recently from 32de44c to e7a60af Compare September 27, 2018 22:29
@smarr smarr force-pushed the windows-support branch 2 times, most recently from 6b65743 to 705b6a2 Compare June 30, 2019 19:49
Signed-off-by: Stefan Marr <git@stefan-marr.de>
Signed-off-by: Stefan Marr <git@stefan-marr.de>
Signed-off-by: Stefan Marr <git@stefan-marr.de>
Signed-off-by: Stefan Marr <git@stefan-marr.de>
Signed-off-by: Stefan Marr <git@stefan-marr.de>
Signed-off-by: Stefan Marr <git@stefan-marr.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improves the implementation with something noteworthy
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant