Comments (7)
Тоисть в .NET проекте - Rebuild All не собирает все модули?
from consulo-dotnet.
Создал визардом .Net проект, один модуль.
"Make module" сборку собирает, dll я получаю. Если нажать "Rebuild All" в каталог попадают только зависимые dll собственно компиляция не выполняется.
Я немного потрейсил :)
Rebuild All вызывает CompileDriver#translate, далее по каждому модулю, перебераются трансляторы.
А в if где формируется список файлов для компиляции мы не заходим. Т.к. DotNet компилятор не первый, условие не выполняется.
if (snapshot == null || ContainerUtil.intersects(generatedTypes, compilerManager.getRegisteredInputTypes(compiler)))
compilerManager.getRegisteredInputTypes вызвращает пустой массив, т.к. компилятор не регистрирует расширения файлов.
Как то так...
from consulo-dotnet.
Спасибо. Я помню этот код. Что бы вернуть там C#FileType, нужно что бы в текущем контексте(плагин .NET) было известно про C# плагин. А это не так.
Я точно не помню логику, но если Вы точно сказали, значит нужно будет править платформу (или убрать с .NET плагин компилятор для языков)
from consulo-dotnet.
Обновил коммент, неверно написал
from consulo-dotnet.
Но как оказалось это не так. Исправлено в consulo/consulo@be83cb7
Если интересно - могу обьяснить в чем была проблема
from consulo-dotnet.
Конечно интересно.
On Mar 13, 2015 4:51 PM, "Valeriy Semenchuk" [email protected]
wrote:
Но как оказалось это не так. Исправилено в consulo/consulo@be83cb7
consulo/consulo@be83cb7Если интересно могу обьяснить в чем была проблема
—
Reply to this email directly or view it on GitHub
#56 (comment)
.
from consulo-dotnet.
По сути банальная проблема. Я не досмотрел.
Есть интерфейс CompileModuleScopeFactory, который создает Scope для модуля во время компиляции.
По дефолту - создается ModuleCompileScope, и он ищет в Sources папках(как в java src/ и прочее).
Как известно вам в .NET - нету подобного, все ищется в корневой (имеется своя реализация CompileModuleScopeFactory)
Make Module - правильно создавал Scope для компиляции. А вот Rebuild создавал класс по имени ProjectScope. В нем и была проблема. По сути он - Composite Scope of All Modules, но он обходил CompileModuleScopeFactory. В итоге они искал в папках которые помечены как Sources, а таких небыло в проекте.
from consulo-dotnet.
Related Issues (20)
- Breakpoint in async block is not worked
- NPE
- AssertionError HOT 1
- Parsing error with negative number
- Can't pause at any line. Unity debugger
- Dont' call debugger methods inside UI thread
- Debugger same field shown twice (once empty once with correct value) HOT 3
- Debugger showing null type value besides isn't null.
- Debbuger Variables with showing Collecting data... no other data HOT 5
- Event log - default message HOT 1
- C# doesn't highlight some operators HOT 1
- Support of more than 2 classes in one file HOT 8
- Nested relative "using" is not resolved HOT 1
- Consulo mark lambdas returning a delegate as not resolved HOT 3
- Consider adding the project to awesome-dotnet HOT 1
- Exception
- Time to split. Move microsoft + mono + opencover to own repositories
- Error on Console.ReadKey HOT 9
- UI freeze while debugger pause
- Debugger freezing on step over HOT 1
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 consulo-dotnet.